var ary_doGetDivContents_tracker= new Array(false,false,false,false,false);var int_doUpdateDivContents_trackerIndex;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;document.getElementById('sndBackgound').src='/snd/navigationstart.wav';if(!ary_doGetDivContents_tracker[int_doGetDivContents_trackerIndex]){objXmlHttpRequest=getXMLHttpRequest();objXmlHttpRequest.open('GET','/catalog/searchAssistant.asp?reqCls='+encodeURIComponent(str_doGetDivContents_reqCls)+'&warehouseId='+encodeURIComponent(intWarehouseID),true);objXmlHttpRequest.send(null);objXmlHttpRequest.onreadystatechange=function(){doUpdateDivContents(str_doGetDivContents_div)};}}}function doUpdateDivContents(strContentsDiv){try{if(objXmlHttpRequest.readyState==4){if(objXmlHttpRequest.status==200){if(objXmlHttpRequest.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(); }