function novasenha()
{
ant = document.Msenha.antiga.value
nova = document.Msenha.nova.value
conf = document.Msenha.confirma.value


	if(ant.length == "")
	{
		alert("Preencha o Campo Senha Antiga")	
		return false
	}
	if(nova.length == "")
	{
		alert("Preencha o Campo Nova Senha")	
		return false
	}
	if(conf.length == "")
	{
		alert("Confirme sua Nova Senha")	
		return false
	}
	else
	{
		return true	
	}

}


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

function logaluno()
{
login = document.loginalunos.login.value
pwd = document.loginalunos.pwd.value


	if(login.length == "")
	{
		alert("Preencha o Campo Login de Acesso")	
		return false
	}
	if(pwd.length == "")
	{
		alert("Informe a sua Senha de Acesso")	
		return false
	}
	else
	{
		return true	
	}

}

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

function formcontato()
{
nome = document.contatouca.nome.value
email = document.contatouca.email.value
ass = document.contatouca.assunto.value
msg = document.contatouca.mensagem.value

	if(nome.length == "")
	{
		alert("Preencha o Campo Seu Nome")	
		return false
	}
	if(email.length == "")
	{
		alert("Preencha o Campo Seu E-mail")	
		return false
	}
	if(ass.length == "")
	{
		alert("Preencha o Campo Assunto")	
		return false
	}
	if(msg.length == "")
	{
		alert("Digite a Mensagem")	
		return false
	}
	else
	{
		return true	
	}

}


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

function cadastros()
{
	
nome = document.cadastro.nome.value
dia = document.cadastro.dia.value
mes = document.cadastro.mes.value
ano = document.cadastro.ano.value
cel = document.cadastro.celular.value
tel = document.cadastro.telefone.value
email = document.cadastro.email.value
end = document.cadastro.endereco.value
bairro = document.cadastro.bairro.value
cidade = document.cadastro.cidade.value


	if(nome.length == "")
	{
		alert("Preencha o Campo Nome Completo")	
		return false
	}
	if((dia.length == "") || (mes.legth == "") || (ano.length == ""))
	{
		alert("Informe a Data de Nascimento")	
		return false
	}
	if((cel.length == "") && (tel.length == ""))
	{
		alert("Informe pelo menos 1 (um) Telefone de Contato")	
		return false
	}
	if(email.length == "")
	{
		alert("Preencha o Campo E-mail")	
		return false
	}
	if(end.length == "")
	{
		alert("Informe seu Endereço")	
		return false
	}
	if(bairro.length == "")
	{
		alert("Informe o Bairro")	
		return false
	}
	if(cidade.length == "")
	{
		alert("Informe a Cidade")	
		return false
	}
	
	else
	{
		return true	
	}

}
