﻿function valida(campo){
 if(campo.nome_agende.value ==""){
  alert("Campo nome obrigatório");
  campo.nome_agende.focus();
  document.getElementById("nome_agende").style.border = "1px dotted #F00";		
  return false;
 }
 else
  if((campo.email_agende.value =="" && campo.tel_contato_agende.value =="") && (campo.tel_celular_agende.value =="")){
   alert("Campo email, telefone ou celular obrigatório");
   campo.email_agende.focus();
   document.getElementById("email_agende").style.border = "1px dotted #F60";			
   return false;
  }
  else	
   if(campo.mensagem_agende.value ==""){ 
	alert("Campo mensagem obrigatório");
	campo.mensagem_agende.focus();
	document.getElementById("mensagem_agende").style.border = "1px dotted #F60";		
	return false;
   }	
   else	campo.submit();
}