function validaForm(){
           d = document.form;
           //validar nome
           if (d.nome.value == ""){
			   		 alert("Coloque o seu nome");
                     d.nome.focus();
                     return false;
           }
         //validar email
         if (d.email.value == ""){
			 	   alert("Coloque o seu e-mail");
                   d.email.focus();
                   return false;
         }
         //validar email(verificao de endereco eletrônico)
         parte1 = d.email.value.indexOf("@");
         parte2 = d.email.value.indexOf(".");
         parte3 = d.email.value.length;
         if (!(parte1 >= 1 && parte2 >= 1 && parte3 >= 1)) {
                   alert("Coloque um e-mail valido");
                   d.email.focus();
                   return false;
		 }
		 //validar assunto
         if (d.assunto.value == ""){
			 	   alert("Coloque o assunto da mensagem");
                   d.assunto.focus();
                   return false;
         }
         //valida mensagem
		 if (d.mensagem.value == "") {
			 alert("Digite sua mensagem");
			 d.mensagem.focus();
			 return false;
         }
         return true;
 }