function ValidarForm(){
   var arroba = /@/ ;
   var ponto = /\./ ;

   var nome = document.all.nome.value;
   var localidade = document.all.localidade.value;
   var email = document.all.email.value;
   var assunto = document.all.assunto.value;
   var mensagem = document.all.mensagem.value;



	// valida campos
   if (nome == "" ||
	    localidade == "" ||
	    email == "" ||
	    assunto == "" ||
	    mensagem == ""){
	  alert("Por favor preencha todos os campos.")
	  return false;
   }

	// valida email
   if (!(arroba.test(email) && ponto.test(email)))
   {
   	 alert('Email inválido, tente colocar o @.');
	 return false;
   }

   return true;
}

