//............................................................................................................................
// FUNÇÃO FORM NEWSLETTER
function newsletter(theForm)
{
	if (theForm.email.value == "")
	{
		alert("Type your e-mail");
		theForm.email.focus();
		return (false);
	}
	if (theForm.email.value.length < 5)
	{
    		alert("Fill in the \"Email\" correctly.");
    		theForm.email.focus();
    		return (false);
  	}
  	if (theForm.email.value.indexOf ('@',0) == -1 || theForm.email.value.indexOf ('.',0) == -1)
  	{
    		alert("Fill in the \"Email\" correctly.");
    		theForm.email.focus();
    		return (false);
  	}
return (true);
}


//............................................................................................................................
// FUNÇÃO FORM CONTATO
function contato(theForm)
{
	if (theForm.nome.value == "")
	{
		alert("The \"Name\" field is blank.");
		theForm.nome.focus();
		return (false);
	}
	if (theForm.cidade.value == "")
	{
		alert("The \"City\" field is blank.");
		theForm.cidade.focus();
		return (false);
	}
	if (theForm.pais.value == "")
	{
		alert("The \"Country\" field is blank.");
		theForm.pais.focus();
		return (false);
	}
	if (theForm.email.value == "")
	{
		alert("The \"E-mail\" field is blank.");
		theForm.email.focus();
		return (false);
	}
	if (theForm.email.value.length < 5)
	{
		alert("Fill in the \"E-mail\" correctly.");
		theForm.email.focus();
		return (false);
	}
	if (theForm.email.value.indexOf ('@',0) == -1 || theForm.email.value.indexOf ('.',0) == -1)
	{
		alert("Fill in the \"E-mail\" correctly.");
		theForm.email.focus();
		return (false);
	}
	if (theForm.mensagem.value == "")
	{
		alert("The \"Message\" field is blank.");
		theForm.mensagem.focus();
		return (false);
	}
return (true);
}