function get(id)
{
	return document.getElementById(id);
}

function muda()
{
	if(get('adicionar').style.display == 'none')
	{
		get('fotos').style.display = 'none';
		get('adicionar').style.display = 'block';
		get('mudar').value = 'Fotos Cadastradas';
	}
	else
	{
		get('fotos').style.display = 'block';
		get('adicionar').style.display = 'none';
		get('mudar').value = 'Adicionar Fotos';
	}
}


function validaContato()
{
	if(document.contatoForm.nome.value=="") {
		document.getElementById("highLightNome").style.display = "block";
		return false;
	}else{
		document.getElementById("highLightNome").style.display = "none";
	}
	if(document.contatoForm.email.value=="") {
		document.getElementById("highLightEmail").style.display = "block";
		return false;
	}else{
		document.getElementById("highLightEmail").style.display = "none";
	}
	if(document.contatoForm.mensagem.value=="") {
		document.getElementById("highLightMensagem").style.display = "block";
		return false;
	}else{
		document.getElementById("highLightMensagem").style.display = "none";
	}
}

function validaCadastro()
{
	if(empty(get('nome'))) {
		document.getElementById("highLightNome").style.display = "block";
		return false;
	}else{
		document.getElementById("highLightNome").style.display = "none";
	}
	if(!validaEMAIL(get('email').value)) {
		document.getElementById("highLightEmail").style.display = "block";
		return false;
	}else{
		document.getElementById("highLightEmail").style.display = "none";
	}
	if(empty(get('senha'))) {
		document.getElementById("highLightSenha").style.display = "block";
		return false;
	}else{
		document.getElementById("highLightSenha").style.display = "none";
	}
	if(empty(get('nascimento'))) {
		document.getElementById("highLightNascimento").style.display = "block";
		return false;
	}else{
		document.getElementById("highLightNascimento").style.display = "none";
	}
	if(empty(get('cidade'))) {
		document.getElementById("highLightCidade").style.display = "block";
		return false;
	}else{
		document.getElementById("highLightCidade").style.display = "none";
	}
}
