// JavaScript Document

function altsenha()
{
email=document.contatos.USU_email.value
antiga=document.contatos.antiga.value
nova=document.contatos.nova.value
confirma=document.contatos.confirma.value

if (email.length == "")
	{
		alert("Preencha o Campo E-mail")	
		return false
	}
if (antiga.length == "")
	{
		alert("Informe a Senha Antiga")	
		return false
	}
if (nova.length == "")
	{
		alert("Preencha o Campo Nova Senha")	
		return false
	}
if (confirma.length == "")
	{
		alert("Confirme a Nova Senha")	
		return false
	}
else
	{
		return true	
	}

}


////////////////// ========================================

function altdados()
{
nome=document.contatos.USU_nome.value
fone=document.contatos.USU_telefone.value
nasci=document.contatos.USU_nascimento.value
cpf=document.contatos.USU_cpf.value
ende=document.contatos.USU_endereco.value
cid=document.contatos.USU_cidade.value


if (nome.length == "")
	{
		alert("Informe seu Nome")	
		return false
	}
if (fone.length == "")
	{
		alert("Informe um Número para Contato")	
		return false
	}
if (email.length == "")
	{
		alert("Informe seu E-mail de Contato")	
		return false
	}
if (nasci.length == "")
	{
		alert("Informe a Data de Nascimento")	
		return false
	}
if (cpf.length == "")
	{
		alert("Informe o CPF")
		return false
	}
if (ende.length == "")
	{
		alert("Preecha o Campo Endereço")
		return false
	}
if (cid.length == "")
	{
		alert("Informe a Cidade/Estado")
		return false
	}
else
	{
		return true	
	}

}


///////////////// ==========================================

function precadastro()
{
nome=document.contatos.nome.value
fone=document.contatos.fone.value
email=document.contatos.mail.value
ende=document.contatos.endereco.value
cid=document.contatos.cidade.value
cep=document.contatos.cep.value

if (nome.length == "")
	{
		alert("Informe seu Nome")	
		return false
	}
if (fone.length == "")
	{
		alert("Informe um Número para Contato")	
		return false
	}
if (email.length == "")
	{
		alert("Informe seu E-mail de Contato")	
		return false
	}
if (ende.length == "")
	{
		alert("Preecha o Campo Endereço")
		return false
	}
if (cid.length == "")
	{
		alert("Informe a Cidade/Estado")
		return false
	}
if (cep.length == "")
	{
		alert("Informe o CEP Postal de sua Localidade")
		return false
	}
else
	{
		return true	
	}

}

/////////////////////// ----------------------


function CadAssociado()
{
nome=document.contatos.nome.value
fone=document.contatos.fone.value
email=document.contatos.mail.value

if (nome.length == "")
	{
		alert("Informe seu Nome")	
		return false
	}
if (fone.length == "")
	{
		alert("Informe um Número para Contato")	
		return false
	}
if (email.length == "")
	{
		alert("Informe seu E-mail de Contato")	
		return false
	}
else
	{
		return true	
	}

}

/////////////////////// ----------------------



function enviacontato()
{
nome=document.contatos.nome.value
cid=document.contatos.cidade.value
email=document.contatos.mail.value
ass=document.contatos.assunto.value
men=document.contatos.msg.value

if (nome.length == "")
	{
		alert("Informe seu Nome")	
		return false
	}
if (cid.length == "")
	{
		alert("Informe a Cidade")	
		return false
	}
if (email.length == "")
	{
		alert("Informe seu E-mail de Contato")	
		return false
	}
if (ass.length == "")
	{
		alert("Informe o Assunto")	
		return false
	}
if (men.length == "")
	{
		alert("Digite sua Mensagem	")
		return false
	}
else
	{
		return true	
	}

}
