	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; Tzipck=frm.C_TpbZip.value;
   	if(frm.C_CoName.value==""){alert("Your company name is a required field.\nIf not applicable, enter 'N/A'"); window.location.hash="Contact"; frm.C_CoName.style.backgroundColor='pink'; return false;} 
   	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_PhoneArea.value=="")||(frm.C_PhonePre.value=="")||(frm.C_PhoneLoc.value=="")){alert("Your phone number is a required field."); window.location.hash="Contact"; frm.C_PhoneArea.style.backgroundColor='pink'; frm.C_PhonePre.style.backgroundColor='pink'; frm.C_PhoneLoc.style.backgroundColor='pink'; return false;}
   	if(frm.C_PkuCo.value==""){alert("The name of the shipper is a required field."); window.location.hash="Pickup"; frm.C_PkuCo.style.backgroundColor='pink'; return false;} 
   	if(frm.C_PkuStL1.value==""){alert("Pickup street address (line 1) is a required field."); window.location.hash="Pickup"; frm.C_PkuStL1.style.backgroundColor='pink'; return false;}  
   	if(frm.C_PkuCity.value==""){alert("Pickup city is a required field."); window.location.hash="Pickup"; frm.C_PkuCity.style.backgroundColor='pink'; return false;}  
   	if(frm.C_PkuState.value=="--"){alert("Pickup state is a required field."); window.location.hash="Pickup"; frm.C_PkuState.style.backgroundColor='pink'; return false;}  
   	if(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(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_PkuCtct.value==""){alert("A contact for the shipper is a required field."); window.location.hash="Pickup"; frm.C_PkuCtct.style.backgroundColor='pink'; return false;} 
   	if((frm.C_PkuPhoneArea.value=="")||(frm.C_PkuPhonePre.value=="")||(frm.C_PkuPhoneLoc.value=="")){alert("A contact phone number for the shipper is a required field"); window.location.hash="Pickup"; frm.C_PkuPhoneArea.style.backgroundColor='pink'; frm.C_PkuPhonePre.style.backgroundColor='pink'; frm.C_PkuPhoneLoc.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;}  
	for (i=0, n=frm.C_Ready.length; i<n; i++) {if(frm.C_Ready[i].checked) {var ReadyNoL = frm.C_Ready[i].value; break;}}
   	if((frm.C_NeedPickup[1].checked==true)&&(ReadyNoL=="LATER")&&(frm.C_ReadyDate.value=="")){alert("If the shipment will be ready at a later date/time,\nyou must specify the date/time it will be ready."); window.location.hash="Pickup"; frm.C_ReadyDate.style.backgroundColor='pink'; return false;}
	if((frm.C_NeedPickup[1].checked==true)&&(ReadyNoL=="LATER")&&(frm.C_ReadyTime.value=="")){alert("If the shipment will be ready at a later time,\nyou must specify the time it will be ready."); window.location.hash="Pickup"; frm.C_ReadyTime.style.backgroundColor='pink'; return false;}
	if(((frm.C_NeedPickup[1].checked==true)&&(ReadyNoL=="LATER"))&&((frm.C_rAMorPM[0].checked==false)&&((frm.C_NeedPickup[1].checked==true)&&(ReadyNoL=="LATER"))&&(frm.C_rAMorPM[1].checked==false))){alert("You must specify of the shipment will be ready in the AM or PM."); window.location.hash="Pickup"; frm.elements["C_rAMorPM"][0].style.backgroundColor='pink'; frm.elements["C_rAMorPM"][1].style.backgroundColor='pink'; return false;}
	if((frm.C_NeedPickup[1].checked==true)&&(frm.C_Open.value=="")){alert("You must specify the time your shipping department opens."); window.location.hash="Pickup"; frm.C_Open.style.backgroundColor='pink'; return false;}
   	if((frm.C_NeedPickup[1].checked==true)&&(frm.C_Close.value=="")){alert("You must specify the time your shipping department closes."); window.location.hash="Pickup"; frm.C_Close.style.backgroundColor='pink'; return false;}
	if(frm.C_Consignee.value==""){alert("The name of the consignee is a required field."); window.location.hash="Delivery"; frm.C_Consignee.style.backgroundColor='pink'; return false;} 
   	if(frm.C_DlvStL1.value==""){alert("Delivery street address (line 1) is a required field."); window.location.hash="Delivery"; frm.C_DlvStL1.style.backgroundColor='pink'; return false;}  
   	if(frm.C_DlvCity.value==""){alert("The destination city is a required field."); window.location.hash="Delivery"; frm.C_DlvCity.style.backgroundColor='pink'; return false;}  
   	if(frm.C_DlvState.value=="--"){alert("The destination state is a required field."); window.location.hash="Delivery"; frm.C_DlvState.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_DlvCtct.value==""){alert("A contact for the consignee is a required field."); window.location.hash="Delivery"; frm.C_DlvCtct.style.backgroundColor='pink'; return false;} 
   	if((frm.C_DlvPhoneArea.value=="")||(frm.C_DlvPhonePre.value=="")||(frm.C_DlvPhoneLoc.value=="")){alert("A contact phone number for the shipper is a required field"); window.location.hash="Delivery"; frm.C_DlvPhoneArea.style.backgroundColor='pink'; frm.C_DlvPhonePre.style.backgroundColor='pink'; frm.C_DlvPhoneLoc.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 of a single piece 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 of a single piece (line 2) 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 of a single piece (line 3) 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;}
	if(frm.C_FrtChgs.value==""){alert("You must make a selction to specify the party\nresponsible for payment of freight charges\n\nPrepaid = Shipper responsible\nCollect = Consignee responsible\n3rd Party = 3rd party responsible"); window.location.hash="InfoAdd"; frm.C_FrtChgs.style.backgroundColor='pink'; return false;}
   	if(frm.C_TpbCo.value==""){alert("You must specify the bill to party."); window.location.hash="InfoAdd"; frm.C_TpbCo.style.backgroundColor='pink'; return false;}
   	if(frm.C_TpbStL1.value==""){alert("You must specify the bill to street address."); window.location.hash="InfoAdd"; frm.C_TpbStL1.style.backgroundColor='pink'; return false;}
   	if(frm.C_TpbCity.value==""){alert("You must specify the bill to city."); window.location.hash="InfoAdd"; frm.C_TpbCity.style.backgroundColor='pink'; return false;}
   	if(frm.C_TpbState.value=="--"){alert("You must specify the bill to state."); window.location.hash="InfoAdd"; frm.C_TpbState.style.backgroundColor='pink'; return false;}
   	if(frm.C_TpbZip.value==""){alert("You must specify the bill to zip code."); window.location.hash="InfoAdd"; frm.C_TpbZip.style.backgroundColor='pink'; return false;}
   	if(isNaN(Tzipck)){alert("The bill to zip code must be a 5 digit numerical value only.\nFor example:   '92870'   not   '92870-0000'"); window.location.hash="InfoAdd"; frm.C_TpbZip.style.backgroundColor='pink'; return false;}
	if(((frm.C_Hazmat_1.value=="Yes")||(frm.C_Hazmat_2.value=="Yes")||(frm.C_Hazmat_3.value=="Yes"))&&(frm.C_HazCtct.value=="")){alert("If shipping DOT classified hazardous materials, you must\nspecify a 24 hr hazardous emergency response contact."); window.location.hash="InfoAdd"; frm.C_HazCtct.style.backgroundColor='pink'; return false;}
	if(((frm.C_Hazmat_1.value=="Yes")||(frm.C_Hazmat_2.value=="Yes")||(frm.C_Hazmat_3.value=="Yes"))&&((frm.C_HazPhoneArea.value=="")||(frm.C_HazPhonePre.value=="")||(frm.C_HazPhoneLoc.value==""))){alert("If shipping DOT classified hazardous materials, you\nmust specify a toll-free, 24 hour hazardous\nemergency response phone number."); window.location.hash="InfoAdd"; frm.C_HazPhoneArea.style.backgroundColor='pink'; frm.C_HazPhonePre.style.backgroundColor='pink'; frm.C_HazPhoneLoc.style.backgroundColor='pink'; return false;}
	}	

    function whiteout(frm){
   	if(frm.C_CoName.value!=""){frm.C_CoName.style.backgroundColor='white';}
   	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_PhoneArea.value!="")&&(frm.C_PhonePre.value!="")&&(frm.C_PhoneLoc.value!="")){frm.C_PhoneArea.style.backgroundColor='white'; frm.C_PhonePre.style.backgroundColor='white'; frm.C_PhoneLoc.style.backgroundColor='white';}
	if(frm.C_PkuCo.value!=""){frm.C_PkuCo.style.backgroundColor='white';}
   	if(frm.C_PkuStL1.value!=""){frm.C_PkuStL1.style.backgroundColor='white';}
   	if(frm.C_PkuCity.value!=""){frm.C_PkuCity.style.backgroundColor='white';}
   	if(frm.C_PkuState.value!=""){frm.C_PkuState.style.backgroundColor='white';}
   	if(frm.C_PkuZip.value!=""){frm.C_PkuZip.style.backgroundColor='white';}
   	if(frm.C_PkuCtct.value!=""){frm.C_PkuCtct.style.backgroundColor='white';}
   	if((frm.C_PkuPhoneArea.value!="")&&(frm.C_PkuPhonePre.value!="")&&(frm.C_PkuPhoneLoc.value!="")){frm.C_PkuPhoneArea.style.backgroundColor='white'; frm.C_PkuPhonePre.style.backgroundColor='white'; frm.C_PkuPhoneLoc.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_ReadyDate.value!=""){frm.C_ReadyDate.style.backgroundColor='white';}
   	if(frm.C_ReadyTime.value!=""){frm.C_ReadyTime.style.backgroundColor='white';}
   	if((frm.C_rAMorPM[0].checked==true)||(frm.C_rAMorPM[1].checked==true)){frm.elements["C_rAMorPM"][0].style.backgroundColor='white'; frm.elements["C_rAMorPM"][1].style.backgroundColor='white';}
   	if(frm.C_Open.value!=""){frm.C_Open.style.backgroundColor='white';}
   	if(frm.C_Close.value!=""){frm.C_Close.style.backgroundColor='white';}
   	if(frm.C_Consignee.value!=""){frm.C_Consignee.style.backgroundColor='white';}
   	if(frm.C_DlvStL1.value!=""){frm.C_DlvStL1.style.backgroundColor='white';}
   	if(frm.C_DlvCity.value!=""){frm.C_DlvCity.style.backgroundColor='white';}
   	if(frm.C_DlvState.value!="  "){frm.C_DlvState.style.backgroundColor='white';}
   	if(frm.C_DlvZip.value!="  "){frm.C_DlvZip.style.backgroundColor='white';}
   	if(frm.C_DlvCtct.value!="  "){frm.C_DlvCtct.style.backgroundColor='white';}
   	if((frm.C_DlvPhoneArea.value!="")&&(frm.C_DlvPhonePre.value!="")&&(frm.C_DlvPhoneLoc.value!="")){frm.C_DlvPhoneArea.style.backgroundColor='white'; frm.C_DlvPhonePre.style.backgroundColor='white'; frm.C_DlvPhoneLoc.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_PONo.value!=""){frm.C_PONo.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';}
	if(frm.C_FrtChgs.value!=""){frm.C_FrtChgs.style.backgroundColor='white';}
   	if(frm.C_TpbCo.value!=""){frm.C_TpbCo.style.backgroundColor='white';}
   	if(frm.C_TpbStL1.value!=""){frm.C_TpbStL1.style.backgroundColor='white';}
   	if(frm.C_TpbCity.value!=""){frm.C_TpbCity.style.backgroundColor='white';}
   	if(frm.C_TpbState.value!=""){frm.C_TpbState.style.backgroundColor='white';}
   	if(frm.C_TpbZip.value!=""){frm.C_TpbZip.style.backgroundColor='white';}
   	if(frm.C_HazCtct.value!=""){frm.C_HazCtct.style.backgroundColor='white';}
   	if((frm.C_HazPhoneArea.value!="")&&(frm.C_HazPhonePre.value!="")&&(frm.C_HazPhoneLoc.value!="")){frm.C_HazPhoneArea.style.backgroundColor='white'; frm.C_HazPhonePre.style.backgroundColor='white'; frm.C_HazPhoneLoc.style.backgroundColor='white';}
   	}

	function fillCompany(GeoForm){var o_company = GeoForm.C_CoName.value; var o_contact = GeoForm.C_ContactName1.value; var o_contact2 = GeoForm.C_ContactName2.value; var o_phone = GeoForm.C_PhoneArea.value; var p_phone = GeoForm.C_PhonePre.value; var q_phone = GeoForm.C_PhoneLoc.value; var r_phone = GeoForm.C_PhoneExt.value; var o_fax = GeoForm.C_FaxArea.value; var p_fax = GeoForm.C_FaxPre.value; var q_fax = GeoForm.C_FaxLoc.value;
	if (PKU_OTW.company_copy.checked==true) {GeoForm.C_PkuCo.value = o_company; GeoForm.C_PkuCtct.value = o_contact + " " + o_contact2; GeoForm.C_PkuPhoneArea.value = o_phone; GeoForm.C_PkuPhonePre.value = p_phone; GeoForm.C_PkuPhoneLoc.value = q_phone; GeoForm.C_PkuPhoneExt.value = r_phone; GeoForm.C_PkuFaxArea.value = o_fax; GeoForm.C_PkuFaxPre.value = p_fax; GeoForm.C_PkuFaxLoc.value = q_fax;}}

	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"){frm.C_PkuStL1.value="% UTS % SCHAFER WHSE"; frm.C_PkuCity.value="CARSON"; frm.C_PkuState.value="CA"; frm.C_PkuZip.value="90810"; document.getElementById('camoflaugePkuLoc').color = "#B0C4DE";  document.getElementById('camoflaugeRdy').color = "#B0C4DE"; document.getElementById('camoflaugeHrs').color = "#B0C4DE";}
   	if(PorD=="Yes"){frm.C_PkuStL1.value=""; frm.C_PkuCity.value=""; frm.C_PkuState.value=""; frm.C_PkuZip.value=""; document.getElementById('camoflaugePkuLoc').color = "red";  document.getElementById('camoflaugeRdy').color = "red"; document.getElementById('camoflaugeHrs').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"){frm.C_DlvStL1.value="WILL CALL"; document.getElementById('camoflaugeDlvLoc').color = "#B0C4DE";}
   	if(DorW=="Yes"){frm.C_DlvStL1.value=""; 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 fillBillTo(frm){ 
	if(PKU_OTW.C_FrtChgs.value=="PREPAID")  {frm.C_TpbCo.value = document.getElementById("C_PkuCo").value; frm.C_TpbStL1.value = document.getElementById("C_PkuStL1").value; frm.C_TpbCity.value = document.getElementById("C_PkuCity").value; frm.C_TpbState.value = document.getElementById("C_PkuState").value; frm.C_TpbZip.value = document.getElementById("C_PkuZip").value;} 
	if(frm.C_FrtChgs.value=="COLLECT")  {frm.C_TpbCo.value = document.getElementById("C_Consignee").value; frm.C_TpbStL1.value = document.getElementById("C_DlvStL1").value; frm.C_TpbCity.value = document.getElementById("C_DlvCity").value; frm.C_TpbState.value = document.getElementById("C_DlvState").value; frm.C_TpbZip.value = document.getElementById("C_DlvZip").value;} 
	if((frm.C_FrtChgs.value=="3RD PARTY")||(frm.C_FrtChgs.value=="")){frm.C_TpbCo.value = ""; frm.C_TpbStL1.value = ""; frm.C_TpbCity.value = ""; frm.C_TpbState.value = "--"; frm.C_TpbZip.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 Haz_bro(frm){var HazQ1 = frm.C_Hazmat_1.value; var HazQ2 = frm.C_Hazmat_2.value; var HazQ3 = frm.C_Hazmat_3.value;
	if((HazQ1=="No")||(HazQ2=="No")||(HazQ3=="No")){document.getElementById('camoflaugeHazInfo').color = "#C9D6E7";}
	if((HazQ1=="Yes")||(HazQ2=="Yes")||(HazQ3=="Yes")){document.getElementById('camoflaugeHazInfo').color = "red";}}

	function removetext(GeoForm) {var oldtext = GeoForm.C_InfoAdd.value;
	if (oldtext == "For example, here you can tell us about unique piece types, additional hazardous descriptions, 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_PhoneExt.value==""){frm.C_cPhoneW.value="<b>Phone: </b>(" + frm.C_PhoneArea.value + ") " + frm.C_PhonePre.value + "-" + frm.C_PhoneLoc.value + "<br>";}else if(frm.C_PhoneExt.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 + "<br>";}
	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_HazCtct.value==""){frm.C_hCtctW.value="";}else if(frm.C_HazCtct.value!=""){frm.C_hCtctW.value="</td><td colspan=4><b>24hr HAZMAT response: </b>" + frm.C_HazCtct.value + "<br>";}
	if(frm.C_HazPhoneArea.value==""){frm.C_hPhoneW.value="";}else if(frm.C_HazPhoneArea.value!=""){frm.C_hPhoneW.value="<b>24hr HAZMAT Ph: </b>(" + frm.C_HazPhoneArea.value + ") " + frm.C_HazPhonePre.value + "-" + frm.C_HazPhoneLoc.value + "</td></tr>";}

	for (i=0, n=frm.C_rAMorPM.length; i<n; i++) {if(frm.C_rAMorPM[i].checked) {var rAorP = frm.C_rAMorPM[i].value; break;}}
	if(frm.C_NeedPickup[1].checked==false){frm.C_ReadyOrNot.value="DOCK DELIVERED";}else if((frm.C_NeedPickup[1].checked==true)&&(frm.C_Ready[0].checked==true)){frm.C_ReadyOrNot.value="<b>READY " + frm.C_Ready[0].value + "</b>";}else if((frm.C_NeedPickup[1].checked==true)&&(frm.C_Ready[1].checked==true)){frm.C_ReadyOrNot.value="<b>READY " + frm.C_Ready[1].value + ": </b>" + frm.C_ReadyDate.value + " @ " + frm.C_ReadyTime.value + " " + rAorP + "";}

	if(frm.C_NeedPickup[1].checked==false){frm.C_PkuVDock.value="<b>Dock delivered from:</b><br>";}else if(frm.C_NeedPickup[1].checked==true){frm.C_PkuVDock.value="<p><b>Pickup from:</b><br>";}
	if(frm.C_PkuStL2.value==""){frm.C_pAddW.value=frm.C_PkuStL1.value + "<br>" + frm.C_PkuCity.value + ", " + frm.C_PkuState.value + " " + frm.C_PkuZip.value + "<br>";}else if(frm.C_PkuStL2.value!=""){frm.C_pAddW.value=frm.C_PkuStL1.value + "<br>" + frm.C_PkuStL2.value + "<br>" + frm.C_PkuCity.value + ", " + frm.C_PkuState.value + " " + frm.C_PkuZip.value + "<br>";}
	if(frm.C_PkuPhoneExt.value==""){frm.C_pPhoneW.value="<b>Ph: </b>(" + frm.C_PkuPhoneArea.value + ") " + frm.C_PkuPhonePre.value + "-" + frm.C_PkuPhoneLoc.value + "<br>";}else if(frm.C_PkuPhoneExt.value!=""){frm.C_pPhoneW.value="<b>Ph: </b>(" + frm.C_PkuPhoneArea.value + ") " + frm.C_PkuPhonePre.value + "-" + frm.C_PkuPhoneLoc.value + " x. " + frm.C_PkuPhoneExt.value + "<br>";}
	if(frm.C_PkuFaxPre.value==""){frm.C_pFaxW.value="";}else if(frm.C_PkuFaxPre.value!=""){frm.C_pFaxW.value="<b>Fx: </b>(" + frm.C_PkuFaxArea.value + ") " + frm.C_PkuFaxPre.value + "-" + frm.C_PkuFaxLoc.value + "<br>";}

	if(frm.C_REFNo.value==""){frm.C_REFNoW.value="";}else if(frm.C_REFNo.value!=""){frm.C_REFNoW.value="<p><b>Shipper's No. </b>" + frm.C_REFNo.value + "</p>";}
	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_Open.value=="")&&(frm.C_Close.value=="")){frm.C_OpCl.value="";}else{frm.C_OpCl.value="<br><b>Open/Close: </b>" + frm.C_Open.value + " " + frm.C_oAMorPM.value + " / " + frm.C_Close.value + " " + frm.C_cAMorPM.value;}

	if(frm.C_NeedDelivery[1].checked==false){frm.C_DlvVWC.value="<p><b>To will call pickup by:</b><br>";}else if(frm.C_NeedDelivery[1].checked==true){frm.C_DlvVWC.value="<p><b>Deliver to:</b><br>";}
	if(frm.C_DlvStL2.value==""){frm.C_dAddW.value=frm.C_DlvStL1.value + "<br>" + frm.C_DlvCity.value + ", " + frm.C_DlvState.value + " " + frm.C_DlvZip.value + "<br>";}else if(frm.C_DlvStL2.value!=""){frm.C_dAddW.value=frm.C_DlvStL1.value + "<br>" + frm.C_DlvStL2.value + "<br>" + frm.C_DlvCity.value + ", " + frm.C_DlvState.value + " " + frm.C_DlvZip.value + "<br>";}
	if(frm.C_DlvPhoneExt.value==""){frm.C_dPhoneW.value="<b>Ph: </b>(" + frm.C_DlvPhoneArea.value + ") " + frm.C_DlvPhonePre.value + "-" + frm.C_DlvPhoneLoc.value + "<br>";}else if(frm.C_DlvPhoneExt.value!=""){frm.C_dPhoneW.value="<b>Ph: </b>(" + frm.C_DlvPhoneArea.value + ") " + frm.C_DlvPhonePre.value + "-" + frm.C_DlvPhoneLoc.value + " x. " + frm.C_DlvPhoneExt.value + "<br>";}
	if(frm.C_DlvFaxPre.value==""){frm.C_dFaxW.value="";}else if(frm.C_DlvFaxPre.value!=""){frm.C_dFaxW.value="<b>Fx: </b>(" + frm.C_DlvFaxArea.value + ") " + frm.C_DlvFaxPre.value + "-" + frm.C_DlvFaxLoc.value + "<br>";}

	if(frm.C_PONo.value==""){frm.C_PONoW.value="";}else if(frm.C_PONo.value!=""){frm.C_PONoW.value="<p><b>PO No. </b>" + frm.C_PONo.value + "</p>";}
	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;}
	for (i=0, n=frm.C_dAMorPM.length; i<n; i++) {if(frm.C_dAMorPM[i].checked) {var dAorP = frm.C_dAMorPM[i].value; break;}}
	if(frm.C_Dead[0].checked==true){frm.C_DeadOrNot.value="";}else if(frm.C_Dead[1].checked==true){frm.C_DeadOrNot.value="<br><b>DLV Target: </b>" + frm.C_DeadDate.value + " @ " + frm.C_DeadTime.value + " " + dAorP;}

	if(frm.C_TpbStL2.value==""){frm.C_bAddW.value=frm.C_TpbStL1.value + "<br>" + frm.C_TpbCity.value + ", " + frm.C_TpbState.value + " " + frm.C_TpbZip.value + "<br>";}else if(frm.C_TpbStL2.value!=""){frm.C_bAddW.value=frm.C_TpbStL1.value + "<br>" + frm.C_TpbStL2.value + "<br>" + frm.C_TpbCity.value + ", " + frm.C_TpbState.value + " " + frm.C_TpbZip.value + "<br>";}
	if(frm.C_QuoteNo.value==""){frm.C_QuoteNoW.value="";}else if(frm.C_QuoteNo.value!=""){frm.C_QuoteNoW.value="<b>Quote No. </b>" + frm.C_QuoteNo.value + "<br>";}

	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 booking: " + frm.C_PkuCo.value + " / " + frm.C_Consignee.value;}
	}
	
	function OpenSmLabelWindow(GeoForm) {window.open("label_sm.html");}
	function OpenLgLabelWindow(GeoForm) {window.open("label_lg.html");}

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';}}
