function validaForm(){
           d = document.form;
           //validar nome
           if (d.nome.value == ""){
                     d.nome.value = "Campo obrigatório";
					 d.nome.style.backgroundColor="#99001C"
                     d.nome.focus();
                     return false;
           }
         //validar email
         if (d.email.value == ""){
                   d.email.value = "Campo obrigatório";
				   d.email.style.backgroundColor="#99001C"
                   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 >= 3 && parte2 >= 6 && parte3 >= 9)) {
                   d.email.value = "Digite um e-mail válido";
				   d.email.style.backgroundColor="#99001C"
                   d.email.focus();
                   return false;
         }
		            //validar assunto
           if (d.assunto.value == ""){
                     d.assunto.value = "Campo obrigatório";
					 d.assunto.style.backgroundColor="#99001C"
                     d.assunto.focus();
                     return false;
           }
         //valida mensagem
		 if (d.mensagem.value == "") {
			 d.mensagem.value = "Campo obrigatório";
			 d.mensagem.style.backgroundColor="#99001C"
			 d.mensagem.focus();
			 return false;
         }
         return true;
 }
