// JavaScript Document
<!--




function abre_janela(win_url)
	{
		 window.open(win_url,'mywin','left=20,top=20,width=800,height=525,resizable=0');
		 
	}
	
	function limpar_campo(campo){
		if(campo.value == 'pesquise aqui...'){
			campo.value = "";
		}
	} 
	
		<!-- VALIDAÇÃO -->
		function enviardados(){
		
			if(document.dados.tx_nome.value=="" || document.dados.tx_nome.value.length < 8)
			{
				alert( "Preencha campo NOME corretamente!" );
					document.dados.tx_nome.focus();
						return false;
			}
			
				
			if( document.dados.tx_email.value=="" || document.dados.tx_email.value.indexOf('@')==-1 || document.dados.tx_email.value.indexOf('.')==-1 )
			{
				alert( "Preencha campo E-MAIL corretamente!" );
					document.dados.tx_email.focus();
						return false;
			}
		
			if (document.dados.tx_mensagem.value=="")
			{
				alert( "Preencha o campo MENSAGEM!" );
					document.dados.tx_mensagem.focus();
						return false;
			}	
			
			if (document.dados.tx_mensagem.value.length < 25 )
			{
				alert( "É necessario preencher o campo MENSAGEM com mais de 25 caracteres!" );
					document.dados.tx_mensagem.focus();
						return false;
			}
			
			return true;
		}
		function enviarcomentario(){
		
			if(document.dados.nome.value=="" || document.dados.nome.value.length < 8)
			{
				alert( "Preencha campo NOME corretamente!" );
					document.dados.nome.focus();
						return false;
			}
			
				
			if( document.dados.email.value=="" || document.dados.email.value.indexOf('@')==-1 || document.dados.email.value.indexOf('.')==-1 )
			{
				alert( "Preencha campo E-MAIL corretamente!" );
					document.dados.email.focus();
						return false;
			}
		
			if (document.dados.comentario.value=="")
			{
				alert( "Preencha o campo MENSAGEM!" );
					document.dados.comentario.focus();
						return false;
			}	
			
			if (document.dados.comentario.value.length < 25 )
			{
				alert( "É necessario preencher o campo MENSAGEM com mais de 25 caracteres!" );
					document.dados.comentario.focus();
						return false;
			}
			return true;
			}
		function enviaremail(){
		
			if(document.dados.nome.value=="" || document.dados.nome.value.length < 8)
			{
				alert( "Preencha campo NOME corretamente!" );
					document.dados.nome.focus();
						return false;
			}
			
				
			if( document.dados.email.value=="" || document.dados.email.value.indexOf('@')==-1 || document.dados.email.value.indexOf('.')==-1 )
			{
				alert( "Preencha campo E-MAIL corretamente!" );
					document.dados.email.focus();
						return false;
			}
			
			if(document.dados.dest.value=="" || document.dados.dest.value.length < 8)
			{
				alert( "Preencha campo NOME corretamente!" );
					document.dados.dest.focus();
						return false;
			}
			
				
			if( document.dados.email_dest.value=="" || document.dados.email_dest.value.indexOf('@')==-1 || document.dados.email_dest.value.indexOf('.')==-1 )
			{
				alert( "Preencha campo E-MAIL corretamente!" );
					document.dados.email_dest.focus();
						return false;
			}
			return true;
			}
			
			
			
			<!-- FIM DA VALIDAÇÃO -->
	
			function janela(url,nome, largura, altura){
				window.open(url,nome,'status=1,scrollbars=1,height='+altura+',width='+largura)
			}
			
			function janela2(url,nome, largura, altura){
				window.open(url,nome,'status=1,scrollbars=0,height='+altura+',width='+largura)
			}
	
			
			function redirectOutput(myForm) {
				var w = window.open('about:blank','Popup_Window','status=1,scrollbars=1,height=300,width=200');
				myForm.target = 'Popup_Window';
				return true;
			}

		
		<!-- SUB MENU -->
		
		
		function pegaclasse(classe) {
			var lista=document.getElementsByTagName('ul');
			for(var i=0; i<lista.length; i++) {
				if(lista[i].className == classe) {
					lista[i].style.display = 'none';
				}
			}
		}
		
		function abrir(){
			pegaclasse('subcanais_menu');
		}

		window.onload = abrir;

		function showHide(id) {
			var obj = document.getElementById(id);
			if(obj.style.display == "") {
				obj.style.display = "none";
			} else {
				obj.style.display = "";
			}	
		}
		
		
		function Esconde(){
			document.getElementById('antidoto').style.visibility="hidden";
		}
		
		
		function selectnav(){
			if(document.coluna.autor.options[autor.selectedIndex].value != ""){
				document.coluna.submit();
			}else{
				alert("nao funcionou")
			}
		}
		
		function imprimir() {
  			if (window.print)
    			window.print()
 			else
    			alert("Você não tem suporte a javascript...Aperte Crtl+P!");
		}
		
		function vigiaTextarea(){
			limite = 250;
			myTextArea = document.dados.comentario;
			myTextField = document.dados.contagem;
		
			if (myTextArea.value.length > limite) {
				myTextArea.value = myTextArea.value.substr(0, (myTextArea.value.length - 1));
			} else {
				myTextField.value=(limite - myTextArea.value.length);
			}
		}
		
	
//-->