// Web software by DavidRegier.com
function ShoppingCart(){this.state="California";this.dataFile="product-data.js";this.checkOutPage="checkout.aspx";this.viewCartPage="cart.aspx";this.Msg=new Array();this.Msg["buyIt"]="Add this item to your shopping cart";this.Msg["closeWin"]="Close this pop-up window";this.Msg["viewCart"]="Review & edit your order";this.Msg["checkout"]="Submit your order";this.Msg["inquire"]="Learn how to request a quote";this.addCartGUI="<form name='addCartForm' style='margin:10px 0px 0px 0px; text-align:left;' onSubmit='SC.addToCart( this ); return false;'><TABLE ALIGN='center' BORDER='0' CELLSPACING='0' CELLPADDING='0' class='fSize12 fColorGray51'><TR><TD NOWRAP ALIGN='right'><div style='margin:0px 4px 0px 0px;' class='fColorBlack'>Running Subtotal:</div></TD><TD NOWRAP><div style='margin:0px 2px 0px 10px;' id='cartRunSub'>$0.00</div></TD></TR><TR><TD NOWRAP ALIGN='right'><div style='margin:6px 4px 0px 0px;' class='fColorBlack'>Quantity:</div></TD><TD NOWRAP><INPUT TYPE='text' maxlength='4' name='quantity' onClick='self.status = \"Enter quantity as a number.\";' onBlur='self.status = \"\";' STYLE='width:60px; margin:6px 2px 0px 12px;' autocomplete='off'></TD></TR><TR><TD NOWRAP VALIGN=top ALIGN='right'><div style='margin:6px 4px 0px 0px;' class='fColorBlack'>Price:</div></TD><TD><div style='margin:6px 2px 0px 10px;' id='scPrice'></div></TD></TR><TR><TD NOWRAP VALIGN=top ALIGN='right'><div style='margin:6px 4px 0px 0px;' class='fColorBlack'>Item:</div></TD><TD><div style='margin:6px 2px 0px 10px;' id='scItem'></div></TD></TR><TR><TD NOWRAP VALIGN=top ALIGN='right'><div style='margin:6px 4px 0px 0px;' class='fColorBlack'>Description:</div></TD><TD><div style='margin:6px 2px 0px 10px;' id='scDescription'></div></TD></TR><TR><TD colspan=2 ALIGN='center'><INPUT TYPE='submit' value='Add to Shopping Cart' STYLE='margin:10px 0px 0px 0px;' onMouseover='self.status=this.title; return true;' onMouseout='self.status=\"\"; return true;' title='Click to add this item to your order'><div style='margin:6px 2px 0px 10px;' id='cartItem' class='scBullets'><A HREF='javascript:DW.removeWin();' onMouseOver='this.title=SC.Msg.closeWin; self.status=this.title; return true;' onMouseOut='self.status = \"\"; return true;' class='scLink'>Close</A> &#149; <A HREF='"+getURL(this.viewCartPage)+"' onMouseOver='this.title=SC.Msg.viewCart; self.status=this.title; return true;' onMouseOut='self.status = \"\"; return true;' class='scLink' onClick='return SC.getShipTaxStatus( this, event, false, [4,0,0] );'>View-Cart</A> &#149; <A HREF='"+getURL(this.checkOutPage)+"' onMouseOver='this.title=SC.Msg.checkout; self.status=this.title; return true;' onMouseOut='self.status = \"\"; return true;' class='scLink' onClick='return SC.getShipTaxStatus( this, event, false, [4,0,0] );'>Checkout</A></div></TD></TR></TABLE><INPUT TYPE='hidden' length='10' name='key'></form>";this.AddToCart=["Add To Cart",this.addCartGUI];this.changeQuanGUI="<form name='changeQuanForm' style='margin:10px 0px 0px 0px; text-align:left;' onSubmit='SC.changeQuan( this ); return false;'><TABLE ALIGN='center' BORDER='0' CELLSPACING='0' CELLPADDING='0' class='fSize12 fColorGray51'><TR><TD NOWRAP VALIGN=top ALIGN='right'><div style='margin:6px 4px 0px 0px;' class='fColorBlack'>Item</div></TD><TD><div style='margin:6px 2px 0px 10px;' id='scItem'></div></TD></TR><TR><TD NOWRAP ALIGN='right'><div style='margin:6px 4px 0px 0px;' class='fColorBlack'>Old Quantity</div></TD><TD NOWRAP><div style='margin:6px 2px 0px 10px;' id='scOldQuan'></div></TD></TR><TR><TD NOWRAP ALIGN='right'><div style='margin:6px 4px 0px 0px;' class='fColorBlack'>New Quantity</div></TD><TD NOWRAP><INPUT TYPE='text' maxlength='4' name='quantity' onClick='self.status = \"Enter quantity as a number.\";' onBlur='self.status = \"\";' STYLE='width:60px; margin:6px 2px 0px 12px;' autocomplete='off'></TD></TR><TR><TD colspan=2 ALIGN='center'><INPUT TYPE='submit' value='Change Quantity' STYLE='margin:10px 0px 0px 0px;' onMouseover='self.status=this.title; return true;' onMouseout='self.status=\"\"; return true;' title='Click to change quantity of this item'></TD></TR></TABLE><INPUT TYPE='hidden' length='10' name='indexNum'></form>";this.ChangeQuan=["Change Quantity",this.changeQuanGUI];this.shipTaxGUI="<form name='shipTaxForm' style='margin:6px 0px 0px 6px; text-align:left;' onSubmit='SC.setShipTaxStatus( this ); return false;'><TABLE ALIGN='center' BORDER='0' CELLSPACING='0' CELLPADDING='0' class='fSize12 fColorGray51'><TR><TD ALIGN='left'><div class='fSize11' style='margin:0px 0px 10px 0px;'>To help us determine your shipping & taxes, please answer the following 3 questions, then click OK...</div><div>1) We are a GSA organization:</div><div class='fSize8' style='margin:0px 0px 0px 18px;'>GSA = U.S. General Services Administration</div><INPUT TYPE='radio' NAME='GSA' style='margin:0px 0px 0px 18px;' onClick='if( document.shipTaxForm.Location[0].checked ) document.getElementById( \"calTax\" ).className = \"off\";'> Yes<br><INPUT TYPE='radio' NAME='GSA' style='margin:0px 0px 0px 18px;' onClick='if( document.shipTaxForm.Location[0].checked ) document.getElementById( \"calTax\" ).className = \"on\";'> No<br><DIV style='margin:10px 0px 0px 0px;'>2) We are located in:</DIV><!-- CALIF --><INPUT TYPE='radio' NAME='Location' style='margin:0px 0px 0px 18px;' onClick='if( document.shipTaxForm.GSA[0].checked || document.shipTaxForm.GSA[1].checked ) { var F=document.shipTaxForm; for(var i=0; i<6;i++) F.Shipping[i].disabled=false; if( document.shipTaxForm.GSA[1].checked ) document.getElementById( \"calTax\" ).className = \"on\"; }'> California<span id='calTax' class='off'>: <select name='calTaxPullDown' class='fSize9'>";this.shipTaxGUI+="<option>Select Location & Tax Rate...</option>";for(i in CalifTax)this.shipTaxGUI+="<option>"+i+"; "+CalifTax[i]+"% Tax</option>";this.shipTaxGUI+="</select></span><!-- OTHER STATE --><br><INPUT TYPE='radio' NAME='Location' style='margin:0px 0px 0px 18px;' onClick='var F=document.shipTaxForm; for(var i=0; i<6;i++) F.Shipping[i].disabled=false; document.getElementById( \"calTax\" ).className = \"off\";''> Another U.S. State<br><!-- FOREIGN --><INPUT TYPE='radio' NAME='Location' style='margin:0px 0px 0px 18px;' onClick='var F=document.shipTaxForm; for(var i=1; i<6;i++) { F.Shipping[i].disabled=true; F.Shipping[i].checked=false; } document.getElementById( \"calTax\" ).className = \"off\";'> A Foreign Country (including US Territories)<br><DIV style='margin:10px 0px 0px 0px;'>3) We would like our merchandise shipped via:</DIV>";for(var key in Ship.Floor)this.shipTaxGUI+="<INPUT TYPE='radio' NAME='Shipping' style='margin:0px 0px 0px 18px;'> "+key+"<br>";this.shipTaxGUI+="</TD></TR><TR><TD NOWRAP ALIGN='center'><DIV style='margin:6px 0px 2px 0px;' class='fSize9'><INPUT TYPE='checkbox' name='save_profile' onClick='if( checked ) self.status = \"We will store your profile & automatically apply it to future orders. Note: You can still edit your profile (if needed)\"; else self.status = \"We will NOT store your profile. We will ask for this info every time you order...\"'> Save this profile & apply it to future orders</DIV><INPUT TYPE='submit' value='&nbsp;OK&nbsp;' STYLE='margin:10px 0px 0px 0px;' onMouseover='self.status=this.title; return true;' onMouseout='self.status=\"\"; return true;' title='Click to set your shipping & tax status'></TD></TR></TABLE><INPUT TYPE='hidden' length='10' name='destination'></form>";this.ShipTax=["Shipping & Taxes<div class='fSize8' style='font-weight:normal; font-variant:normal;'><span class=on id='shipTaxTipID'>This info must be provided to go to View-Cart or Checkout</span></div>",this.shipTaxGUI];this.logInGUI="<form name='logInForm' style='margin:10px 0px 0px 0px; text-align:left;' onSubmit='SC.logIn( this ); return false;'><TABLE ALIGN='center' BORDER='0' CELLSPACING='0' CELLPADDING='0' class='fSize10 fColorGray51'><TR><TD colspan=2><DIV style='margin:0px 6px 0px 6px;' id='logInRow1ID'><span id='AlreadyLoggedInID'></span>Are you an existing client of ours? Then log-in with your ID# that we previously assigned you. In the event you have forgotten your ID#, please "+requestLogIn("SPEware.com; Request for log-in id#")+".</DIV></TD></TR><TR id='logInRow2ID'><TD NOWRAP ALIGN='right'><div style='margin:6px 4px 0px 0px;' class='fColorBlack'>Log-In ID#</div></TD><TD NOWRAP><INPUT TYPE='text' maxlength='10' name='companyID' onClick='self.status = \"Enter your unique log-in ID# as provided by SPEware\";' onBlur='self.status = \"\";' STYLE='width:100px; margin:6px 2px 0px 12px;' autocomplete='off'></TD></TR><TR id='logInRow3ID'><TD colspan=2 ALIGN='center'><INPUT TYPE='submit' value='Log-In' STYLE='margin:10px 0px 0px 0px;' onMouseover='self.status=this.title; return true;' onMouseout='self.status=\"\"; return true;' title='Click to log-in to our site'></TD></TR></TABLE></form>";this.LogIn=["Speware Client Log-In",this.logInGUI];this.shipInfo="Unless you inform us to the contrary; we will ship your order via UPS - you specify the specific service. To review or edit the specific shipping method please click \" Shipping & Taxes\" on our View-Cart page.<br><br>Upon your request, we can send your shipment via your own UPS/FedEx Account Number. In this case, your exact shipping cost payable to SPEware will be our handling fee of $"+Ship.HandlingFee+". Should you choose this, we will ask for your FedEx/UPS Account number and your preferred shipping method at checkout.<br><br><b>We do not mark-up the shipping cost</b>, however, we add a flat handling fee of $"+Ship.HandlingFee+" per order. We will not know your exact shipping cost until we pack your order. It will be subject to the delivery method, destination, weight & dimensions of your packed order, which we will determine on-line at UPS.com. Note that <b>our e-commerce software produces an estimate only, your actual cost will vary</b>. Therefore, after you submit your order, we will provide you with the exact shipping cost - which shall be subject to your approval.<br><br>ABOUT GSA: Shipping is waived for GSA Organizations (U.S. General Services Administration) using ground shipping. For those of you in Hawaii or Alaska, you can select ground, but know that we will actually ship it air, as UPS does not provide ground to Hawaii or Alaska.";this.AboutShipping=["About Shipping",this.shipInfo];this.aboutDiscount="This discount has been automatically determined by our e-commerce software. The price(s) showing for Cost-Ea are your discounted price(s) and the Grand-Total includes your discount.";this.AboutDiscount=["About Your Discount",this.aboutDiscount];this.priceInquire="Upon your request, SPEware will provide you a quote for this item, here's how to request a quote:<OL STYLE='margin-top:0px; margin-bottom:0px;'><LI>Click the \"Buy It\" link and it will be added to your cart as an Inquiry-for-Price item for $0, then submit your order; OR<LI>Send us an <A HREF='javascript:void(0);' id='eMailQuoteID'>e-mail</A> now.</OL>";this.PriceInquiry=["Price Inquiry",this.priceInquire];this.aboutPayments="Upon your request, SPEware will provide you a quote for this item, here's how to request a quote:<OL STYLE='margin-top:0px; margin-bottom:0px;'><LI>Click the \"Buy It\" link and it will be added to your cart as an Inquiry-for-Price item for $0, then submit your order; OR<LI>Send us an <A HREF='' style='font-size:10pt;' id='eMailQuoteID'>e-mail</A> now.</OL>";this.AboutPayments=["About Payment Methods",this.aboutPayments];this.msgNoCook="You have turned off Cookies! You must re-enable cookies to use our shopping cart.";this.logIn=logIn;this.printerFriendly=printerFriendly;this.importCart=importCart;this.exportCart=exportCart;this.setShipTaxStatus=setShipTaxStatus;this.getShipTaxStatus=getShipTaxStatus;this.quanValid=quanValid;this.showMsg=showMsg;this.removeItem=removeItem;this.changeQuan=changeQuan;this.getTaxData=getTaxData;this.getShippingCost=getShippingCost;this.getCart=getCart;this.setSub=setSub;this.delAllCookies=delAllCookies;this.initAddToCartPopUp=initAddToCartPopUp;this.initChangeQuanPopUp=initChangeQuanPopUp;this.addToCart=addToCart;this.writeItem=writeItem;this.getMoney=getMoney;this.itemFound=itemFound;this.reportErr=true;this.getPrice=getPrice;this.qStrLogIn=qStrLogIn;this.logInInit=logInInit;this.setAdminMode=setAdminMode;this.getShipMethod=getShipMethod;this.initQuoteRequest=initQuoteRequest;this.validateDiscountExclusionList=validateDiscountExclusionList;this.writeFindItemGUI=writeFindItemGUI;this.showItem=showItem;this.validateDiscountExclusionList();function initQuoteRequest(key){var Link=document.getElementById("eMailQuoteID");Link.href="mailto:"+DB.OrderRecipient+"?subject="+escape("Request for Quote; SPEware item #"+key)+"&body="+escape("Please provide me with a quote for item #"+key+": "+Item[key][1]);}
function getShipMethod(cartShipTax){cartShipTax=parseInt(cartShipTax);var counter=0;for(var key in Ship.Floor){if(counter==cartShipTax)return key;counter++;}}
function qStrLogIn(showPopUp){var qStr=unescape(document.location.search.substring(1));if(qStr&&qStr.indexOf("id=")>=0){companyID=qStr.getVal("id");if(Client[companyID]){if(showPopUp){DW.createWindow(SC.LogIn,[0,600,0],null,null,6,[3,0,0]);document.logInForm.companyID.value=companyID;SC.logIn(document.logInForm);}
else
SetCookie("companyID",companyID,null,"/",cookieDomain);}
else
DeleteCookie("companyID","/",cookieDomain);}}
function logIn(Form){if(navigator.cookieEnabled){var CompID=Form.companyID,companyID=CompID.value;if(companyID){if(Client[companyID]){CompID.blur();var Console=document.getElementById("logInRow1ID");var theURL="http://"+theHost+((local)?"/speware":"")+"/?id="+companyID;var spDiscountsTxt="";for(var i=1;i<Client[companyID].length;i++)spDiscountsTxt+="&nbsp;&nbsp;"+i+") Item #"+Client[companyID][i][0]+"; price: $"+Client[companyID][i][1]+"; "+Item[Client[companyID][i][0]][1].substring(0,35)+"...<br>";var discountNotApplicableTxt="";for(var i=0;i<DiscountExclusionList.length-1;i++)discountNotApplicableTxt+="&nbsp;&nbsp;"+(i+1)+") Item #"+DiscountExclusionList[i]+"; price: $"+Item[DiscountExclusionList[i]][0]+"; "+Item[DiscountExclusionList[i]][1].substring(0,35)+"...<br>";if(discountNotApplicableTxt)discountNotApplicableTxt="<div style='height:100px; overflow:auto;'><div style='text-decoration:underline; margin:20px 0px 0px 0px;'>Note however, the "+GLOBAL_CLIENT_DISCOUNT+"% discount does not apply to the following items:</div><div style='margin:6px 0px 0px 0px;'>"+discountNotApplicableTxt+"</div></div>";spDiscountsTxt=(spDiscountsTxt)?" along with the following special rates:<br><div style='margin:6px 0px 6px 0px;'>"+spDiscountsTxt+"</div>":".";Console.innerHTML="<b>Welcome"+((Client[companyID][0])?" "+Client[companyID][0]:"")+"</b>! You have successfully logged in. You will receive a "+GLOBAL_CLIENT_DISCOUNT+"% discount off all the prices that appear on our web site"+spDiscountsTxt+"The discount will be automatically applied to your shopping cart order every time you add merchandise to it.<br>"+discountNotApplicableTxt+"<br>TIP If you haven't already done so, we recommend you "+((winIE)?"<a href='javascript:window.external.AddFavorite( \""+theURL+"\", \"SPEware.com; log-in ID "+companyID+"\" );' title='Click to bookmark the special URL below'>bookmark</a>":"bookmark")+" the URL below. Next time, you can load our site from this bookmark which automatically logs you in as well: <nobr><a href='"+theURL+"' title='Use this URL to automtically log in'>"+theURL+"</a></nobr>";document.getElementById("logInRow2ID").className="off";document.getElementById("logInRow3ID").className="off";SetCookie("companyID",companyID,null,"/",cookieDomain);}
else
alert("Sorry but the id# \""+companyID+"\" was not found in our data-base.");}
else{alert("Please enter your ID#");CompID.focus();}}
else alert(this.msgNoCook);}
function importCart(){var qStr=unescape(document.location.search.substring(1));if(qStr){var qStrRE=/^order=\d+\|.+&profile=\d\|\d\|\d{1,2}|\d\|\d&id=.+&end$/;if( qStrRE.test(qStr)){var cartData=qStr.getVal("order");var cartShipTax=qStr.getVal("profile");var exp=(qStr.charAt(qStr.length-5)=="1")?expDate12Mon:null;var existingCart=GetCookie("cartData");if((existingCart&&confirm("You already have an existing shopping cart but are about to import a new one.\n\n1) Click OK to import the new order and overwrite your existing cart OR;\n2) Click Cancel to preserve your existing cart"))||!existingCart){SetCookie("cartData",cartData,null,"/",cookieDomain);SetCookie("cartShipTax",cartShipTax,exp,"/",cookieDomain);}}
else
alert("ERROR: Were sorry but an error occurred while trying to import a shopping cart order from the query-string portion of the URL: \""+document.location.search.substring(1)+"\"\n\nTIP: If you clicked the link from an e-mail, verify that the e-mail program did not insert hard line break(s) within the URL. If it did, you may need to manually copy & paste the \"broken\" lines into the browser's address bar.\n\nNOTE: Properly formatted URL's will always end with \"&end\"");}}
function exportCart(eMail){var cartData=GetCookie("cartData");var companyID=GetCookie("companyID");if(cartData){var sub="SPEware Shopping Cart Order; click link to load cart";var msg="http://"+theHost+"/cart.aspx?order="+cartData+"&profile="+GetCookie("cartShipTax")+"&id="+companyID+"&end";msg=msg.replaceLiteral(" ","%20");if(eMail)msg+="\n\nTO RECEPIENT: If the above web address is not \"clickable\", you will need to copy and paste it starting from \"http...\" to \"&end\" into the address field of your web browser.";}
else
var msg="Empty";if(eMail)document.location.href="mailto:?subject="+escape(sub)+"&body="+escape(msg);else
return msg;}
function printerFriendly(PrnLink,prnDialog){if(!SC.prnLink)SC.prnLink=PrnLink.innerHTML;var makePrinterFriendly=(PrnLink.innerHTML==SC.prnLink);for(member in PF_IDS){var TheDiv=document.getElementById(PF_IDS[member]);if(makePrinterFriendly)TheDiv.className="off";else TheDiv.className="on";}
if(makePrinterFriendly){if(window.BKG_IMG)document.body.style.backgroundImage="url( none )";if(window.PF_MARGIN)document.body.style.margin="10px 10px 10px 10px";PrnLink.innerHTML="<b>Web-Layout</b>";if(window.print&&prnDialog)self.print();}
else{if(window.BKG_IMG)document.body.style.backgroundImage=BKG_IMG;if(window.PF_MARGIN)document.body.style.margin=PF_MARGIN;PrnLink.innerHTML=SC.prnLink;}
if(PrnLink.focus)PrnLink.focus();}
function getShipTaxStatus(Link,evt,userReviewing,RequestedPos){if(navigator.cookieEnabled){var cartData=GetCookie("cartData");var cartShipTax=GetCookie("cartShipTax");var shipTaxUnknown=(cartShipTax)?false:true;if(shipTaxUnknown||userReviewing){var RequestedPos=(RequestedPos)?RequestedPos:null;if(screen.height>=768)DW.createWindow(SC.ShipTax,[1,400,0],Link,evt,6,RequestedPos);else
DW.createWindow(SC.ShipTax,[1,400,250],Link,evt,6,RequestedPos);document.shipTaxForm.destination.value=(userReviewing)?"":Link.href;if(userReviewing)document.getElementById("shipTaxTipID").className="off";if(userReviewing&&cartShipTax){var ShipTax=cartShipTax.split("|");var gsa=parseInt(ShipTax[0]);var loc=parseInt(ShipTax[1]);var locCal=parseInt(ShipTax[2]);var ship=parseInt(ShipTax[3]);var saveProfile=parseInt(ShipTax[4]);var Form=document.shipTaxForm;Form.GSA[gsa].checked=true;Form.Location[loc].checked=true;if(loc==2)for(var i=1;i<6;i++)Form.Shipping[i].disabled=true;if(gsa==1&&loc==0){document.getElementById("calTax").className="on";Form.calTaxPullDown.selectedIndex=locCal;}
Form.Shipping[ship].checked=true;if(saveProfile)Form.save_profile.checked=true;}
return false;}
else{var RequestedPath=Link.pathname.split("/");var requestedPage=RequestedPath[RequestedPath.length-1];Link.href=getURL(requestedPage);return true;}}
else{alert(this.msgNoCook);return false;}}
function setShipTaxStatus(Form){var gsaUnchecked=true,gsa=-1;for(var i=0;i<Form.GSA.length;i++)if(Form.GSA[i].checked){gsa=i;gsaUnchecked=false;}
var locUnchecked=true,loc=-1;for(var i=0;i<Form.Location.length;i++)if(Form.Location[i].checked){loc=i;locUnchecked=false;}
var shipUnchecked=true,ship=-1;for(var i=0;i<Form.Shipping.length;i++)if(Form.Shipping[i].checked){ship=i;shipUnchecked=false;}
var locCal=Form.calTaxPullDown.selectedIndex;if(gsaUnchecked){alert("Please indicate if you are a GSA Organization?");Form.GSA[0].focus();}
else if(locUnchecked){alert("Please indicate your location?");Form.Location[0].focus();}
else if(shipUnchecked){alert("Please indicate a shipping method?");Form.Shipping[0].focus();}
else if(Form.GSA[1].checked&&Form.Location[0].checked&&!locCal){alert("Please indicate your location within California?");Form.calTaxPullDown.focus();}
else{var exp=(Form.save_profile.checked)?expDate12Mon:null;var saveProfile=(exp)?1:0;SetCookie("cartShipTax",gsa+"|"+loc+"|"+locCal+"|"+ship+"|"+saveProfile,exp,"/",cookieDomain);if(Form.destination.value)document.location.href=Form.destination.value;else{DW.removeWin();document.getElementById("shopping_cart").innerHTML=this.getCart(true);}}}
function getCart(htm){var txt=!htm;var output=(htm)?"<div id='shopping_cart' style='margin:25px 0px 0px 0px;'>":"";output+=(htm)?"<table align=center border=0 cellpadding=5 cellspacing=3 width=95% class='fSize12'>":"";var cartData=GetCookie("cartData");var newCartData="";var cartShipTax=GetCookie("cartShipTax");var runningSubTotal=0;var totalSavings=0;if(cartData&&cartShipTax){var ShipTax=cartShipTax.split("|");var Records=cartData.split("_");var nRecords=Records.length;output+=(htm)?"<tr align=center class='bkgColorGray240'><th colspan=6 class='fSize14'>Your Shopping Cart</th></tr>":"";output+=(htm)?"<tr align=center class='bkgColorGray240'>":"";output+=(htm)?"<th>&nbsp;</th><th>Quantity</th><th>Item</th><th>Cost Ea</th><th>Line Total</th><th>Description</th></tr>":"";var lineTotal=0;var runningTotal=0;var rowNum=0;while(rowNum<nRecords){var ThisItem=Records[rowNum].split("|");var key=ThisItem[1];var quantity=parseInt(ThisItem[0]);window.priceQuote=false;if(Item[key]){var PriceSavings=getPrice(key);var price=PriceSavings[0];if(price<0){window.priceQuote=true;price=0;}
totalSavings+=quantity*PriceSavings[1];var itemName=key;var description=Item[key][1];output+=(htm)?"<tr align=center class='bkgColorGray240'>":"";output+=(htm)?"<td><a href='javascript:SC.removeItem("+rowNum+");' onMouseOver=\"self.status=this.title; return true;\" onMouseOut=\"self.status=''; return true;\" title='Remove this item from order'>Remove</a></td>":"";output+=(htm)?"<td><a href=javascript:'javascript:void(0);' onClick='if( window.DW ) { DW.createWindow( SC.ChangeQuan, [1,300,0], this, event, 6 ); SC.initChangeQuanPopUp( \""+key+"\", "+quantity+", "+rowNum+" ); } return false;' onMouseOver=\"self.status=this.title; return true;\" onMouseOut=\"self.status=''; return true;\" title='Change quantity of this item'>"+quantity+"</a></td>":(output)?"\n\n"+quantity:quantity;output+=(htm)?"<td>"+itemName+"</td>":" of "+itemName;lineTotal=quantity*price;runningTotal+=lineTotal;output+=(htm)?"<td>"+getMoney(price)+"</td>":" at "+getMoney(price)+" each";output+=(htm)?"<td>"+getMoney(lineTotal)+"</td>":" for "+getMoney(lineTotal);if(window.priceQuote)description="Inquiry for Price: Submit this order as \"tentative\" and we will get back to you with a price quote for this item which shall be subject to your approval. "+((htm)?"<br>":"\n")+description;output+=(htm)?"<td width='35%' class='fSize10'>"+description+"</td>":"\n"+description;output+=(htm)?"</tr>":"";newCartData+=(newCartData)?"_"+Records[rowNum]:Records[rowNum];}
else
output+=(htm)?"<tr align=center class='bkgColorGray240'><td> &nbsp;</td><td>-</td><td>-</td><td>-</td><td>-</td><td width='35%' class='fSize10'>ERROR: The item referenced by primary key \""+key+"\" could not be found in our data-base. This is probably because it has been discontinued. However, if you feel you have received this message in error please <nobr><A HREF='javascript:reportError( \"Web Site Problem - Data not found\", \"Primary key \\&#34;"+key+"\\&#34; not found in \\&#34;"+this.dataFile+"\\&#34;\" );'><span class='fSize10'>report this problem</span></A></nobr> to our web site administrator.</td></tr>":"";rowNum++;}
SetCookie("cartData",newCartData,null,"/",cookieDomain);runningSubTotal=getMoney(runningTotal);var gsa=(ShipTax[0]=="0")?"YES":"NO";output+=(htm)?"":"\n\nGSA: "+gsa;output+=(htm)?"<TR class='bkgColorGray240'><th colspan=5 align=right>Your Running Total</th><th align=center>"+runningSubTotal+"</th></tr>":"\nRUNNING TOTAL: "+runningSubTotal;var ShipCost=SC.getShippingCost(ShipTax[0],ShipTax[1],ShipTax[3],runningTotal);var shipCost=ShipCost[0];window.shipIsKnown=ShipCost[1];var shipOut=(shipCost!=-1)?getMoney(shipCost):"TBD";if(shipCost==-1)shipCost=0;var estShip=(shipCost>Ship.HandlingFee)?"Estimated ":"";window.shipMethod=ShipTax[3];output+=(htm)?"<tr class='bkgColorGray240'><td colspan=5 align=right><a href=javascript:'javascript:void(0);' onClick='if( window.DW ) DW.createWindow( SC.AboutShipping, [0,500,0], this, event, 6 ); return false;' onMouseOver=\"self.status=this.title; return true;\" onMouseOut=\"self.status=''; return true;\" title='Learn more about shipping'>Help</a>;&nbsp;&nbsp;<b>"+estShip+SC.getShipMethod(ShipTax[3])+" Shipping </b></td><th align=center oncontextmenu='return SC.setAdminMode();'>"+shipOut+"</th></tr>":"\n"+estShip.toUpperCase()+SC.getShipMethod(ShipTax[3]).toUpperCase()+" SHIPPING: "+shipOut;if(htm&&GetCookie("admin"))output+="<tr class='bkgColorGray240'><td colspan=5 align=right><b>Admin; Shipping in Percent </b></td><th align=center>"+(shipCost/runningTotal*100).toFixed(1)+"%</th></tr>";var TaxData=SC.getTaxData(ShipTax);var taxDistrict=TaxData[0];var taxRate=TaxData[1];var taxCost=runningTotal*taxRate/100;var taxOutput=getMoney(taxCost);var taxDesOutput=(taxDistrict)?taxDistrict+"; "+TaxData[1]+"% "+this.state+" State Tax":this.state+" State Tax";output+=(htm)?"<tr class='bkgColorGray240'><th colspan=5 align=right>"+taxDesOutput+" </th><th align=center>"+taxOutput+"</th></tr>":"\n"+taxDesOutput.toUpperCase()+" : "+taxOutput;var gTotalWithTax=runningTotal+shipCost+taxCost;var gTotalOutput=getMoney(gTotalWithTax)+((shipCost=="TBD")?" + shipping":"");output+=(htm)?"<tr class='bkgColorGray240'><td colspan=5 align=right>&nbsp;&nbsp;<b>Grand Total </b></td><th align=center>"+gTotalOutput+"</th></tr>":"\nGRAND TOTAL: "+gTotalOutput;}
else if(cartData)output+="<tr align=center class='bkgColorGray240'><th>Your shopping cart will be displayed after you <a href='"+SC.viewCartPage+"' onMouseOver='self.status=\"\"; return true;' onMouseOut='self.status=\"\"; return true;' title='' onClick='return SC.getShipTaxStatus( this, event, false );'>click here</a> to declare your shipping destination and tax status. </th></tr>";else if(!navigator.cookieEnabled)output+=(htm)?"<tr align=center class='bkgColorGray240'><th>"+SC.msgNoCook+"</th></tr>":SC.msgNoCook;else{var msgCartEmpty="Your Shopping Cart is Empty";output+=(htm)?"<tr align=center class='bkgColorGray240'><th>"+msgCartEmpty+"</th></tr>":msgCartEmpty;}
output+=(htm)?"</table><br>":"";if(totalSavings>0){var companyName=Client[GetCookie("companyID")][0];companyName=(companyName)?companyName+": ":"";var totalSavingsOut=getMoney(totalSavings);output+=(htm)?"<div style='text-align:center;'><b>"+companyName+"</b>You saved "+totalSavingsOut+" on this order &#149; <a href=javascript:'javascript:void(0);' onClick='if( window.DW ) DW.createWindow( SC.AboutDiscount, [0,300,0], this, event, 6, [2,0,-15] ); return false;' onMouseOver=\"self.status=this.title; return true;\" onMouseOut=\"self.status=''; return true;\" title='Learn more about your Discount'>Help</a><br><br>":"\n\n"+companyName.toUpperCase()+"You saved "+totalSavingsOut+" on this order.</div>";}
output+=(htm)?"<div id='scConsole' class=fSize12; style='text-align:center;'> &nbsp;<br></div><div style='margin:10px 0px 0px 0px; text-align:center;'><a href='javascript:history.back();' onMouseover='SC.showMsg( 1 ); return true;' onMouseout='SC.showMsg(); return true;'>Back</a>&nbsp;&#149;&nbsp;<a href='javascript:void(0);' onMouseover='SC.showMsg( 2 ); return true;' onMouseout='SC.showMsg(); return true;' onClick='return SC.getShipTaxStatus( this, event, true, [2,0,-15] );'>Shipping & Taxes</a>"+((cartData)?"&nbsp;&#149;&nbsp;<a href='javascript:SC.exportCart( 1 );' onMouseover='SC.showMsg( 3 ); return true;' onMouseout='SC.showMsg(); return true;' oncontextmenu='prompt( \"ADMIN: Copy (Ctrl+C) the URL for this order:\\nTIP: Left-click link to send via e-mail\", SC.exportCart( 0 ) ); return false;'>E-mail Cart</a>":"")+"&nbsp;&#149;&nbsp;<a href='javascript:void(0);' onMouseover='if( this.innerHTML == \"Printer-Friendly\" ) SC.showMsg( 4 ); else SC.showMsg( 5 ); return true;' onMouseout='SC.showMsg(); return true;' onClick='SC.printerFriendly( this, 1 );' oncontextmenu='SC.printerFriendly( this, 0 ); return false;'>Printer-Friendly</a>&nbsp;&#149;&nbsp;<a href='' onMouseover='SC.showMsg( 6 ); return true;' onMouseout='SC.showMsg(); return true;' onClick='this.href=getURL( \"checkout.aspx\" );'>Checkout</a></div>":""
output+=(htm)?"</div>":"";return output;}
function showMsg(index){if(!index)index=0;switch(index){case 1:var msg="Shortcut back to the last page you were on";break;case 2:var msg="Review & edit your shipping & tax profile";break;case 3:var msg="Send this order to a colleague, friend or yourself";break;case 4:var msg="Compact page and maximize it for your printer";break;case 5:var msg="Reformat page back to default \"web\" layout...";break;case 6:var msg="Submit your completed order";break;}
if(index){clearTimeout(window.cartMsgTimer);try{document.getElementById("scConsole").innerHTML=msg;} catch(e){}}
else
window.cartMsgTimer=setTimeout("try{ document.getElementById( 'scConsole' ).innerHTML = ' &nbsp;<br>'; } catch( e ) {}",500);}
function getShippingCost(gsa,loc,shipMethod,total){var shipCost=0;var shipFloor=-2;var shipIsKnown=false;gsa=parseInt(gsa);loc=parseInt(loc);shipMethod=parseInt(shipMethod);var shippingWaived=(gsa==0&&loc<=1&&shipMethod<=1);var counter=0;for(var key in Ship.Floor){if(counter==shipMethod){shipFloor=Ship.Floor[key];break;}
counter++;}
if(shippingWaived)shipFloor=0;else
shipCost=shipFloor+Ship.HandlingFee+((shipFloor)?total*Ship.Percentage/100:0);if(shipFloor==0)shipIsKnown=true;if(shipFloor<0)shipCost=-1;return[shipCost,shipIsKnown];}
function getTaxData(ShipTax){var gsa=(ShipTax[0]=="0");var cal=(ShipTax[1]=="0");var locCal=parseInt(ShipTax[2]);var taxDistrict="";if(gsa||!cal)var taxRate=0;else if(cal){if(locCal){var counter=1;for(var key in CalifTax){if(counter==locCal){taxRate=CalifTax[key];taxDistrict=key;break;}
counter++;}}
else var taxRate=CalifTax["All Others"];}
return[taxDistrict,taxRate];}
function changeQuan(Form){var Quantity=Form.quantity;if(quanValid(Quantity)){var rowNum=parseInt(Form.indexNum.value);var cartData=GetCookie("cartData");var cartDataNew="";var Records=cartData.split("_");for(var k=0;k<Records.length;k++){if(k==rowNum){var key=Records[k].split("|")[1];var newQuan=Quantity.value;Records[k]=newQuan+"|"+key;}
cartDataNew+=(cartDataNew)?"_"+Records[k]:Records[k];}
SetCookie("cartData",cartDataNew,null,"/",cookieDomain);document.getElementById("shopping_cart").innerHTML=this.getCart(true);DW.removeWin();}}
function removeItem(rowNum){var cartData=GetCookie("cartData");var cartDataNew="";var Records=cartData.split("_");for(var k=0;k<Records.length;k++){if(k!=rowNum)cartDataNew+=(cartDataNew)?"_"+Records[k]:Records[k];}
SetCookie("cartData",cartDataNew,null,"/",cookieDomain);document.getElementById("shopping_cart").innerHTML=this.getCart(true);}
function delAllCookies(){if(confirm("ADMIN TEST MODE; Delete cookies:\n 1) cartData: "+GetCookie("cartData")+"\n 2) cartShipTax: "+GetCookie("cartShipTax")+"\n 3) companyID: "+GetCookie("companyID")+"\n 4) speCookie: "+GetCookie("speCookie"))){DeleteCookie("cartData","/",cookieDomain);DeleteCookie("cartShipTax","/",cookieDomain);DeleteCookie("companyID","/",cookieDomain);DeleteCookie("speCookie","/",cookieDomain);}
return false;}
function getPrice(key){var companyID=GetCookie("companyID");var price=-1;var savings=0;if(companyID){for(var i=1;i<Client[companyID].length;i++){if(key==Client[companyID][i][0]){price=Client[companyID][i][1];break;}}
if(price==-1){var discountNotApplicable=false;for(var i=0;i<DiscountExclusionList.length-1;i++){if(key==DiscountExclusionList[i]){discountNotApplicable=true;break;}}
var gDiscountPercent=(discountNotApplicable)?1:(1-GLOBAL_CLIENT_DISCOUNT/100);price=Item[key][0]*gDiscountPercent;}
savings=Item[key][0]-price;}
else
price=Item[key][0];return[price,savings];}
function setSub(showSuccess){var cartData=GetCookie("cartData");var gsa=false;var cartShipTax=GetCookie("cartShipTax");if(cartShipTax){var ShipTax=cartShipTax.split("|");if(ShipTax[0]=="0")gsa=true;}
var runSub=0;if(cartData){var companyID=GetCookie("companyID");var Records=cartData.split("_");for(i in Records){var ThisItem=Records[i].split("|");var quan=parseInt(ThisItem[0]);var key=ThisItem[1];var PriceSavings=getPrice(key);var price=PriceSavings[0];if(price<0)price=0;runSub+=quan*price;}}
if(showSuccess){document.getElementById("cartRunSub").innerHTML="Calculating...";SC.runSub=runSub;setTimeout("try{ document.getElementById( 'cartRunSub' ).innerHTML = SC.getMoney( SC.runSub ); } catch( e ) {}",1000);}
else
document.getElementById("cartRunSub").innerHTML=getMoney(runSub);}
function initAddToCartPopUp(key){setSub();var charLength=25;var theItem=key;if(theItem.length>charLength)theItem=theItem.substring(0,charLength)+"...";document.getElementById("scItem").innerHTML=theItem;var description=Item[key][1];if(description.length>charLength)description=description.substring(0,charLength)+"...";document.getElementById("scDescription").innerHTML=description;var price=(Item[key][0]!=-1)?this.getMoney(Item[key][0]):this.getMoney(0);document.getElementById("scPrice").innerHTML=price;document.addCartForm.key.value=key;setTimeout("document.addCartForm.quantity.focus()",(IE)?0:250);}
function initChangeQuanPopUp(key,oldQuan,indexNum){var charLength=15;var theItem=key;if(theItem.length>charLength)theItem=theItem.substring(0,charLength)+"...";document.getElementById("scItem").innerHTML=theItem;document.getElementById("scOldQuan").innerHTML=oldQuan;document.changeQuanForm.indexNum.value=indexNum;setTimeout("document.changeQuanForm.quantity.focus()",500);}
function quanValid(Quantity){if(!Quantity.value){alert("Please enter the quantity");Quantity.focus();return false;}
else if(isNaN(Quantity.value)){alert("\""+Quantity.value+"\" is not a number - please enter numbers only");Quantity.value="";Quantity.focus();return false;}
else if(parseInt(Quantity.value)<1){alert("Quantity must 1 or more");Quantity.value="";Quantity.focus();return false;}
return true;}
function addToCart(Form){var Quantity=Form.quantity;if(quanValid(Quantity)){var key=Form.key.value;if(navigator.cookieEnabled){var quantity=parseInt(Quantity.value);var theRecord=quantity+"|"+key;var cartData=GetCookie("cartData");var newRecord=(cartData)?cartData+"_"+theRecord:theRecord;SetCookie("cartData",newRecord,null,"/",cookieDomain);setSub(1);}
else
alert(this.msgNoCook);}}
function writeItem(key,PriorTD,TrailTD,getHTML){if(this.itemFound(key)){var price=(Item[key][0]!=-1)?getMoney(Item[key][0]):"<A HREF='javascript:void(0);' onMouseOver='this.title=SC.Msg.inquire; self.status=this.title; return true;' onMouseOut='self.status = \"\"; return true;' onClick='if( window.DW ) { DW.createWindow( SC.PriceInquiry, [1,350,0], this, event, 6, [2,0,-15] ); SC.initQuoteRequest( \""+key+"\" ); } return false;' class='scBuyIt'>Inquire</A>";var html="<TR ALIGN=center class='bkgColorGray240 scItem'>";if(PriorTD){for(var i in PriorTD)html+="<TD>"+PriorTD[i]+"</TD>";}
html+="<TD nowrap>"+key+"</TD><TD>"+Item[key][1]+"</TD><TD nowrap>"+price+"</TD><TD nowrap><A HREF='javascript:void(0);' onMouseOver='this.title=SC.Msg.buyIt; self.status=this.title; return true;' onMouseOut='self.status = \"\"; return true;' onClick='if( window.DW ) { DW.createWindow( SC.AddToCart, [1,400,0], this, event, 6, [2,0,-15] ); SC.initAddToCartPopUp( \""+key+"\" ); } return false;' class='scBuyIt'>Buy It</A></TD>";if(TrailTD){for(var i in TrailTD)html+="<TD>"+TrailTD[i]+"</TD>";}
html+="</TR>";if(getHTML)return html;else document.write(html);}}
function getMoney(num){if(num.toFixed)return "$"+num.toFixed(2);var newNum=""+num;var theLength=newNum.length;var theDecLoc=newNum.lastIndexOf(".");if(theDecLoc==-1){newNum=newNum+".00";return "$"+newNum;}
else{var theDollars=newNum.substring(0,theDecLoc);var theCents=newNum.substring(theDecLoc,theLength);var theCents=""+Math.round(theCents*100);if(theCents=="100"){theDollars=parseFloat(theDollars);theDollars+=1;newNum=theDollars+".00";return "$"+newNum;}
else{var newCents=(theCents.length==1)?"0"+theCents:theCents;newNum=theDollars+"."+newCents;return "$"+newNum;}}}
function validateDiscountExclusionList(){var badItems="";for(var i=0;i<DiscountExclusionList.length-1;i++){if(!Item[DiscountExclusionList[i]])badItems+=DiscountExclusionList[i]+"\n";}
if(badItems){if(this.reportErr){window.reportError("Web Site Error","The following items in the DiscountExclusionList array are undefined in the Items data-base: \n"+badItems);this.reportErr=false;}}}
function itemFound(key){if(key==""){if(this.reportErr){window.reportError("Web Site Error","Primary Key is an empty string. All function calls to \"SC.writeItem\" must pass the item's Primary Key as a text string.");this.reportErr=false;}
return false;}
else if(typeof Item[key]=="undefined"){if(this.reportErr){window.reportError("Web Site Error","The Primary Key \""+key+"\" not found in Data Base File: "+this.dataFile);this.reportErr=false;}
return false;}
return true;}
function setAdminMode(){var admin=GetCookie("admin");if(admin){if(confirm("ADMIN: Revert to normal view?"))DeleteCookie("admin","/",cookieDomain);}
else{if(confirm("ADMIN: View shipping in percent?"))SetCookie("admin",1,null,"/",cookieDomain);}
document.getElementById("shopping_cart").innerHTML=this.getCart(true);return false;}
function logInInit(){var companyID=GetCookie("companyID");if(companyID){var logInMsg="<b>Hello"+((Client[companyID][0])?" "+Client[companyID][0]:"")+"</b>! You have already logged in with your ID# "+GetCookie("companyID")+"<br><br>";document.getElementById("AlreadyLoggedInID").innerHTML=logInMsg;document.logInForm.companyID.value=companyID;}
else
setTimeout("document.logInForm.companyID.focus()",((IE)?0:250));}
function showItem(Form,searchPage){var start=new Date().getTime();var FindKey=Form.FindKey;var userKey=FindKey.value.trim();FindKey.value=userKey;var userKey1=userKey.toLowerCase();FindKey.focus();if(userKey){var itemFound=false;var htm="<table cellpadding='4' cellspacing='3' border=0 style='margin:10px 0px 0px 0px;'><TR class='bkgColorGray240'><TH NOWRAP></TH><TH NOWRAP>Part Number</TH><TH nowrap>Description</TH><TH nowrap>List Price</TH><TD ALIGN=center nowrap></TD></TR>";var UserKey1=userKey1.split(" ");var nWords=0;var nItems=0;for(entry in UserKey1){if(UserKey1[entry])nWords++;}
for(pKey in Item){var nMatches=0;for(thisWord in UserKey1){if(UserKey1[thisWord]){if(Form.Search_By[0].checked){var description=Item[pKey][1].toLowerCase();if(description.indexOf(UserKey1[thisWord])>=0){nMatches++;if(nMatches==nWords){itemFound=true;nItems++;htm+=""+SC.writeItem(pKey,[nItems],null,1);}}}
else{var pKey1=pKey.toString();try{pKey1=pKey.toLowerCase();} catch(e){}
if(pKey1.indexOf(UserKey1[thisWord])>=0){nMatches++;if(nMatches==nWords){itemFound=true;nItems++;htm+=""+SC.writeItem(pKey,[nItems],null,1);}}}}}}
if(itemFound){htm+="</TABLE>";var end=new Date().getTime();var nSec=(end-start)/1000;if(nSec.toFixed)nSec=nSec.toFixed(2);htm+="<div class='fSize9 fColorGray102' style='margin:10px 0px 0px 0px;'>"+nItems+" items found in "+nSec+" seconds</div>";}
else
htm="<table cellpadding='8' cellspacing='3' border=0 style='margin:10px 0px 0px 0px;'><TR class='bkgColorGray240 scItem'><TD align=left>Sorry, <b>"+userKey+"</b> was not found in our data-base:<UL STYLE='text-align:left; margin-top:4px; margin-bottom:0px;' class='fSize10'><LI>Double check your typing for accuracy.<LI>Make sure you chose the correct radio button for your search: Description or Part Number.<LI>Try making your search less specific. For example, say you are searching on the description for <b>96 Place Sealing Gasket</b> and having no luck. Try entering just <b>96 Place Sealing</b> or <b>96 Place</b>. Likewise, if you are doing a 1-word search on an item number like <b>SPE-RS151F-12R</b> with no luck, try shortening it to <b>SPE</b> and see what happens.<LI>Your search is not case-sensitive, for example, <b>SPEWARE</b> & <b>speware</b> will return identical results.<LI>Finally, you may want to view our <nobr><A HREF='all-products.aspx' onMouseOver='self.status=this.title; return true;' onMouseOut='self.status=\"\"; return true;' TITLE='View all items on a single page' style='font-size:10pt;'>entire inventory</A><nobr/>, it has all products listed on a single page.</UL></TD></TR></TABLE>";document.getElementById("findKeyResultsID").innerHTML=htm;}
else
FindKey.focus();}
function writeFindItemGUI(searchPage){var gui="<TABLE ALIGN='center' BORDER='0' CELLSPACING='0' CELLPADDING='0'><caption><h1 class='pageTitle' style='text-align:center;'>Search Our Inventory</h1><br></caption><TR ALIGN='center' id='searchIntroID'><TD>"+((searchPage)?"":"Looking for a specific product but unable to find it? <nobr><A HREF='javascript:void(0);' onMouseOver='self.status=this.title; return true;' onMouseOut='self.status=\"\"; return true;' onClick='document.getElementById( \"searchItemNumID\" ).className = \"on\"; document.getElementById( \"findKeyID\" ).focus(); document.getElementById( \"searchIntroID\" ).className = \"off\"; return false;' title=''>Look it up</A> now...</nobr>")+"</TD></TR><TR ALIGN='center' class='"+((searchPage)?"on":"off")+"' id='searchItemNumID'><TD nowrap><form name='findItemForm' onSubmit='SC.showItem( this, "+searchPage+" ); return false;' style='margin:10px 0px 0px 0px;'><INPUT name='FindKey' onFocus='self.status=\"Enter search words (item number or description)\"; return true;' onBlur='self.status=\"\"; return true;' class='textInputHalfWid' style='width:260px;' id='findKeyID'>&nbsp;&nbsp;&nbsp;&nbsp;<INPUT type='submit' value='Search' onMouseover='self.status=this.title; return true;' onMouseout='self.status=\"\"; return true;' title='Search by item number'>&nbsp;&nbsp;<INPUT type='button' value='Reset' onMouseover='self.status=this.title; return true;' onMouseout='self.status=\"\"; return true;' onClick='document.findItemForm.reset(); document.getElementById( \"findKeyResultsID\" ).innerHTML = \"\";' onMouseUp='document.findItemForm.FindKey.focus();' title='Resets search-item form'><br><div class='fSize11' style='margin:4px 0px 0px 0px;'>I am searching by: <input type='radio' name='Search_By' checked value='description' onMouseUp='document.findItemForm.FindKey.focus();' style='margin:0px 2px 0px 0px;'>Description;&nbsp;&nbsp;&nbsp;<input type='radio' name='Search_By' value='item_number' onMouseUp='document.findItemForm.FindKey.focus();' style='margin:0px 2px 0px 0px;'>Part Number;</div></form></TD></TR><TR ALIGN='center'><TD><div id='findKeyResultsID'></div></TD></TR></TABLE>";document.write(gui);}}
SC=new ShoppingCart();