///////////////////////////////////////////////////////////////////////////////////////
// Checa formulário de contato
///////////////////////////////////////////////////////////////////////////////////////
function validaForm(contato)
{	
	if (window.document.contato.nome.value.length == "")
	{
		window.alert("Preencha corretamente o campo [ NOME ]");
		contato.nome.focus();
		return (false);
	}

	if (window.document.contato.email.value.length == "")
	{
		window.alert("Preencha corretamente o campo [ E-MAIL ]");
		contato.email.focus();
		return (false);
	}

	if (window.document.contato.cidade.value.length == "")
	{
		window.alert("Preencha corretamente o campo [ CIDADE ]");
		contato.cidade.focus();
		return (false);
	}

	if (window.document.contato.estado.value == 0)
	{
		window.alert("Selecione o [ ESTADO ] referente a sua cidade");
		contato.estado.focus();
		return (false);
	}

	if (window.document.contato.mensagem.value.length == "")
	{
		window.alert("O campo [ MENSAGEM ] está vazio");
		contato.cidade.focus();
		return (false);
	}
}

///////////////////////////////////////////////////////////////////////////////////////
// Checa formulário 'associe-se'
///////////////////////////////////////////////////////////////////////////////////////
function validaFormulario(associese)
{	
	if (window.document.associese.nome.value.length == "")
	{
		window.alert("Preencha corretamente o campo [ NOME ]");
		associese.nome.focus();
		return (false);
	}

	if (window.document.associese.rg.value.length == "")
	{
		window.alert("Preencha corretamente o campo [ RG ]");
		associese.rg.focus();
		return (false);
	}

	if (window.document.associese.cpf.value.length == "")
	{
		window.alert("Preencha corretamente o campo [ CPF ]");
		associese.cpf.focus();
		return (false);
	}

	if (window.document.associese.profissao_atividade.value.length == "")
	{
		window.alert("Preencha corretamente o campo [ Profissão / Atividade ]");
		associese.profissao_atividade.focus();
		return (false);
	}

	if (window.document.associese.logradouro.value.length == "")
	{
		window.alert("Preencha corretamente o campo [ Logradouro ]");
		associese.logradouro.focus();
		return (false);
	}

	if (window.document.associese.logradouro.value.length == "")
	{
		window.alert("Preencha corretamente o campo [ Logradouro ]");
		associese.logradouro.focus();
		return (false);
	}

	if (window.document.associese.numero.value.length == "")
	{
		window.alert("Preencha corretamente o campo [ Número ]");
		associese.numero.focus();
		return (false);
	}

	if (window.document.associese.cep.value.length == "")
	{
		window.alert("Preencha corretamente o campo [ CEP ]");
		associese.cep.focus();
		return (false);
	}

	if (window.document.associese.bairro.value.length == "")
	{
		window.alert("Preencha corretamente o campo [ BAIRRO ]");
		associese.bairro.focus();
		return (false);
	}

	if (window.document.associese.cidade.value.length == "")
	{
		window.alert("Preencha corretamente o campo [ CIDADE ]");
		associese.cidade.focus();
		return (false);
	}

	if (window.document.associese.estado.value == 0)
	{
		window.alert("Selecione o [ ESTADO ] referente a sua cidade");
		associese.estado.focus();
		return (false);
	}

	if (window.document.associese.email.value.lenght == "")
	{
		window.alert("Preencha corretamente o campo [ E-MAIL ]");
		associese.email.focus();
		return (false);
	}

	if (window.document.associese.local_data.value.lenght == "")
	{
		window.alert("Preencha corretamente o campo [ Local e Data ]");
		associese.local_data.focus();
		return (false);
	}

	if (window.document.associese.tipo_pagamento.value == 0)
	{
		window.alert("Escolha o [ TIPO DE PAGAMENTO ]");
		associese.tipo_pagamento.focus();
		return (false);
	}
}