function submit_empresa_recomendar()
{
	try
	{
		var aMsg = new Array();
		var aMsgIndex = 0;
		var oNome = document.getElementById("txtNome");
		var oEmail = document.getElementById("txtEMail");
		var oDest1 = document.getElementById("txtDest1");
		var oDest2 = document.getElementById("txtDest2");
		var oDest3 = document.getElementById("txtDest3");
		var oMsg = document.getElementById("txtMensagem");		
		if (Trim(oNome.value) == "")
		{
			aMsg[aMsgIndex] = "o seu nome;"
			aMsgIndex = aMsgIndex + 1;
		}
		if (Trim(oEmail.value) == "")  
		{
			aMsg[aMsgIndex] = "o seu e-mail;"
			aMsgIndex = aMsgIndex + 1;
		}
		if ( (Trim(oEmail.value) != "")  && (!CheckEMailAddress(oEmail.value)))
		{
			aMsg[aMsgIndex] = "o seu e-mail é inválido;"
			aMsgIndex = aMsgIndex + 1;
		}
		if (Trim(oDest1.value) == "")  
		{
			aMsg[aMsgIndex] = "o primeiro destinatário;"
			aMsgIndex = aMsgIndex + 1;
		}
		if ( (Trim(oDest1.value) != "")  && (!CheckEMailAddress(oDest1.value)))
		{
			aMsg[aMsgIndex] = "o e-mail do primeiro destinatário é inválido;"
			aMsgIndex = aMsgIndex + 1;
		}
		if ( (Trim(oDest2.value) != "")  && (!CheckEMailAddress(oDest2.value)))
		{
			aMsg[aMsgIndex] = "o e-mail do segundo destinatário é inválido;"
			aMsgIndex = aMsgIndex + 1;
		}
		if ( (Trim(oDest3.value) != "")  && (!CheckEMailAddress(oDest3.value)))
		{
			aMsg[aMsgIndex] = "o e-mail do terceiro destinatário é inválido;"
			aMsgIndex = aMsgIndex + 1;
		}		
		if (Trim(oMsg.value) == "")
		{
			aMsg[aMsgIndex] = "o seu comentário;"
			aMsgIndex = aMsgIndex + 1;
		}		 
		
		if (aMsgIndex > 0)
		{
			SetValidateErrorsRequired("base_varHeaderSub",aMsg);
			return false;
		}
		else
		{
			return confirm("Confirma os dados a submeter?");
		}		
	}
	catch(err)
	{
		return false;
	}	
}

