//Função para validar formulário Contato

function valida_Form_Contato(){

    if (document.getElementById('nome').value == ""){
		alert("O campo Nome deve ser preenchido!");
		document.getElementById('nome').focus();
		return false;
    }
	if (document.getElementById('email').value == ""){
		alert("O campo E-mail deve ser preenchido!");
		document.getElementById('email').focus();
		return false;
    }
	if (document.getElementById('cidade').value == ""){
		alert("O campo Cidade deve ser preenchido!");
		document.getElementById('cidade').focus();
		return false;
    }
	if (document.getElementById('estado').value == ""){
		alert("O campo Estado deve ser preenchido!");
		document.getElementById('estado').focus();
		return false;
    }
	if (document.getElementById('mensagem').value == ""){
		alert("O campo Mensagem deve ser preenchido!");
		document.getElementById('mensagem').focus();
		return false;
    }
			
	return true;
}

//Função para validar formulário Contato
function valida_Form_Enviaremail(){

    if (document.getElementById('nome_remetente').value == ""){
		alert("O campo Seu Nome deve ser preenchido!");
		document.getElementById('nome_remetente').focus();
		return false;
    }
	if (document.getElementById('email_remetente').value == ""){
		alert("O campo Seu E-mail deve ser preenchido!");
		document.getElementById('email_remetente').focus();
		return false;
    }
	//validar email(verificao de endereco eletronico)
        parte1 = document.getElementById('email_remetente').value.indexOf("@");
        parte2 = document.getElementById('email_remetente').value.indexOf(".");
        parte3 = document.getElementById('email_remetente').value.length;
        if (!(parte1 >= 3 && parte2 >= 6 && parte3 >= 9)) {
            alert("O campo E-mail deve conter um endereço eletrônico!");
            document.getElementById('email_remetente').focus();
            return false;
        }
	if (document.getElementById('nome_destinatario').value == ""){
		alert("O campo Nome Destinatário deve ser preenchido!");
		document.getElementById('nome_destinatario').focus();
		return false;
    }
	if (document.getElementById('email_destinatario').value == ""){
		alert("O campo E-mail Destinatário deve ser preenchido!");
		document.getElementById('email_destinatario').focus();
		return false;
    }
	//validar email(verificao de endereco eletronico)
        parte1 = document.getElementById('email_destinatario').value.indexOf("@");
        parte2 = document.getElementById('email_destinatario').value.indexOf(".");
        parte3 = document.getElementById('email_destinatario').value.length;
        if (!(parte1 >= 3 && parte2 >= 6 && parte3 >= 9)) {
            alert("O campo E-mail deve conter um endereço eletrônico!");
            document.getElementById('email_destinatario').focus();
            return false;
        }
			
	return true;
}
//Função para buscar por ano
function busca_ano(pagina){
		window.location="?pagina="+pagina+"&a="+document.getElementById('a').value;
}
<!-- INICIO DA FUNCAO IMPRESSAO -->
function Impressao( preVisualizar ) 
{
	var CorpoMensagem = document.body.innerHTML;
	document.body.innerHTML = ImprimirConteudo.innerHTML;
	if( preVisualizar ) 
	{
		PreVisualizar();
	} 
	else 
	{
		window.print();
	}
	document.body.innerHTML = CorpoMensagem;
}
<!-- FIM DA FUNCAO IMPRESSAO -->
<!-- INICIO DA FUNCAO PREVISUALIZACAO -->
function PreVisualizar() 
{
	try 
	{
		 //Utilizando o componente WebBrowser1 registrado no MS Windows Server 2000/2003 ou XP/Vista
		 var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>'; 
		 document.body.insertAdjacentHTML('beforeEnd', WebBrowser); 
		 WebBrowser1.ExecWB( 7, 1 ); 
		 WebBrowser1.outerHTML = ""; 
	} 
	catch(e) 
	{
		alert("Para visualizar a impressão você precisa habilitar o uso de controles ActiveX na página.");
		return;
	}
}
<!-- INICIO DA FUNCAO PREVISUALIZACAO -->

<!-- FIM Script DE ENVIO DA NOTICIA POR EMAIL -->
function mailpage() 
<!-- Rodrigo Augusto Thomaz --> 
{ 
mail_str = "mailto:?subject=Assessoria de Imprensa da Assembleia Legislativa do Estado do Amazonas: " + document.title; 
mail_str += "&body=Oi "; 
mail_str +="%0D%0A"; 
mail_str += "Estamos enviando uma notícia em destaque do Portal da Assembleia Legislativa do Estado do Amazonas "; 
mail_str +="%0D%0A"; 
mail_str += document.title; 
mail_str +="%0D%0A"; 
mail_str +="%0D%0A"; 
mail_str += "Para vê-la, clique neste link:"; 
mail_str +="%0D%0A"; 
mail_str += location.href; 
location.href = mail_str; 
} 

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);

}
function bookmarksite(title, url){ 
if (document.all) window.external.AddFavorite(url, title); 
else if (window.sidebar) window.sidebar.addPanel(title, url, "") 
} 

