if(top.frames.length!=0){if(window.location.href.replace) top.location.replace(self.location.href);else top.location.href=self.document.href;} function OpenWindow(URL){var MaxArguments=4;var ArgumentsIndex;for(ArgumentsIndex=0;ArgumentsIndex-1){shoppingCartID=document.cookie.substring(indx+"shopping_cart_id=shopping_cart_id:".length);shoppingCartID=shoppingCartID.split(";")[0];} var url=urlStr+"?shopping_cart_id="+shoppingCartID;jQuery.post(url,function(data){if(data!='') {customerID=data;}});}catch(ex){} var ezBuySelElem=document.getElementById("ezBuyAcctSelector");if(customerID!=null&&ezBuySelElem&&ezBuySelElem.type&&ezBuySelElem.type=="select-one"){ezBuySelElem.value=customerID;ezBuySelElem.disabled=true;} return false;} function initiateClientToWASSession(env,emailAddr,originEntity) {var entity="NDC";var param="?email=";param+=emailAddr;if(originEntity) {param+="&originEntity=";param+=originEntity;} var options={url:"/"+env+"/InitClientToWASSessionAction.do"+param,success:function(data) {if(data!="") {entity=data;}},async:false};jQuery.ajax(options);jQuery.cookie("entity",entity,{path:'/'});} jQuery(document).ready(function(){jQuery("#signOut").click(function(){jQuery.post("/apps/logout.do");return true;});var gM=jQuery("#left-sidebar").height()-77;var cA=jQuery("#content-area").height();if(gM>cA){jQuery("#content-area").height(gM);} retrieveAutoSavedCart('/page/retrieve-cart');var defaultTxt='Keyword or Part #';if(jQuery("#searchTerms").val()==defaultTxt||jQuery("#searchTerms").val()==''){var str=jQuery.cookie("partSearchForm");if(str&&str.length>12){str=str.substring(12);jQuery("#searchTerms").val(str);}else{jQuery("#searchTerms").val(defaultTxt);}} jQuery("#searchTerms").focus(function(){if(jQuery("#searchTerms").val()==defaultTxt){jQuery(this).val('');}});jQuery("#searchTerms").blur(function(){var string=jQuery("#searchTerms").val();if(jQuery.trim(string)==''){jQuery(this).val(defaultTxt);}});jQuery("#product-search-form").submit(function(event){var string=jQuery("#searchTerms").val();var srch=jQuery.trim(string);jQuery("#searchTerms").val(srch);if(srch.length<3||srch==defaultTxt){jQuery.cookie("partSearchForm",null);alert('Please enter at least three characters in the Part Search field.');event.preventDefault();jQuery("#searchTerms").focus();}else{jQuery("#psLink").click();jQuery.cookie("partSearchForm","searchTerms:"+srch);}});jQuery("a#sign-out").click(function(){jQuery.get("/interweb/logout.do");}); jQuery("#footer").append('');jQuery("#ssLink").click(function() {var terms=jQuery("#site-keywords").val();s.linkTrackVars='events,eVar9,prop5';s.linkTrackEvents='event3';s.events="event3";s.eVar9=terms;s.prop5=terms;s.tl(this,'o');});jQuery("#site-search-form").submit(function(event) {jQuery("#ssLink").click();}); jQuery("#footer").append('');jQuery("#psLink").click(function() {var terms=jQuery("#searchTerms").val();s.linkTrackVars='events,eVar2,prop1';s.linkTrackEvents='event2';s.events="event2";s.eVar2=terms;s.prop1=terms;s.tl(this,'o');}); if(jQuery('.projectListBox .tableHead').length>0) {var plText='Project List allows you to create and maintain multiple lists of parts, or "projects",' +' and add those parts as a group to a Quote Request or Shopping Cart. Project List allows you to organize parts' +' as you see fit and projects can be exported to an easy-to-use spreadsheet with enriched data.' +'' +'

[ Click to Close ]

';jQuery('.projectListBox .tableHead').html('
Project List What\'s this?
');jQuery('#plInfo').html(plText);jQuery('#whatsThis').click(function(){jQuery('#plInfo').fadeIn().click(function(){jQuery(this).fadeOut();});});}});