// JavaScript Document

function validadados(){
if (document.formu.igreja.value==""){
alert ("Preencha o campo NOME corretamente");
document.formu.igreja.focus();
return false;}

if (document.formu.igrejaNM.value==""){
	alert ("Preencha o campo NÚMERO DE MEMBROS corretamente");
	document.formu.igrejaNM.focus();
return false;}

if(isNaN(document.formu.igrejaNM.value)){
alert("O campo NÚMERO DE MEMBROS deve conter apenas números");
document.formu.igrejaNM.focus();
return false;}

if (document.formu.igrejaEnd.value==""){
	alert ("Preencha o campo ENDEREÇO DA IGREJA corretamente");
	document.formu.igrejaEnd.focus();
return false;}

if (document.formu.igrejaCid.value==""){
	alert ("Preencha o campo CIDADE DA IGREJA corretamente");
	document.formu.igrejaCid.focus();
return false;}

if (document.formu.igrejaEst.value==""){
	alert ("Preencha o campo ESTADO DA IGREJA corretamente");
	document.formu.igrejaEst.focus();
return false;}

if (document.formu.igrejaCEP.value==""){
	alert ("Preencha o campo CEP DA IGREJA corretamente");
	document.formu.igrejaCEP.focus();
return false;}

if (isNaN(document.formu.igrejaCEP.value)){
alert ("O campo CEP DA IGREJA deve conter apenas numeros!");
document.formu.igrejaCEP.focus();
return false;}

if (document.formu.igrejaTel.value==""){
	alert ("Preencha o campo TELEFONE DA IGREJA corretamente");
	document.formu.igrejaTel.focus();
return false;}

if (document.formu.igrejaEmail.value==""){
	alert ("Preencha o campo E-MAIL DA IGREJA OU RESPONSÁVEL corretamente");
	document.formu.igrejaEmail.focus();
return false;}

if (document.formu.igrejaEmail.value.indexOf('@')==-1){
	alert ("Preencha o campo E-MAIL DA IGREJA OU RESPONSÁVEL corretamente");
	document.formu.igrejaEmail.focus();
return false;}

if (document.formu.prNome.value==""){
	alert ("Preencha o campo NOME DO PASTOR corretamente");
	document.formu.prNome.focus();
return false;}

if (document.formu.prEnd.value==""){
	alert ("Preencha o campo ENDEREÇO DO PASTOR corretamente");
	document.formu.prEnd.focus();
return false;}

if (document.formu.PrCid.value==""){
	alert ("Preencha o campo CIDADE DO PASTOR corretamente");
	document.formu.PrCid.focus();
return false;}

if (document.formu.prEst.value==""){
	alert ("Preencha o campo ESTADO DO PASTOR corretamente");
	document.formu.prEst.focus();
return false;}

if (document.formu.PrTel.value==""){
	alert ("Preencha o campo TELEFONE DO PASTOR corretamente");
	document.formu.PrTel.focus();
return false;}

if (document.formu.prEmail.value==""){
	alert ("Preencha o campo E-MAIL DO PASTOR corretamente");
	document.formu.prEmail.focus();
return false;}

if (document.formu.prEmail.value.indexOf('@')==-1){
	alert ("Preencha o campo E-MAIL DO PASTOR corretamente");
	document.formu.prEmail.focus();
return false;}
}