	function verificainformativo(){
	    function checa_mail(x){
		  if ( (x.search(/^[a-zA-Z0-9]+[\w\.\_\-\w]*[\w+]@[a-zA-Z0-9]+([\w\_\-\w]*\.[\w\_\-\w]+)+[\w\_\-\w]*$/))!=0 )
			  {return false;}
	      else {return true;}
        }		
        if ((document.informativo.nome.value).length == ""){
		    document.getElementById("informativoerronome").style.display = 'block';	 
			document.informativo.nome.focus();
			return false;
		}else if (checa_mail(document.informativo.email.value) == false){
			document.getElementById("informativoerroemail").style.display = 'block';
			document.informativo.email.focus();
			return false;
		}else
            return true;
	}
	function limparerroinfnome(){
        if ((document.informativo.nome.value).length != ""){
		    document.getElementById("informativoerronome").style.display = 'none';	 
			return false;
		}else
            return true;		
	}
	function limparerroinfoemail(){
		if ((document.informativo.email.value).length != ""){
			document.getElementById("informativoerroemail").style.display = 'none';
			return false;
		}else
            return true;
	}	
	function verificacontato(){
	    function checa_mail(x){
		  if ( (x.search(/^[a-zA-Z0-9]+[\w\.\_\-\w]*[\w+]@[a-zA-Z0-9]+([\w\_\-\w]*\.[\w\_\-\w]+)+[\w\_\-\w]*$/))!=0 )
			  {return false;}
	      else {return true;}
        }		
        if ((document.contato.nome.value).length == ""){
		    document.getElementById("contatoerronome").style.display = 'block';	
			document.contato.nome.focus();
			return false;
		}else if ((document.contato.telefone.value).length == ""){
		    document.getElementById("contatoerrotelefone").style.display = 'block';
			document.contato.telefone.focus();
			return false;
		}else if (checa_mail(document.contato.email.value) == false){
		    document.getElementById("contatoerroemail").style.display = 'block';	
			document.contato.email.focus();
			return false;
		}else
            return true;
	}
	function limparerrocontatonome(){
        if ((document.contato.nome.value).length != ""){
		    document.getElementById("contatoerronome").style.display = 'none';	 
			return false;
		}else
            return true;
	}
	
	function limparerrocontatoemail(){
		if ((document.contato.telefone.value).length != ""){
			document.getElementById("contatoerrotelefone").style.display = 'none';
			return false;	
		}else
            return true;
	}	
	function limparerrocontatotelefone(){
		if ((document.contato.email.value).length != ""){
			document.getElementById("contatoerroemail").style.display = 'none';
			return false;
		}else
            return true;	
	}
	
