//............................................................................................................................
// 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.ddd.value == "")
	{
		alert("El campo \"DDD-Teléfono\" está en blanco.");
		theForm.ddd.focus();
		return (false);
	}
	if (theForm.telefone.value == "")
	{
		alert("El campo \"Teléfono\" está en blanco.");
		theForm.telefone.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);
}
