//............................................................................................................................
// FUNÇÃO FORM NEWSLETTER
function newsletter(theForm)
{
	if (theForm.email.value == "")
	{
		alert("Digite seu e-mail");
		theForm.email.focus();
		return (false);
	}
	if (theForm.email.value.length < 5)
	{
    		alert("Preencha corretamente seu e-mail.");
    		theForm.email.focus();
    		return (false);
  	}
  	if (theForm.email.value.indexOf ('@',0) == -1 || theForm.email.value.indexOf ('.',0) == -1)
  	{
    		alert("Preencha corretamente seu e-mail.");
    		theForm.email.focus();
    		return (false);
  	}
return (true);
}


//............................................................................................................................
// FUNÇÃO FORM CONTATO
function contato(theForm)
{
	if (theForm.nome.value == "")
	{
		alert("O campo \"Nome\" está em branco.");
		theForm.nome.focus();
		return (false);
	}
	if (theForm.cidade.value == "")
	{
		alert("O campo \"Cidade\" está em branco.");
		theForm.cidade.focus();
		return (false);
	}
	if (theForm.ddd.value == "")
	{
		alert("O campo \"DDD\" está em branco.");
		theForm.ddd.focus();
		return (false);
	}
	if (theForm.telefone.value == "")
	{
		alert("O campo \"Telefone\" está em branco.");
		theForm.telefone.focus();
		return (false);
	}
	if (theForm.email.value == "")
	{
		alert("O campo \"E-mail\" está em branco.");
		theForm.email.focus();
		return (false);
	}
	if (theForm.email.value.length < 5)
	{
		alert("Preencha corretamente o campo \"E-mail\".");
		theForm.email.focus();
		return (false);
	}
	if (theForm.email.value.indexOf ('@',0) == -1 || theForm.email.value.indexOf ('.',0) == -1)
	{
		alert("Preencha corretamente o campo \"E-mail\".");
		theForm.email.focus();
		return (false);
	}
	if (theForm.mensagem.value == "")
	{
		alert("O campo \"Mensagem\" está em branco.");
		theForm.mensagem.focus();
		return (false);
	}
return (true);
}



//............................................................................................................................
// FUNÇÃO FORM ASSOCIE-SE
function associacao(theForm)
{
	if (theForm.nome.value == "")
	{
		alert("O campo \"Nome\" está em branco.");
		theForm.nome.focus();
		return (false);
	}
	if (theForm.empresa.value == "")
	{
		alert("O campo \"Empresa\" está em branco.");
		theForm.empresa.focus();
		return (false);
	}
	if (theForm.ramo.value == "")
	{
		alert("O campo \"Ramo de Atividade\" está em branco.");
		theForm.ramo.focus();
		return (false);
	}
	if (theForm.cidade.value == "")
	{
		alert("O campo \"Cidade\" está em branco.");
		theForm.cidade.focus();
		return (false);
	}
	if (theForm.ddd.value == "")
	{
		alert("O campo \"DDD\" está em branco.");
		theForm.ddd.focus();
		return (false);
	}
	if (theForm.telefone.value == "")
	{
		alert("O campo \"Telefone\" está em branco.");
		theForm.telefone.focus();
		return (false);
	}
	if (theForm.email.value == "")
	{
		alert("O campo \"E-mail\" está em branco.");
		theForm.email.focus();
		return (false);
	}
	if (theForm.email.value.length < 5)
	{
		alert("Preencha corretamente o campo \"E-mail\".");
		theForm.email.focus();
		return (false);
	}
	if (theForm.email.value.indexOf ('@',0) == -1 || theForm.email.value.indexOf ('.',0) == -1)
	{
		alert("Preencha corretamente o campo \"E-mail\".");
		theForm.email.focus();
		return (false);
	}
return (true);
}
