function submit_suptecnico_registo()
{
	try
	{		
		var aMsg = new Array();
		var aMsgIndex = 0;
		var	oContacto = document.getElementById("txtContacto");
		var oEmpresa = document.getElementById("txtEmpresa");
		var oNrCliente = document.getElementById("txtNrCliente");
		var oNrContribuinte = document.getElementById("txtNrContribuinte");
		var	oEMail = document.getElementById("txtEMail");
		var oTelefone = document.getElementById("txtTelefone");
		var oObs = document.getElementById("txtObs");
	
		if (Trim(oContacto.value) == "")
		{
			aMsg[aMsgIndex] = "o seu Nome ;"
			aMsgIndex = aMsgIndex + 1;
		}	
		if (Trim(oEmpresa.value) == "")
		{
			aMsg[aMsgIndex] = "a Empresa ;"
			aMsgIndex = aMsgIndex + 1;
		}	
		if (Trim(oNrCliente.value) == "")
		{
			aMsg[aMsgIndex] = "o seu Nr. Cliente ;"
			aMsgIndex = aMsgIndex + 1;
		}	
		if (Trim(oNrContribuinte.value) == "")
		{
			aMsg[aMsgIndex] = "o seu Nr. Contribuinte ;"
			aMsgIndex = aMsgIndex + 1;
		}	
		if ( (Trim(oNrContribuinte.value) != "")  && (!CheckNrContribuinte(oNrContribuinte.value)))
		{
			aMsg[aMsgIndex] = "o seu Nr. Contribuinte é inválido;"
			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 (aMsgIndex > 0)
		{		
			SetValidateErrorsRequired("base_varHeaderSub",aMsg);
			return false;
		}
		else
		{
			return true;
		}		
	}
	catch(err)
	{
		alert(err);
		return false;
	}	
}

