//------------------------------------------------------------------------------------------------------
// 											Author: Desmond Mongwe
//------------------------------------------------------------------------------------------------------
function validateForm()
{

	var emailAddress = document.fromQouteEstimate.txtEmailAddress.value;

	var facilitiesReq = document.fromQouteEstimate.txtFacilityReq.value;
	var crewReq = document.fromQouteEstimate.txtCrewReq.value;
	var lightingReq = document.fromQouteEstimate.txtLighting.value;
	var satelliteReq = document.fromQouteEstimate.txtSatUpDownLinking.value;
	var comCircuitsReq = document.fromQouteEstimate.txtComCircuits.value;
	var contractedServicesReq = document.fromQouteEstimate.txtSubContracts.value;
	var otherReq = document.fromQouteEstimate.txtOther.value;


	if(!emailCheck(document.fromQouteEstimate)){	
		return false;
	}

	var noReq=true;

	if ((facilitiesReq == "")) {
		noReq=true;
	}else{
		noReq=false;
	}

	if ((crewReq == "")&&(noReq)) {
		noReq=true;
	}else{
		noReq=false;
	}

	if ((lightingReq == "")&&(noReq)) {
		noReq=true;
	}else{
		noReq=false;
	}

	if ((satelliteReq == "")&&(noReq)) {
		noReq=true;
	}else{
		noReq=false;
	}

	if ((comCircuitsReq == "")&&(noReq)) {
		noReq=true;
	}else{
		noReq=false;
	}

	if ((contractedServicesReq == "")&&(noReq)) {
		noReq=true;
	}else{
		noReq=false;
	}

	if ((otherReq == "")&&(noReq)) {		
		noReq=true;
	}else{
		noReq=false;
	}

	if(noReq){
		alert("Please specify atleast one requirement.");
		document.fromQouteEstimate.txtFacilityReq.focus();
		return false;
	}	

	return document.fromQouteEstimate.submit();
//	return true;
}
