<!-- Hide from older browsers
	
//Check the enquiry form is filled in correctly
function CheckForm () { 

	//Variáveis
	var errorMsg = "";
	var F = document.frmEnquiry;

	//Campo Nome
	if (F.nome.value == ""){
		errorMsg += "\n\tNome - Por favor, preencha o seu nome completo";	
		F.nome.focus();
	}

	//Campo E-mail
	if ((F.email.value == "") || (F.email.value.length > 0 && (F.email.value.indexOf("@",0) == - 1 || F.email.value.indexOf(".",0) == - 1))) { 
		errorMsg += "\n\tE-mail - Por favor, preencha seu o e-mail corretamente";
		F.email.focus();
	}
	
	
	//If there is aproblem with the form then display an error
	if (errorMsg != ""){
		msg = "______________________________________________________________\n\n";
		msg += "O seu formulário não pôde ser enviado pois contém algum erro.\n";
		msg += "______________________________________________________________\n\n";
		msg += "O(s) seguinte(s) campos esta(ão) com problema(s): \n";
		
		errorMsg += alert(msg + errorMsg + "\n\n");
		return false;
	}
	
	return true;
}

// -->
