//............................................................................................................................
// FUNÇÃO FORM NEWSLETTER
function newsletter(theForm)
{
	if (theForm.email.value == "")
	{
		alert("Rellene su e-mail");
		theForm.email.focus();
		return (false);
	}
	if (theForm.email.value.length < 5)
	{
    		alert("Rellene correctamente su e-mail.");
    		theForm.email.focus();
    		return (false);
  	}
  	if (theForm.email.value.indexOf ('@',0) == -1 || theForm.email.value.indexOf ('.',0) == -1)
  	{
    		alert("Rellene correctamente su e-mail.");
    		theForm.email.focus();
    		return (false);
  	}
return (true);
}


//............................................................................................................................
// FUNÇÃO FORM CONTATO
function contato(theForm)
{
	if (theForm.nome.value == "")
	{
		alert("El campo \"Nombre\" está en blanco.");
		theForm.nome.focus();
		return (false);
	}
	if (theForm.cidade.value == "")
	{
		alert("El campo \"Ciudad\" está en blanco.");
		theForm.cidade.focus();
		return (false);
	}
	if (theForm.pais.value == "")
	{
		alert("El campo \"País\" está en blanco.");
		theForm.pais.focus();
		return (false);
	}
	if (theForm.email.value == "")
	{
		alert("El campo \"E-mail\" está en blanco.");
		theForm.email.focus();
		return (false);
	}
	if (theForm.email.value.length < 5)
	{
		alert("Rellene correctamente el campo \"E-mail\".");
		theForm.email.focus();
		return (false);
	}
	if (theForm.email.value.indexOf ('@',0) == -1 || theForm.email.value.indexOf ('.',0) == -1)
	{
		alert("Rellene correctamente el campo \"E-mail\".");
		theForm.email.focus();
		return (false);
	}
	if (theForm.mensagem.value == "")
	{
		alert("El campo \"Mensaje\" está en blanco.");
		theForm.mensagem.focus();
		return (false);
	}
return (true);
}