// JavaScript Document
function Validator(theForm)
{
  if (theForm.nome.value == ""){
    alert("Informe o nome");
    theForm.nome.focus();
    return (false);
  }
  if (theForm.email.value == ""){
    alert("Informe o e-mail");
    theForm.email.focus();
    return (false);
  }
  if (theForm.endereco.value == ""){
    alert("Informe o endereço");
    theForm.endereco.focus();
    return (false);
  }
  if (theForm.bairro.value == ""){
    alert("Informe o bairro");
    theForm.bairro.focus();
    return (false);
  }
  if (theForm.cidade.value == ""){
    alert("Informe a cidade");
    theForm.cidade.focus();
    return (false);
  }
  if (theForm.uf.value == ""){
    alert("Informe o estado");
    theForm.uf.focus();
    return (false);
  }
  if (theForm.cep.value == ""){
    alert("Informe o CEP");
    theForm.cep.focus();
    return (false);
  }
  if (theForm.dddRes.value == ""){
    alert("Informe o código DDD");
    theForm.dddRes.focus();
    return (false);
  }
  if (theForm.telRes.value == ""){
    alert("Informe o telefone para contato");
    theForm.telRes.focus();
    return (false);
  }
  if (theForm.profissao.value == ""){
    alert("Informe a profissão");
    theForm.profissao.focus();
    return (false);
  }
}
