function submit_contactos_formrapido()
{
	try
	{
		var aMsg = new Array();
		var aMsgIndex = 0;
		var oNome = document.getElementById("txtNome");
		var oEmail = document.getElementById("txtEMail");
		var oTelefone = document.getElementById("txtTelefone");
		var oMsg = document.getElementById("txtMensagem");
		
		if (Trim(oNome.value) == "")
		{
			aMsg[aMsgIndex] = "o seu nome;"
			aMsgIndex = aMsgIndex + 1;
		}
		if ( (Trim(oEmail.value) == "")  && (Trim(oTelefone.value) == ""))
		{
			aMsg[aMsgIndex] = "o seu e-mail ou o seu telefone;"
			aMsgIndex = aMsgIndex + 1;
		}
		if ( (Trim(oEmail.value) != "")  && (!CheckEMailAddress(oEmail.value)))
		{
			aMsg[aMsgIndex] = "o seu e-mail é inválido;"
			aMsgIndex = aMsgIndex + 1;
		}
		if ( (Trim(oTelefone.value) != "")  && (!CheckNrTelefone(oTelefone.value)))
		{
			aMsg[aMsgIndex] = "o seu telefone é inválido;"
			aMsgIndex = aMsgIndex + 1;
		}
		if (Trim(oMsg.value) == "")
		{
			aMsg[aMsgIndex] = "a sua mensagem;"
			aMsgIndex = aMsgIndex + 1;
		}		 
		
		if (aMsgIndex > 0)
		{
			SetValidateErrorsRequired("base_varHeaderSub",aMsg);
			return false;
		}
		else
		{
			return confirm("Confirma os dados a submeter?");
		}		
	}
	catch(err)
	{
		return false;
	}	
}

