function envia_contato()
{

if (document.correio.nome.value == '')
{
alert('Por favor informe seu nome!');
document.correio.nome.focus()
return false;
}


if (document.correio.email.value == '')
{
alert('Por favor preencha o e-mail!');
document.correio.email.focus()
return false;
}

if (document.correio.email.value.indexOf('@', 0) == -1 || document.correio.email.value.indexOf('.', 0) == -1)
{
alert("Por Favor Digite um E-mail Válido!");
document.correio.email.focus();
return false;
}

else
{document.correio.submit();}

}


function enviaCadastro()
{

if (document.FORMULARIO.nom_pessoas.value == '')
{
alert('Por favor informe seu NOME!');
document.FORMULARIO.nom_pessoas.focus()
return false;
}

if (document.FORMULARIO.num_cgcecpf.value == '')
{
alert('Por favor informe seu CPF!');
document.FORMULARIO.num_cgcecpf.focus()
return false;
}

if (document.FORMULARIO.num_rgpesso.value == '')
{
alert('Por favor informe seu RG!');
document.FORMULARIO.num_rgpesso.focus()
return false;
}

if (document.FORMULARIO.dat_nascime.value == '')
{
alert('Por favor informe sua DATA DE NASCIMENTO!');
document.FORMULARIO.dat_nascime.focus()
return false;
}

if (document.FORMULARIO.des_estaciv.value == '')
{
alert('Por favor informe seu ESTADO CIVIL!');
document.FORMULARIO.des_estaciv.focus()
return false;
}

if (document.FORMULARIO.tip_sanguep.value == '')
{
alert('Por favor informe seu TIPO SANGUÍNEO!');
document.FORMULARIO.tip_sanguep.focus()
return false;
}

if (document.FORMULARIO.des_sexopes.value == '')
{
alert('Por favor informe seu SEXO!');
document.FORMULARIO.des_sexopes.focus()
return false;
}

if (document.FORMULARIO.des_enderec.value == '')
{
alert('Por favor informe seu ENDEREÇO!');
document.FORMULARIO.des_enderec.focus()
return false;
}

if (document.FORMULARIO.num_enderec.value == '')
{
alert('Por favor informe seu NÚMERO DO ENDEREÇO!');
document.FORMULARIO.num_enderec.focus()
return false;
}

if (document.FORMULARIO.nom_bairroc.value == '')
{
alert('Por favor informe seu BAIRRO!');
document.FORMULARIO.nom_bairroc.focus()
return false;
}

if (document.FORMULARIO.des_cepozof.value == '')
{
alert('Por favor informe seu CEP!');
document.FORMULARIO.des_cepozof.focus()
return false;
}

if (document.FORMULARIO.nom_cidadec.value == '')
{
alert('Por favor informe sua CIDADE!');
document.FORMULARIO.nom_cidadec.focus()
return false;
}

if (document.FORMULARIO.des_estados.value == '')
{
alert('Por favor informe seu ESTADO!');
document.FORMULARIO.des_estados.focus()
return false;
}

if (document.FORMULARIO.des_tipoend.value == '0')
{
alert('Por favor informe seu TIPO DE ENDEREÇO!');
document.FORMULARIO.des_tipoend.focus()
return false;
}

if (document.FORMULARIO.nom_emailpe.value == '')
{
alert('Por favor preencha o E-MAIL!');
document.FORMULARIO.nom_emailpe.focus()
return false;
}

if (document.FORMULARIO.nom_emailpe.value.indexOf('@', 0) == -1 || document.FORMULARIO.nom_emailpe.value.indexOf('.', 0) == -1)
{
alert("Por Favor Digite um E-MAIL VÁLIDO!");
document.FORMULARIO.nom_emailpe.focus();
return false;
}

else
{document.FORMULARIO.submit();}

}




function gravaDep()
{

if (document.FORMULARIO.nome.value == '')
{
alert('Por favor informe seu nome!');
document.FORMULARIO.nome.focus()
return false;
}


if (document.FORMULARIO.empresa.value == '')
{
alert('Por favor informe a Unidade!');
document.FORMULARIO.empresa.focus()
return false;
}

if (document.FORMULARIO.cidade.value == '')
{
alert('Por favor informe a Cidade!');
document.FORMULARIO.cidade.focus()
return false;
}

if (document.FORMULARIO.estado.value == '')
{
alert('Por favor informe o Estado!');
document.FORMULARIO.estado.focus()
return false;
}

if (document.FORMULARIO.descricao.value == '')
{
alert('Por favor preencha o Depoimento!');
document.FORMULARIO.descricao.focus()
return false;
}


else
{document.FORMULARIO.submit();}

}



function indica()
{

if (document.indique.nome_fwd.value == '')
{
alert('Por favor informe seu nome!');
document.indique.nome_fwd.focus();
return false;
}

if (document.indique.amigo_fwd.value == '')
{
alert('Por favor informe o nome do seu amigo!');
document.indique.amigo_fwd.focus();
return false;
}

if (document.indique.mail_fwd.value == '')
{
alert('Por favor informe o e-mail do seu amigo!');
document.indique.mail_fwd.focus();
return false;
}

if (document.indique.mail_fwd.value.indexOf('@', 0) == -1 || document.indique.mail_fwd.value.indexOf('.', 0) == -1)
{
alert("Por Favor Digite um E-mail Válido!");
document.indique.mail_fwd.focus();
return false;
}

else
{document.indique.submit();}

}


function concordo()
{

if (document.FORMULARIO.agree[0].checked)
{
document.FORMULARIO.submit();
}
else
{
//location.href = 'mail_ok.asp?msg=NCAD';
alert('Para poder se cadastrar, é necessário a aceitação \ndos termos de prestação de serviços do contrato.');
}


}


function expande(id){
 var divID = document.getElementById(id).style;
 //var imageID = document.getElementById("img_"+id);
 if (divID.display=='none'){
  divID.display='block';
  //imageID.src ="/fidis/recursos/images/ico_minimize.png";    
 }
 else {
  divID.display='none';
  //imageID.src = "/fidis/recursos/images/ico_maximize.png";
 }
}