function valida_contato() { var txtNome = $('txtNome').value; var txtEmail = $('txtEmail').value; var txtAssunto = $('txtAssunto').value;
var txtMensagem = $('txtMensagem').value; if( txtNome == "" ) { alert("Por favor, preencha o campo: Nome!");
$('txtNome').focus(); return false; } else if( txtEmail == "" ) { alert("Por favor, preencha o campo: E-mail!");
$('txtEmail').focus(); return false; } else if( txtAssunto == "" ) { alert("Por favor, preencha o campo: Assunto!");
$('txtAssunto').focus(); return false; } else if( txtMensagem == "" ) { alert("Por favor, preencha o campo: Mensagem!");
$('txtMensagem').focus(); return false; } else { return true; } }