var ary_doGetDivContents_tracker= new Array(false,false,false,false,false);var int_doUpdateDivContents_trackerIndex;function doOnload(){document.getElementById('thebody').style.display='';if(!bol_isUserCustomerGroup&&(!bol_isUserEmployee&&bol_isUserLinked||bol_isUserEmployee&&bol_isUserImpersonating)){doCustomerItemNumbersExist();}doResetTimer();doStartTimer();try{doPrefetch0()}catch(ex){}}function getScriptCounter(){intScriptCounter ++;return 'scriptForce'+intScriptCounter;}function doGetDivContents(int_doGetDivContents_trackerIndex,str_doGetDivContents_reqCls,str_doGetDivContents_div){if(!ary_doGetDivContents_tracker[int_doGetDivContents_trackerIndex]){str_doUpdateDivContents_div=str_doGetDivContents_div;int_doUpdateDivContents_trackerIndex=int_doGetDivContents_trackerIndex;if(!ary_doGetDivContents_tracker[int_doGetDivContents_trackerIndex]){objXmlHttpRequest=getXMLHttpRequest();with(objXmlHttpRequest){open('GET','/catalog/searchAssistant.asp?reqCls='+encodeURIComponent(str_doGetDivContents_reqCls)+'&warehouseId='+encodeURIComponent(intWarehouseID)+'&'+getScriptCounter(),true);send(null);onreadystatechange=function(){doUpdateDivContents(str_doGetDivContents_div)};}}}}function doUpdateDivContents(strContentsDiv){try{with(objXmlHttpRequest){if(readyState==4){if(status==200){if(responseText!=null&&objXmlHttpRequest.responseText!=''){ary_doGetDivContents_tracker[int_doUpdateDivContents_trackerIndex]=true;document.getElementById(strContentsDiv).innerHTML=objXmlHttpRequest.responseText;}}}}}catch(err){}}function doUpdateTimer(){if(intTimerID){clearTimeout(intTimerID);clockID=0;}if(!strStartTime){strStartTime= new Date();}var tDate= new Date();var tDiff= tDate.getTime()-strStartTime.getTime();tDate.setTime(tDiff);intTimerID=setTimeout('doUpdateTimer()',1000);if (tDate.getSeconds()==6||bolAddFirst==false){if(document.theform.imgAdd){document.theform.imgAdd.src=aryImage[intAddCounter];document.theform.imgAdd.alt=aryTitle[intAddCounter];}intAddCounter=intAddCounter+1;if(intAddCounter==intAddCount){intAddCounter=0;}bolAddFirst=true;doResetTimer();}}function doPreviousAdd(){doStopTimer();intAddCounter=intAddCounter-1;if (intAddCounter<=0){intAddCounter=intAddCount}if(document.theform.imgAdd){document.theform.imgAdd.src=aryImage[intAddCounter-1];document.theform.imgAdd.alt=aryTitle[intAddCounter-1];}doResetTimer();doStartTimer();}function doStartTimer(){strStartTime = new Date();intTimerID = setTimeout('doUpdateTimer()',1000)}function doStopTimer(){if(intTimerID){clearTimeout(intTimerID);intTimerID=0;}strStartTime=null;}function doResetTimer(){strStartTime=null}function doPB(strButtonPressed){document.theform.buttonPressed.value=strButtonPressed;if(document.getElementById('lblWorking')){document.getElementById('lblWorking').innerHTML='Working ...';}document.theform.submit();}function doCustomerItemNumbersExist(){if(strBrowserClass>=1){objXmlHttpRequest_cusItm=getXMLHttpRequest();with(objXmlHttpRequest_cusItm){open('GET','/catalog/searchAssistant.asp?reqCls=doCustomerItemNumbersExist&'+getScriptCounter(),true);send(null);onreadystatechange=doHandlerCustomerItemNumbersExist;}}else{alert('Your browser does not support this feature.');}}function doHandlerCustomerItemNumbersExist(){try{with(objXmlHttpRequest_cusItm){if(readyState==4){if(status==200){if(responseText!=null&&responseText!=''){if(responseText.substr(0,2)=='ok'){var aryResponse=responseText.split(':');if(aryResponse[2]=='true'){doCnTbEnbl('txtBoxPaperSearchYourItem');}else{doCnTbDsbl('txtBoxPaperSearchYourItem');}}}}}}}catch(err){}}