<!--
function frm_quotationsValidate() {
	//validate mode
	//-------------
	if(document.frm_quotations.chkModeAirfreight.checked == false && document.frm_quotations.chkModeSeafreight.checked == false && document.frm_quotations.chkModeEuropeanRoad.checked == false){ 
		document.frm_quotations.chkModeAirfreight.focus();
		alert("Please enter the required mode of transport"); 
		return false;       
	}  

	//validate company info
	//----------------------
	if(document.frm_quotations.txtContact.value.length == 0){ 
		document.frm_quotations.txtContact.focus();       
		alert("Please enter your company contact"); 
		return false;       
	}    
	if(document.frm_quotations.txtCompanyName.value.length == 0){ 
		document.frm_quotations.txtCompanyName.focus();       
		alert("Please enter your company name"); 
		return false;       
	}  
		//validate email
		//--------------
		if(document.frm_quotations.txtEmail.value.length == 0){ 
			document.frm_quotations.txtEmail.focus();       
			alert("Please enter your email"); 
			return false;       
		}    
		if(-1 == document.frm_quotations.txtEmail.value.indexOf("@")){ 
			document.frm_quotations.txtEmail.focus(); 
			alert("Your email must have a '@'");        
			return false;        
		}
		if(-1 != document.frm_quotations.txtEmail.value.indexOf("#")){ 
			document.frm_quotations.email.focus(); 
			alert("Your email must not have an '#' in it");        
			return false; 		       
		}    
		if(-1 != document.frm_quotations.txtEmail.value.indexOf(" ")){ 
			document.frm_quotations.txtEmail.focus(); 
			alert("Your email must not have a space in it");        
			return false; 		       
		}	
		if(document.frm_quotations.txtEmail.value.length == (frm_quotations.txtEmail.value.indexOf("@")+1)){ 
			document.frm_quotations.txtEmail.focus(); 
			alert("Your email must have a domain name after the '@'."); 
			return false;       
		}    	
		if(-1 == document.frm_quotations.txtEmail.value.indexOf(".")){ 
			document.frm_quotations.txtEmail.focus(); 
			alert("Your email must have a fullstop");        
			return false;        
		}							
		if(document.frm_quotations.txtEmail.value.length == (frm_quotations.txtEmail.value.indexOf(".")+1)){ 
			document.frm_quotations.txtEmail.focus(); 
			alert("Your email must have a domain name after the fullstop"); 
			return false;       
		}  
	if(document.frm_quotations.txtTelephone.value.length == 0){ 
		document.frm_quotations.txtTelephone.focus();       
		alert("Please enter your company telephone number"); 
		return false;       
	}    
	if(document.frm_quotations.txtFax.value.length == 0){ 
		document.frm_quotations.txtFax.focus();       
		alert("Please enter your company fax"); 
		return false;       
	}   			
	
	//validate origin of shipment
	//----------------------------
	if(document.frm_quotations.txtShipmentAddress.value.length == 0){ 
		document.frm_quotations.txtShipmentAddress.focus();       
		alert("Please enter the origin of shipment address"); 
		return false;       
	}   			
	if(document.frm_quotations.txtShipmentCity.value.length == 0){ 
		document.frm_quotations.txtShipmentCity.focus();       
		alert("Please enter the origin of shipment city"); 
		return false;       
	}   			
	if(document.frm_quotations.txtShipmentCounty.value.length == 0){ 
		document.frm_quotations.txtShipmentCounty.focus();       
		alert("Please enter the origin of shipment county/province/state"); 
		return false;       
	}   			
	if(document.frm_quotations.txtShipmentAreaCode.value.length == 0){ 
		document.frm_quotations.txtShipmentAreaCode.focus();       
		alert("Please enter the origin of shipment area code"); 
		return false;       
	}   			
	if(document.frm_quotations.txtShipmentCountry.value.length == 0){ 
		document.frm_quotations.txtShipmentCountry.focus();       
		alert("Please enter the origin of shipment country"); 
		return false;       
	}   
	
	//validate destination
	//----------------------------
	if(document.frm_quotations.txtDestinationAddress.value.length == 0){ 
		document.frm_quotations.txtDestinationAddress.focus();       
		alert("Please enter the destination address"); 
		return false;       
	}   			
	if(document.frm_quotations.txtDestinationCity.value.length == 0){ 
		document.frm_quotations.txtDestinationCity.focus();       
		alert("Please enter the destination city"); 
		return false;       
	}   			
	if(document.frm_quotations.txtDestinationCounty.value.length == 0){ 
		document.frm_quotations.txtDestinationCounty.focus();       
		alert("Please enter the destination county/province/state"); 
		return false;       
	}   			
	if(document.frm_quotations.txtDestinationAreaCode.value.length == 0){ 
		document.frm_quotations.txtDestinationAreaCode.focus();       
		alert("Please enter the destination area code"); 
		return false;       
	}   			
	if(document.frm_quotations.txtDestinationCountry.value.length == 0){ 
		document.frm_quotations.txtDestinationCountry.focus();       
		alert("Please enter the destination country"); 
		return false;       
	}								

	//validate shipment details
	//-------------------------
	if(document.frm_quotations.txtCommodity.value.length == 0){ 
		document.frm_quotations.txtCommodity.focus();       
		alert("Please enter the commodity"); 
		return false;       
	}   			
	if(document.frm_quotations.txtNoOfPieces.value.length == 0){ 
		document.frm_quotations.txtNoOfPieces.focus();       
		alert("Please enter the number of pieces"); 
		return false;       
	}   			
	if(document.frm_quotations.txtGrossWeight.value.length == 0){ 
		document.frm_quotations.txtGrossWeight.focus();       
		alert("Please enter the gross weight"); 
		return false;       
	}   			
	if(document.frm_quotations.txtDimensions.value.length == 0){ 
		document.frm_quotations.txtDimensions.focus();       
		alert("Please enter the dimensions"); 
		return false;       
	}   			
	if(document.frm_quotations.txtDeclaredValue.value.length == 0){ 
		document.frm_quotations.txtDeclaredValue.focus();       
		alert("Please enter the declared value"); 
		return false;       
	}
	if(document.frm_quotations.rdoHazardous[0].checked == false && document.frm_quotations.rdoHazardous[1].checked == false){ 
		document.frm_quotations.rdoHazardous[0].focus();       
		alert("Please inform us if the shipment is hazardous"); 
		return false;       
	}
	if(document.frm_quotations.rdoSpecialHandling[0].checked == false && document.frm_quotations.rdoSpecialHandling[1].checked == false){ 
		document.frm_quotations.rdoSpecialHandling[0].focus();       
		alert("Please inform us if there are any special handling instructions"); 
		return false;       
	}	
	
	//validate terms of delivery
	//--------------------------
	if(document.frm_quotations.rdoSpecialHandling[1].checked == true){ 
		if(document.frm_quotations.txtSpecialHandlingInstructions.value.length == 0){ 
			document.frm_quotations.txtSpecialHandlingInstructions.focus();       
			alert("Please enter the special handling instructions"); 
			return false;       
		}		
	}
	if(document.frm_quotations.rdoDelivery[0].checked == false && document.frm_quotations.rdoDelivery[1].checked == false && document.frm_quotations.rdoDelivery[2].checked == false && document.frm_quotations.rdoDelivery[3].checked == false){ 
		document.frm_quotations.rdoDelivery[0].focus();       
		alert("Please enter a delivery type"); 
		return false;       
	}	
	if(document.frm_quotations.rdoRequireInsurance[0].checked == false && document.frm_quotations.rdoRequireInsurance[1].checked == false){ 
		document.frm_quotations.rdoRequireInsurance[0].focus();       
		alert("Please inform us if you would like insurance"); 
		return false;       
	}	
	if(document.frm_quotations.rdoRequireInsurance[1].checked == true){	
		if(document.frm_quotations.rdoQuoteInsurance[0].checked == false && document.frm_quotations.rdoQuoteInsurance[1].checked == false){ 
			document.frm_quotations.rdoQuoteInsurance[0].focus();       
			alert("Please inform us if you would like us to requote with insurance"); 
			return false;       
		}				
	}
		
	//send form info
	//--------------  	
	return true;
}
//-->