	function checkForm(frm){Pzipck=frm.C_PkuZip.value; Dzipck=frm.C_DlvZip.value; pcck=frm.C_NoPieces_TTL.value; var wgtck=frm.C_Weight_TTL.value;
   	if(frm.C_ContactName1.value==""){alert("Name is a required field."); window.location.hash="Contact"; frm.C_ContactName1.style.backgroundColor='pink'; return false;}
   	if(frm.C_Email.value==""){alert("Email is a required field."); window.location.hash="Contact"; frm.C_Email.style.backgroundColor='pink'; return false;} 
	if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(frm.C_Email.value)==0){alert("You must enter a valid e-mail address.\n"); window.location.hash="Contact"; frm.C_Email.style.backgroundColor='pink'; return false;}   
   	if((frm.C_NeedPickup[1].checked==true) && (frm.C_PkuZip.value=="")){alert("Pickup zip code is a required field."); window.location.hash="Pickup"; frm.C_PkuZip.style.backgroundColor='pink'; return false;}  
   	if((frm.C_NeedPickup[1].checked==true) && (isNaN(Pzipck))){alert("The pickup zip code must be a 5 digit numerical value only.\nFor example:   '91360'   not   '91360-0000'"); window.location.hash="Pickup"; frm.C_PkuZip.style.backgroundColor='pink'; return false;}
	if((frm.C_NeedPickup[1].checked==true) && (frm.C_PkuType.value=="")){alert("Unless dock delivery is selected, the type of\rpickup location must be specified."); window.location.hash="Pickup"; frm.C_PkuType.style.backgroundColor='pink'; return false;}  
   	if((frm.C_NeedPickup[1].checked==true) && (frm.C_PkuDoF.value=="")){alert("Unless dock delivery is selected, the availability\rof a loding dock or forklift must be specified."); window.location.hash="Pickup"; frm.C_PkuDoF.style.backgroundColor='pink'; return false;}  
   	if(frm.C_DlvZip.value==""){alert("The destination zip code is a required field."); window.location.hash="Delivery"; frm.C_DlvZip.style.backgroundColor='pink'; return false;}  
   	if(isNaN(Dzipck)){alert("The destination zip code must be a 5 digit numerical value only.\nFor example:   '91360'   not   '91360-0000'"); window.location.hash="Delivery"; frm.C_DlvZip.style.backgroundColor='pink'; return false;}
	if((frm.C_NeedDelivery[1].checked==true) && (frm.C_DlvType.value=="")){alert("Unless dock delivery is selected, the type of\rDelivery location must be specified."); window.location.hash="Delivery"; frm.C_DlvType.style.backgroundColor='pink'; return false;}  
   	if((frm.C_NeedDelivery[1].checked==true) && (frm.C_DlvDoF.value=="")){alert("Unless dock delivery is selected, the availability\rof a loding dock or forklift must be specified."); window.location.hash="Delivery"; frm.C_DlvDoF.style.backgroundColor='pink'; return false;}  
	if((frm.C_NoPieces_1.value=="")||(frm.C_NoPieces_1.value==" ")){alert("The number of pieces you need shipped is a required field."); window.location.hash="Commodity"; frm.C_NoPieces_1.style.backgroundColor='pink'; return false;} 
   	if(frm.C_PeiceType_1.value=="None"){alert("The type of pieces you need shipped is a required field.\n\nPlease select the piece type (carton, pallet, crate, etc.) or select \n'Other' to specify a unique piece in the Additional Comments box."); window.location.hash="Commodity"; frm.C_PeiceType_1.style.backgroundColor='pink'; return false;} 
   	if(frm.C_Hazmat_1.value=="") {alert("Please specify if the shipment contains any hazardous material."); window.location.hash="Commodity"; frm.C_Hazmat_1.style.backgroundColor='pink'; return false;}
	if(frm.C_Commodity_1.value==""){alert("Contents / Description (what you want shipped) is a required field."); window.location.hash="Commodity"; frm.C_Commodity_1.style.backgroundColor='pink'; return false;} 
   	if(frm.C_sWeight_1.value==""){alert("The weight per each these units is a required field."); window.location.hash="Commodity"; frm.C_sWeight_1.style.backgroundColor='pink'; return false;}
   	if((frm.C_Plength_1.value=="")||(frm.C_Pwidth_1.value=="")||(frm.C_Pheight_1.value=="")){alert("The dimensions of a single piece (LxWxH) are required fields."); window.location.hash="Commodity"; frm.C_Plength_1.style.backgroundColor='pink'; frm.C_Pwidth_1.style.backgroundColor='pink'; frm.C_Pheight_1.style.backgroundColor='pink'; return false;}
   	if(frm.C_Stackable_1.value=="") {alert("Please specify if the pieces are stackable."); window.location.hash="Commodity"; frm.C_Stackable_1.style.backgroundColor='pink'; return false;}
	if((frm.C_Hazmat_1.value=="Yes")&&(frm.C_HazId_1.value=="")){alert("If shipping DOT classified hazardous materials, you must\nspecify the Hazardous Identification number."); window.location.hash="Commodity"; frm.C_HazId_1.style.backgroundColor='pink'; return false;}
	if((frm.C_Hazmat_1.value=="Yes")&&(frm.C_HazCls_1.value=="")){alert("If shipping DOT classified hazardous materials, you must\nspecify the Hazardous Class or Division."); window.location.hash="Commodity"; frm.C_HazCls_1.style.backgroundColor='pink'; return false;}
	if((frm.C_Hazmat_1.value=="Yes")&&(frm.C_HazPG_1.value=="")){alert("If shipping DOT classified hazardous materials, you must\nspecify the Hazardous Packing Group."); window.location.hash="Commodity"; frm.C_HazPG_1.style.backgroundColor='pink'; return false;}
	if((frm.C_NoPieces_2.value>0)&&(frm.C_PeiceType_2.value=="None")){alert("The type of pieces you need shipped (line 2) is a required field.\n\nPlease select the piece type (carton, pallet, crate, etc.) or select \n'Other' to specify a unique piece in the Additional Comments box."); window.location.hash="Commodity"; frm.C_PeiceType_2.style.backgroundColor='pink'; return false;} 
	if((frm.C_NoPieces_2.value>0)&&(frm.C_Hazmat_2.value=="")){alert("Please specify if the shipment (line 2) contains any hazardous material."); window.location.hash="Commodity"; frm.C_Hazmat_2.style.backgroundColor='pink'; return false;}
	if((frm.C_NoPieces_2.value>0)&&(frm.C_Commodity_2.value=="")){alert("Contents / Description (what you want shipped, line 2) is a required field."); window.location.hash="Commodity"; frm.C_Commodity_2.style.backgroundColor='pink'; return false;} 
   	if((frm.C_NoPieces_2.value>0)&&(frm.C_sWeight_2.value=="")){alert("The weight per each these units is a required field."); window.location.hash="Commodity"; frm.C_sWeight_2.style.backgroundColor='pink'; return false;}
	if((frm.C_NoPieces_2.value>0)&&((frm.C_Plength_2.value=="")||(frm.C_Pwidth_2.value=="")||(frm.C_Pheight_2.value==""))){alert("The dimensions of a single piece (line 2: LxWxH) are required fields."); window.location.hash="Commodity"; frm.C_Plength_2.style.backgroundColor='pink'; frm.C_Pwidth_2.style.backgroundColor='pink'; frm.C_Pheight_2.style.backgroundColor='pink'; return false;}
   	if((frm.C_NoPieces_2.value>0)&&(frm.C_Stackable_2.value=="")){alert("Please specify if the pieces (line 2) are stackable."); window.location.hash="Commodity"; frm.C_Stackable_2.style.backgroundColor='pink'; return false;}
	if((frm.C_Hazmat_2.value=="Yes")&&(frm.C_HazId_2.value=="")){alert("If shipping DOT classified hazardous materials, you must\nspecify the Hazardous Identification number."); window.location.hash="Commodity"; frm.C_HazId_2.style.backgroundColor='pink'; return false;}
	if((frm.C_Hazmat_2.value=="Yes")&&(frm.C_HazCls_2.value=="")){alert("If shipping DOT classified hazardous materials, you must\nspecify the Hazardous Class or Division."); window.location.hash="Commodity"; frm.C_HazCls_2.style.backgroundColor='pink'; return false;}
	if((frm.C_Hazmat_2.value=="Yes")&&(frm.C_HazPG_2.value=="")){alert("If shipping DOT classified hazardous materials, you must\nspecify the Hazardous Packing Group."); window.location.hash="Commodity"; frm.C_HazPG_2.style.backgroundColor='pink'; return false;}
   	if(((frm.C_PeiceType_2.value!="None")||(frm.C_Hazmat_2.value!="")||(frm.C_Commodity_2.value!="")||(frm.C_Shipping_Class_2.value!="N/S")||(frm.C_sWeight_2.value!="")||(frm.C_Plength_2.value!="")||(frm.C_Pwidth_2.value!="")||(frm.C_Pheight_2.value!="")||(frm.C_Stackable_2.value!=""))&&((frm.C_NoPieces_2.value=="")||(frm.C_NoPieces_2.value==" "))){alert("If you intend to complete a second shipment contents line,\nyou must specify the number of pieces."); window.location.hash="Commodity"; frm.C_NoPieces_2.style.backgroundColor='pink'; return false;}
	if((frm.C_NoPieces_3.value>0)&&(frm.C_NoPieces_2.value=="")){alert("You must fill out the second line before filling in line three."); window.location.hash="Commodity"; frm.C_NoPieces_2.style.backgroundColor='pink'; frm.C_NoPieces_3.value=''; return false;}   		
   	if((frm.C_NoPieces_3.value>0)&&(frm.C_PeiceType_3.value=="None")){alert("The type of pieces you need shipped (line 3) is a required field.\n\nPlease select the piece type (carton, pallet, crate, etc.) or select \n'Other' to specify a unique piece in the Additional Comments box."); window.location.hash="Commodity"; frm.C_PeiceType_3.style.backgroundColor='pink'; return false;} 
	if((frm.C_NoPieces_3.value>0)&&(frm.C_Hazmat_3.value=="")){alert("Please specify if the shipment (line 3) contains any hazardous material."); window.location.hash="Commodity"; frm.C_Hazmat_3.style.backgroundColor='pink'; return false;}
	if((frm.C_NoPieces_3.value>0)&&(frm.C_Commodity_3.value=="")){alert("Contents / Description (what you want shipped, line 3) is a required field."); window.location.hash="Commodity"; frm.C_Commodity_3.style.backgroundColor='pink'; return false;} 
   	if((frm.C_NoPieces_3.value>0)&&(frm.C_sWeight_3.value=="")){alert("The weight per each these units is a required field."); window.location.hash="Commodity"; frm.C_sWeight_3.style.backgroundColor='pink'; return false;}
	if((frm.C_NoPieces_3.value>0)&&((frm.C_Plength_3.value=="")||(frm.C_Pwidth_3.value=="")||(frm.C_Pheight_3.value==""))){alert("The dimensions of a single piece (line 3: LxWxH) are required fields."); window.location.hash="Commodity"; frm.C_Plength_3.style.backgroundColor='pink'; frm.C_Pwidth_3.style.backgroundColor='pink'; frm.C_Pheight_3.style.backgroundColor='pink'; return false;}
   	if((frm.C_NoPieces_3.value>0)&&(frm.C_Stackable_3.value=="")){alert("Please specify if the pieces (line 3) are stackable."); window.location.hash="Commodity"; frm.C_Stackable_3.style.backgroundColor='pink'; return false;}
	if((frm.C_Hazmat_3.value=="Yes")&&(frm.C_HazId_3.value=="")){alert("If shipping DOT classified hazardous materials, you must\nspecify the Hazardous Identification number."); window.location.hash="Commodity"; frm.C_HazId_3.style.backgroundColor='pink'; return false;}
	if((frm.C_Hazmat_3.value=="Yes")&&(frm.C_HazCls_3.value=="")){alert("If shipping DOT classified hazardous materials, you must\nspecify the Hazardous Class or Division."); window.location.hash="Commodity"; frm.C_HazCls_3.style.backgroundColor='pink'; return false;}
	if((frm.C_Hazmat_3.value=="Yes")&&(frm.C_HazPG_3.value=="")){alert("If shipping DOT classified hazardous materials, you must\nspecify the Hazardous Packing Group."); window.location.hash="Commodity"; frm.C_HazPG_3.style.backgroundColor='pink'; return false;}
   	if(((frm.C_PeiceType_3.value!="None")||(frm.C_Hazmat_3.value!="")||(frm.C_Commodity_3.value!="")||(frm.C_Shipping_Class_3.value!="N/S")||(frm.C_sWeight_3.value!="")||(frm.C_Plength_3.value!="")||(frm.C_Pwidth_3.value!="")||(frm.C_Pheight_3.value!="")||(frm.C_Stackable_3.value!=""))&&((frm.C_NoPieces_3.value=="")||(frm.C_NoPieces_3.value==" "))){alert("If you intend to complete a third shipment contents line,\nyou must specify the number of pieces."); window.location.hash="Commodity"; frm.C_NoPieces_3.style.backgroundColor='pink'; return false;}
   	if(isNaN(pcck)){alert("Number of pieces must be a numerical value only."); window.location.hash="Commodity"; frm.C_NoPieces_1.style.backgroundColor='pink'; return false;}
   	if(isNaN(wgtck)){alert("Total weight must be a numerical value only.\nFor example:   '1000'   not   '1000 lbs'"); window.location.hash="Commodity"; frm.C_sWeight_1.style.backgroundColor='pink'; return false;}
	}	

    function whiteout(frm){
   	if(frm.C_ContactName1.value!=""){frm.C_ContactName1.style.backgroundColor='white';}
   	if(frm.C_Email.value!=""){frm.C_Email.style.backgroundColor='white';}
   	if(frm.C_PkuZip.value!=""){frm.C_PkuZip.style.backgroundColor='white';}
   	if(frm.C_PkuType.value!=""){frm.C_PkuType.style.backgroundColor='white';}
   	if(frm.C_PkuDoF.value!=""){frm.C_PkuDoF.style.backgroundColor='white';}
   	if(frm.C_DlvZip.value!="  "){frm.C_DlvZip.style.backgroundColor='white';}
   	if(frm.C_DlvType.value!=""){frm.C_DlvType.style.backgroundColor='white';}
   	if(frm.C_DlvDoF.value!=""){frm.C_DlvDoF.style.backgroundColor='white';}
	if(frm.C_NoPieces_1.value!=""){frm.C_NoPieces_1.style.backgroundColor='white';}
   	if(frm.C_PeiceType_1.value!=""){frm.C_PeiceType_1.style.backgroundColor='white';}
   	if(frm.C_Hazmat_1.value!=""){frm.C_Hazmat_1.style.backgroundColor='white';}
   	if(frm.C_Commodity_1.value!=""){frm.C_Commodity_1.style.backgroundColor='white';}
   	if(frm.C_sWeight_1.value!=""){frm.C_sWeight_1.style.backgroundColor='white';}
   	if((frm.C_Plength_1.value!="")&&(frm.C_Pwidth_1.value!="")&&(frm.C_Pheight_1.value!="")){frm.C_Plength_1.style.backgroundColor='white'; frm.C_Pwidth_1.style.backgroundColor='white'; frm.C_Pheight_1.style.backgroundColor='white';}
   	if(frm.C_Stackable_1.value!=""){frm.C_Stackable_1.style.backgroundColor='white';}
   	if(frm.C_HazId_1.value!=""){frm.C_HazId_1.style.backgroundColor='white';}
   	if(frm.C_HazCls_1.value!=""){frm.C_HazCls_1.style.backgroundColor='white';}
   	if(frm.C_HazPG_1.value!=""){frm.C_HazPG_1.style.backgroundColor='white';}
	if(frm.C_NoPieces_2.value!=""){frm.C_NoPieces_2.style.backgroundColor='white';}
   	if(frm.C_PeiceType_2.value!=""){frm.C_PeiceType_2.style.backgroundColor='white';}
   	if(frm.C_Hazmat_2.value!=""){frm.C_Hazmat_2.style.backgroundColor='white';}
   	if(frm.C_Commodity_2.value!=""){frm.C_Commodity_2.style.backgroundColor='white';}
   	if(frm.C_sWeight_2.value!=""){frm.C_sWeight_2.style.backgroundColor='white';}
   	if((frm.C_Plength_2.value!="")&&(frm.C_Pwidth_2.value!="")&&(frm.C_Pheight_2.value!="")){frm.C_Plength_2.style.backgroundColor='white'; frm.C_Pwidth_2.style.backgroundColor='white'; frm.C_Pheight_2.style.backgroundColor='white';}
   	if(frm.C_Stackable_2.value!=""){frm.C_Stackable_2.style.backgroundColor='white';}
   	if(frm.C_HazId_2.value!=""){frm.C_HazId_2.style.backgroundColor='white';}
   	if(frm.C_HazCls_2.value!=""){frm.C_HazCls_2.style.backgroundColor='white';}
   	if(frm.C_HazPG_2.value!=""){frm.C_HazPG_2.style.backgroundColor='white';}
	if(frm.C_NoPieces_3.value!=""){frm.C_NoPieces_3.style.backgroundColor='white';}
   	if(frm.C_PeiceType_3.value!=""){frm.C_PeiceType_3.style.backgroundColor='white';}
   	if(frm.C_Hazmat_3.value!=""){frm.C_Hazmat_3.style.backgroundColor='white';}
   	if(frm.C_Commodity_3.value!=""){frm.C_Commodity_3.style.backgroundColor='white';}
   	if(frm.C_sWeight_3.value!=""){frm.C_sWeight_3.style.backgroundColor='white';}
   	if((frm.C_Plength_3.value!="")&&(frm.C_Pwidth_3.value!="")&&(frm.C_Pheight_3.value!="")){frm.C_Plength_3.style.backgroundColor='white'; frm.C_Pwidth_3.style.backgroundColor='white'; frm.C_Pheight_3.style.backgroundColor='white';}
   	if(frm.C_Stackable_3.value!=""){frm.C_Stackable_3.style.backgroundColor='white';}
   	if(frm.C_HazId_3.value!=""){frm.C_HazId_3.style.backgroundColor='white';}
   	if(frm.C_HazCls_3.value!=""){frm.C_HazCls_3.style.backgroundColor='white';}
   	if(frm.C_HazPG_3.value!=""){frm.C_HazPG_3.style.backgroundColor='white';}
   	}

	function fillDock(frm){
   	for (i=0, n=frm.C_NeedPickup.length; i<n; i++) {if(frm.C_NeedPickup[i].checked) {var PorD = frm.C_NeedPickup[i].value; break;}}
   	if(PorD=="No"){document.getElementById('camoflaugePkuLoc').color = "#B0C4DE"; document.getElementById('camoflaugePkuZip').color = "#B0C4DE";}
   	if(PorD=="Yes"){document.getElementById('camoflaugePkuLoc').color = "red"; document.getElementById('camoflaugePkuZip').color = "red";}}

   	function fillWC(frm){
   	for (i=0, n=frm.C_NeedDelivery.length; i<n; i++) {if(frm.C_NeedDelivery[i].checked) {var DorW = frm.C_NeedDelivery[i].value; break;}}
   	if(DorW=="No"){document.getElementById('camoflaugeDlvLoc').color = "#B0C4DE";}
   	if(DorW=="Yes"){document.getElementById('camoflaugeDlvLoc').color = "red";}}

	function pieceOut(frm){var piece_1 = frm.C_NoPieces_1.value; var piece_2 = frm.C_NoPieces_2.value; var piece_3 = frm.C_NoPieces_3.value;
	if((piece_1 != "")||(piece_1 != " ")){frm.C_NoPieces_TTL.value = Number(piece_1)+Number(piece_2)+Number(piece_3);}
	if((piece_2 != "")||(piece_2 != " ")){frm.C_NoPieces_TTL.value = Number(piece_1)+Number(piece_2)+Number(piece_3);}
	if((piece_3 != "")||(piece_3 != " ")){frm.C_NoPieces_TTL.value = Number(piece_1)+Number(piece_2)+Number(piece_3);}} 

	function weightEach(frm){var piece_1 = frm.C_NoPieces_1.value; var s_weight_1 = frm.C_sWeight_1.value; var piece_2 = frm.C_NoPieces_2.value; var s_weight_2 = frm.C_sWeight_2.value; var piece_3 = frm.C_NoPieces_3.value; var s_weight_3 = frm.C_sWeight_3.value;
	if((piece_1 != "")||(piece_1 != " ")){frm.C_Weight_1.value = (Number(piece_1)*Number(s_weight_1));}
	if((piece_2 != "")||(piece_2 != " ")){frm.C_Weight_2.value = (Number(piece_2)*Number(s_weight_2));}
	if((piece_3 != "")||(piece_3 != " ")){frm.C_Weight_3.value = (Number(piece_3)*Number(s_weight_3));}}

	function weightOut(frm){var piece_1 = frm.C_NoPieces_1.value; var piece_2 = frm.C_NoPieces_2.value; var piece_3 = frm.C_NoPieces_3.value; var weight_1 = frm.C_Weight_1.value; var weight_2 = frm.C_Weight_2.value; var weight_3 = frm.C_Weight_3.value;
	if((piece_1 != "")||(piece_1 != " ")){frm.C_Weight_TTL.value = ((Number(weight_1))+(Number(weight_2))+(Number(weight_3)));}
	if((piece_2 != "")||(piece_2 != " ")){frm.C_Weight_TTL.value = ((Number(weight_1))+(Number(weight_2))+(Number(weight_3)));}
	if((piece_3 != "")||(piece_3 != " ")){frm.C_Weight_TTL.value = ((Number(weight_1))+(Number(weight_2))+(Number(weight_3)));}} 

	function cubeOut(frm){var piece_1 = frm.C_NoPieces_1.value; var piece_2 = frm.C_NoPieces_2.value; var piece_3 = frm.C_NoPieces_3.value; var length_1 = frm.C_Plength_1.value; var length_2 = frm.C_Plength_2.value; var length_3 = frm.C_Plength_3.value; var width_1 = frm.C_Pwidth_1.value; var width_2 = frm.C_Pwidth_2.value; var width_3 = frm.C_Pwidth_3.value; var height_1 = frm.C_Pheight_1.value; var height_2 = frm.C_Pheight_2.value; var height_3 = frm.C_Pheight_3.value;
	if((piece_1 != "")||(piece_1 != " ")){frm.C_Cube_TTL.value = ((Number(piece_1)*Number(length_1)*Number(width_1)*Number(height_1))/1728).toFixed(0);}
	if((piece_2 != "")||(piece_2 != " ")){frm.C_Cube_TTL.value = (((Number(piece_1)*Number(length_1)*Number(width_1)*Number(height_1))/1728)+((Number(piece_2)*Number(length_2)*Number(width_2)*Number(height_2))/1728)).toFixed(0);}
	if((piece_3 != "")||(piece_3 != " ")){frm.C_Cube_TTL.value = (((Number(piece_1)*Number(length_1)*Number(width_1)*Number(height_1))/1728)+((Number(piece_2)*Number(length_2)*Number(width_2)*Number(height_2))/1728)+((Number(piece_3)*Number(length_3)*Number(width_3)*Number(height_3))/1728)).toFixed(0);}} 

	function nmfcAdd(frm){
	if(frm.C_Shipping_Class_1.value=="N/S"){frm.C_Class_1W.value="N/S";}else if((frm.C_Shipping_Class_1.value!="N/S")&&(frm.C_NMFC_1.value=="")){frm.C_Class_1W.value=frm.C_Shipping_Class_1.value;}else if((frm.C_Shipping_Class_1.value!="N/S")&&(frm.C_NMFC_1.value!="")){frm.C_Class_1W.value=frm.C_Shipping_Class_1.value + " (" + frm.C_NMFC_1.value + ")";}
	if(frm.C_Shipping_Class_2.value=="N/S"){frm.C_Class_2W.value="N/S";}else if((frm.C_Shipping_Class_2.value!="N/S")&&(frm.C_NMFC_2.value=="")){frm.C_Class_2W.value=frm.C_Shipping_Class_2.value;}else if((frm.C_Shipping_Class_2.value!="N/S")&&(frm.C_NMFC_2.value!="")){frm.C_Class_2W.value=frm.C_Shipping_Class_2.value + " (" + frm.C_NMFC_2.value + ")";}
	if(frm.C_Shipping_Class_3.value=="N/S"){frm.C_Class_3W.value="N/S";}else if((frm.C_Shipping_Class_3.value!="N/S")&&(frm.C_NMFC_3.value=="")){frm.C_Class_3W.value=frm.C_Shipping_Class_3.value;}else if((frm.C_Shipping_Class_3.value!="N/S")&&(frm.C_NMFC_3.value!="")){frm.C_Class_3W.value=frm.C_Shipping_Class_3.value + " (" + frm.C_NMFC_3.value + ")";}
	}
 
   	function fillHaz_1(frm){var HazQ1 = frm.C_Hazmat_1.value;
	if(HazQ1=="No"){document.getElementById('camoflaugeHazInfo_1').color = "#C9D6E7";}
   	if(HazQ1=="Yes"){document.getElementById('camoflaugeHazInfo_1').color = "red";}}

   	function fillHaz_2(frm){var HazQ2 = frm.C_Hazmat_2.value;
	if(HazQ2=="No"){document.getElementById('camoflaugeHazInfo_2').color = "#C9D6E7";}
   	if(HazQ2=="Yes"){document.getElementById('camoflaugeHazInfo_2').color = "red";}}

   	function fillHaz_3(frm){var HazQ3 = frm.C_Hazmat_3.value;
	if(HazQ3=="No"){document.getElementById('camoflaugeHazInfo_3').color = "#C9D6E7";}
   	if(HazQ3=="Yes"){document.getElementById('camoflaugeHazInfo_3').color = "red";}}

	function removetext(GeoForm) {var oldtext = GeoForm.C_InfoAdd.value;
	if (oldtext == "For example, here you can tell us about unique piece types, non-standard pick-up locations, special handling, or important dates, etc.") {
	GeoForm.C_InfoAdd.value = "";}}

	function formatForm(frm){
	if(frm.C_Prefix.value==""){frm.C_ContactW.value=frm.C_ContactName1.value + " " + frm.C_ContactName2.value + "<br>";}else if(frm.C_Prefix.value!=""){frm.C_ContactW.value=frm.C_Prefix.value + " " + frm.C_ContactName1.value + " " + frm.C_ContactName2.value + "<br>";}
	if(frm.C_Prefix.value==""){frm.C_ContactW2.value=frm.C_ContactName1.value + " " + frm.C_ContactName2.value + ",";}else if(frm.C_Prefix.value!=""){frm.C_ContactW2.value=frm.C_Prefix.value + " " + frm.C_ContactName1.value + " " + frm.C_ContactName2.value + ",";}
	if(frm.C_CoName.value==""){frm.C_CoNameW.value="N/S";}else if(frm.C_CoName.value!=""){frm.C_CoNameW.value=frm.C_CoName.value;}
	if((frm.C_PhoneExt.value=="")&&(frm.C_PhoneLoc.value!="")){frm.C_cPhoneW.value="<b>Phone: </b>(" + frm.C_PhoneArea.value + ") " + frm.C_PhonePre.value + "-" + frm.C_PhoneLoc.value;}else if((frm.C_PhoneExt.value!="")&&(frm.C_PhoneLoc.value!="")){frm.C_cPhoneW.value="<b>Phone: </b>(" + frm.C_PhoneArea.value + ") " + frm.C_PhonePre.value + "-" + frm.C_PhoneLoc.value + " x. " + frm.C_PhoneExt.value;}else {frm.C_cPhoneW.value="<b>Phone: </b>N/S";}
	if(frm.C_FaxPre.value==""){frm.C_cFaxW.value="<b>Fax: </b>N/S";}else if(frm.C_FaxPre.value!=""){frm.C_cFaxW.value="<b>Fax: </b>(" + frm.C_FaxArea.value + ") " + frm.C_FaxPre.value + "-" + frm.C_FaxLoc.value;}

	if(frm.C_NoPieces_1.value==""){frm.C_line_1.value="";}else if((frm.C_NoPieces_1.value!="")&&(frm.C_Hazmat_1.value=="No")){frm.C_line_1.value="<tr align=center><td>" + frm.C_NoPieces_1.value + "</td><td>" + frm.C_PeiceType_1.value + "</td><td>" + frm.C_Hazmat_1.value + "&nbsp;</td><td>" + frm.C_Commodity_1.value + "</td><td>" + frm.C_Class_1W.value + "</td><td>" + frm.C_Weight_1.value +  "</td><td>" + frm.C_Plength_1.value + "&quot; x " + frm.C_Pwidth_1.value + "&quot; x " + frm.C_Pheight_1.value + "&quot;</td><td>" + frm.C_Stackable_1.value + "</td></tr>";} else if((frm.C_NoPieces_1.value!="")&&(frm.C_Hazmat_1.value=="Yes")){frm.C_line_1.value="<tr align=center><td>" + frm.C_NoPieces_1.value + "</td><td>" + frm.C_PeiceType_1.value + "</td><td>" + frm.C_Hazmat_1.value + "*</td><td>" + frm.C_Commodity_1.value + "</td><td>" + frm.C_Class_1W.value + "</td><td>" + frm.C_Weight_1.value +  "</td><td>" + frm.C_Plength_1.value + "&quot; x " + frm.C_Pwidth_1.value + "&quot; x " + frm.C_Pheight_1.value + "&quot;</td><td>" + frm.C_Stackable_1.value + "</td></tr>";} 
	if(frm.C_Hazmat_1.value==""){frm.C_Hazmat_1W.value="";}else if(frm.C_Hazmat_1.value=="No"){frm.C_Hazmat_1W.value="";}else if(frm.C_Hazmat_1.value=="Yes"){frm.C_Hazmat_1W.value="&nbsp;&nbsp;<b>*HAZ Id: </b>" + frm.C_HazId_1.value + ", <b>Cls: </b>" + frm.C_HazCls_1.value + ", <b>PG: </b>" + frm.C_HazPG_1.value + "<br>";}

	if(frm.C_NoPieces_2.value==""){frm.C_line_2.value="";}else if((frm.C_NoPieces_2.value!="")&&(frm.C_Hazmat_2.value=="No")){frm.C_line_2.value="<tr align=center><td>" + frm.C_NoPieces_2.value + "</td><td>" + frm.C_PeiceType_2.value + "</td><td>" + frm.C_Hazmat_2.value + "&nbsp;</td><td>" + frm.C_Commodity_2.value + "</td><td>" + frm.C_Class_2W.value + "</td><td>" + frm.C_Weight_2.value +  "</td><td>" + frm.C_Plength_2.value + "&quot; x " + frm.C_Pwidth_2.value + "&quot; x " + frm.C_Pheight_2.value + "&quot;</td><td>" + frm.C_Stackable_2.value + "</td></tr>";} else if((frm.C_NoPieces_2.value!="")&&(frm.C_Hazmat_2.value=="Yes")){frm.C_line_2.value="<tr align=center><td>" + frm.C_NoPieces_2.value + "</td><td>" + frm.C_PeiceType_2.value + "</td><td>" + frm.C_Hazmat_2.value + "**</td><td>" + frm.C_Commodity_2.value + "</td><td>" + frm.C_Class_2W.value + "</td><td>" + frm.C_Weight_2.value +  "</td><td>" + frm.C_Plength_2.value + "&quot; x " + frm.C_Pwidth_2.value + "&quot; x " + frm.C_Pheight_2.value + "&quot;</td><td>" + frm.C_Stackable_2.value + "</td></tr>";} 
	if(frm.C_Hazmat_2.value==""){frm.C_Hazmat_2W.value="";}else if(frm.C_Hazmat_2.value=="No"){frm.C_Hazmat_2W.value="";}else if(frm.C_Hazmat_2.value=="Yes"){frm.C_Hazmat_2W.value="&nbsp;<b>**HAZ Id: </b>" + frm.C_HazId_2.value + ", <b>Cls: </b>" + frm.C_HazCls_2.value + ", <b>PG: </b>" + frm.C_HazPG_2.value + "<br>";}

	if(frm.C_NoPieces_3.value==""){frm.C_line_3.value="";}else if((frm.C_NoPieces_3.value!="")&&(frm.C_Hazmat_3.value=="No")){frm.C_line_3.value="<tr align=center><td>" + frm.C_NoPieces_3.value + "</td><td>" + frm.C_PeiceType_3.value + "</td><td>" + frm.C_Hazmat_3.value + "&nbsp;</td><td>" + frm.C_Commodity_3.value + "</td><td>" + frm.C_Class_3W.value + "</td><td>" + frm.C_Weight_3.value +  "</td><td>" + frm.C_Plength_3.value + "&quot; x " + frm.C_Pwidth_3.value + "&quot; x " + frm.C_Pheight_3.value + "&quot;</td><td>" + frm.C_Stackable_3.value + "</td></tr>";} else if((frm.C_NoPieces_3.value!="")&&(frm.C_Hazmat_3.value=="Yes")){frm.C_line_3.value="<tr align=center><td>" + frm.C_NoPieces_3.value + "</td><td>" + frm.C_PeiceType_3.value + "</td><td>" + frm.C_Hazmat_3.value + "***</td><td>" + frm.C_Commodity_3.value + "</td><td>" + frm._Class_3W.value + "</td><td>" + frm.C_Weight_3.value +  "</td><td>" + frm.C_Plength_3.value + "&quot; x " + frm.C_Pwidth_3.value + "&quot; x " + frm.C_Pheight_3.value + "&quot;</td><td>" + frm.C_Stackable_3.value + "</td></tr>";} 
	if(frm.C_Hazmat_3.value==""){frm.C_Hazmat_3W.value="";}else if(frm.C_Hazmat_3.value=="No"){frm.C_Hazmat_3W.value="";}else if(frm.C_Hazmat_3.value=="Yes"){frm.C_Hazmat_3W.value="<b>***HAZ Id: </b>" + frm.C_HazId_3.value + ", <b>Cls: </b>" + frm.C_HazCls_3.value + ", <b>PG: </b>" + frm.C_HazPG_3.value + "</td>";}

	if(frm.C_NeedPickup[1].checked==false){frm.C_PkuVDock.value="<b>Dock Delivered</b><br>";}else if(frm.C_NeedPickup[1].checked==true){frm.C_PkuVDock.value="<p><b>Pickup from:</b><br>";}
	if(frm.C_PkuCity.value==""){frm.C_pAddW.value=frm.C_PkuZip.value + "<br>";}else if(frm.C_PkuCity.value!=""){frm.C_pAddW.value=frm.C_PkuCity.value + ", " + frm.C_PkuState.value + " " + frm.C_PkuZip.value + "<br>";}
	if((frm.C_PkuLG.checked==false)&&(frm.C_PkuIn.checked==false)){frm.C_PkuAdd.value="";}else if((frm.C_PkuLG.checked==true)&&(frm.C_PkuIn.checked==false)){frm.C_PkuAdd.value="<br><b>Add Svc: </b>" + frm.C_PkuLG.value;}else if((frm.C_PkuLG.checked==false)&&(frm.C_PkuIn.checked==true)){frm.C_PkuAdd.value="<br><b>Add Svc: </b>" + frm.C_PkuIn.value;}else if((frm.C_PkuLG.checked==true)&&(frm.C_PkuIn.checked==true)){frm.C_PkuAdd.value="<br><b>Add Svc: </b>" + frm.C_PkuLG.value + " &amp; " + frm.C_PkuIn.value;}
	if(frm.C_Ready.value==""){frm.C_ReadyW.value="";}else if(frm.C_Ready.value!=""){frm.C_ReadyW.value="<br><b>Ready by:</b> " + frm.C_Ready.value;}
	
	if(frm.C_NeedDelivery[1].checked==false){frm.C_DlvVWC.value="<p><b>Will call pickup:</b><br>";}else if(frm.C_NeedDelivery[1].checked==true){frm.C_DlvVWC.value="<p><b>Deliver to:</b><br>";}
	if(frm.C_DlvCity.value==""){frm.C_dAddW.value=frm.C_DlvZip.value + "<br>";}else if(frm.C_DlvCity.value!=""){frm.C_dAddW.value=frm.C_DlvCity.value + ", " + frm.C_DlvState.value + " " + frm.C_DlvZip.value + "<br>";}
	if((frm.C_DlvLG.checked==false)&&(frm.C_DlvIn.checked==false)){frm.C_DlvAdd.value="";}else if((frm.C_DlvLG.checked==true)&&(frm.C_DlvIn.checked==false)){frm.C_DlvAdd.value="<br><b>Add Svc: </b>" + frm.C_DlvLG.value;}else if((frm.C_DlvLG.checked==false)&&(frm.C_DlvIn.checked==true)){frm.C_DlvAdd.value="<br><b>Add Svc: </b>" + frm.C_DlvIn.value;}else if((frm.C_DlvLG.checked==true)&&(frm.C_DlvIn.checked==true)){frm.C_DlvAdd.value="<br><b>Add Svc: </b>" + frm.C_DlvLG.value + " &amp; " + frm.C_DlvIn.value;}
	if(frm.C_dDlv.value==""){frm.C_dDlvW.value="";}else if(frm.C_dDlv.value!=""){frm.C_dDlvW.value="<br><b>Deliver by:</b> " + frm.C_dDlv.value;}

	if((frm.C_EmailMe.checked==true)&&(frm.C_PhoneMe.checked==false)&&(frm.C_FaxMe.checked==false)){frm.C_ContactMe.value="E-mail only";}
	else if((frm.C_EmailMe.checked==true)&&(frm.C_PhoneMe.checked==true)&&(frm.C_FaxMe.checked==false)){frm.C_ContactMe.value="E-mail and Phone";}
	else if((frm.C_EmailMe.checked==true)&&(frm.C_PhoneMe.checked==true)&&(frm.C_FaxMe.checked==true)){frm.C_ContactMe.value="E-mail, Phone, and Fax";}
	else if((frm.C_EmailMe.checked==true)&&(frm.C_PhoneMe.checked==false)&&(frm.C_FaxMe.checked==true)){frm.C_ContactMe.value="E-mail and Fax";}
	else if((frm.C_EmailMe.checked==false)&&(frm.C_PhoneMe.checked==true)&&(frm.C_FaxMe.checked==false)){frm.C_ContactMe.value="Phone only";}
	else if((frm.C_EmailMe.checked==false)&&(frm.C_PhoneMe.checked==true)&&(frm.C_FaxMe.checked==true)){frm.C_ContactMe.value="Phone and Fax";}
	else if((frm.C_EmailMe.checked==false)&&(frm.C_PhoneMe.checked==false)&&(frm.C_FaxMe.checked==true)){frm.C_ContactMe.value="Fax only";}

	if(frm.C_InfoAdd.value==""){frm.C_InfoAddW.value="";}else if(frm.C_InfoAdd.value!=""){frm.C_InfoAddW.value="<br><b>Additional Info: </b>" + frm.C_InfoAdd.value;}
	if(frm.C_Subject.value==""){frm.C_Subject.value="UTS-Hawaii QUOTE#: " + frm.C_Commodity_1.value;}
	}

function stopRKey(evt) {
	var evt  = (evt) ? evt : ((event) ? event : null);
	var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
	if ((evt.keyCode == 13) && (node.type=="text")) { return false; }
}
document.onkeypress = stopRKey;

function escapeVal(textarea,replaceWith){
textarea.value=escape(textarea.value)
for(i=0; i<textarea.value.length; i++){
 	if(textarea.value.indexOf("%0D%0A") > -1){
	textarea.value=textarea.value.replace("%0D%0A",replaceWith)
	}
	else if(textarea.value.indexOf("%0A") > -1){
	textarea.value=textarea.value.replace("%0A",replaceWith)
	}
	else if(textarea.value.indexOf("%0D") > -1){
	textarea.value=textarea.value.replace("%0D",replaceWith)
	}
}
textarea.value=unescape(textarea.value)
}
	
function getItem(id) {var itm = false; if(document.getElementById) itm = document.getElementById(id); else if(document.all) itm = document.all[id]; else if(document.layers) itm = document.layers[id]; return itm;}
function toggleItem(id) {itm = getItem(id); if(!itm) return false; if(itm.style.display == 'none') itm.style.display = ''; else itm.style.display = 'none'; return false;}

var tggle1='on'; var obj1; var tggle2='on'; var obj2;

window.onload=function() {
  obj1=document.getElementById('PlusMinus1'); document.getElementById('tr1').onclick=function() {toggle1(); return false;} 
  obj2=document.getElementById('PlusMinus2'); document.getElementById('tr2').onclick=function() {toggle2(); return false;}}

function toggle1(){if(tggle1=='off'){obj1.src="Graphics/Plus1.bmp"; tggle1='on';} else {obj1.src="Graphics/Minus1.bmp"; tggle1='off';}}
function toggle2(){if(tggle2=='off'){obj2.src="Graphics/Plus2.bmp"; tggle2='on';} else {obj2.src="Graphics/Minus2.bmp"; tggle2='off';}}





