| '+objXmlHttpRequest_dtl.responseText+' |
';}objXmlHttpRequest_nte=getXMLHttpRequest();objXmlHttpRequest_nte.open('GET','searchAssistant.asp?reqCls=getcustomernotesdetailhtml&responseType=readonly&key=Idtl&indexid=-1&columns=1&rowid='+encodeURIComponent(intRowId)+'&itemid='+encodeURIComponent(intItemId)+'&gradeid='+encodeURIComponent(intGradeId)+'&apluswarehouse='+encodeURIComponent(strAplusWarehouse)+'&refreshJavaFunction='+encodeURIComponent('doGetNotes('+intRowId+','+intItemId+','+intGradeId+')'),true);objXmlHttpRequest_nte.send(null);objXmlHttpRequest_nte.onreadystatechange=function(){doUpdateNotes(intRowId)};}}function doUpdateNotes(intRowId){try{if(objXmlHttpRequest_nte.readyState==4){if(objXmlHttpRequest_nte.status==200){if(objXmlHttpRequest_nte.responseText!=null&&objXmlHttpRequest_nte.responseText!=''){document.getElementById('divItemDetailNotes'+intRowId).innerHTML=objXmlHttpRequest_nte.responseText;}}}}catch(err){}}function doGetItmDtl3(int_doGetItmDtl_rowId,int_doGetItmDtl_itemId,str_doGetItmDtl_callBack){var dateNow= new Date();var intDiff=0;var strOptions='';if(bolWidthNarrow==true){strOptions=strOptions+',widthnarrow'}if(bolIsUserAuthenticated==true){strOptions=strOptions+',auth'}if(strBrowserClass>=1){if(aryItemAlternatesUpdatedRows[int_doGetItmDtl_rowId]!=false){var datStored= new Date(aryItemAlternatesUpdatedRows[int_doGetItmDtl_rowId]);intDiff= dateNow.getTime()-datStored.getTime().toString()*1;}if(intDiff==0||intDiff>=intItemStoreSeconds*1000){if(document.getElementById('divLderCmpltItm'+intItemRowId)!=undefined){document.getElementById('divLderItm'+int_doGetItmDtl_rowId).style.display='';document.getElementById('divLderCmpltItm'+int_doGetItmDtl_rowId).style.display='none';}objXmlHttpRequest_altItm=getXMLHttpRequest();objXmlHttpRequest_altItm.open('GET',strPath+'searchAssistant.asp?reqCls=getAlternateItems&options=useTabs&itemId='+encodeURIComponent(int_doGetItmDtl_itemId)+'&rowId='+encodeURIComponent(int_doGetItmDtl_rowId)+'&warehouseId='+encodeURIComponent(intWarehouseID),true);objXmlHttpRequest_altItm.send(null);objXmlHttpRequest_altItm.onreadystatechange=function() {doUpdateItmDtl3(str_doGetItmDtl_callBack)};intItemRowId=int_doGetItmDtl_rowId;}}}function doUpdateItmDtl3(str_doUpdateItmDtl3_callBack){try{if(objXmlHttpRequest_altItm.readyState==4){if(objXmlHttpRequest_altItm.status==200){if(objXmlHttpRequest_altItm.responseText!=null&&objXmlHttpRequest_altItm.responseText!=''){if(document.getElementById('divLderCmpltItm'+intItemRowId)!=undefined){document.getElementById('divLderItm'+intItemRowId).style.display='none';document.getElementById('divLderCmpltItm'+intItemRowId).style.display='';}aryItemAlternatesUpdatedRows[intItemRowId]=Date();if(document.getElementById('imgDtl3Ldg'+intItemRowId)){document.getElementById('imgDtl3Ldg'+intItemRowId).src='/img/oth/spacer.gif';}var aryResponse=objXmlHttpRequest_altItm.responseText.split('|~|');if(aryResponse[0].substr(0,3)=='ok:'){if(aryResponse[1]=='true'||aryResponse[2]=='true'){if(aryResponse[1]=='true'&&aryResponse[2]=='true'){strTabTitle='Larger size and alternate items';}else if(aryResponse[1]=='true'){strTabTitle='Larger size items';}else if(aryResponse[2]=='true'){strTabTitle='Alternate items';}var strIndex='';if(bolAlternateItems){strIndex=-1;}doUtilsTabsCreateNewTab('divCntnrItm'+intItemRowId,strIndex,strTabTitle,'alternateItems',aryResponse[3]);}if(str_doUpdateItmDtl3_callBack!=undefined){eval(str_doUpdateItmDtl3_callBack);}}}}}}catch(err){}}function doGetItmDtl5(int_doGetItmDtl_rowId,int_doGetItmDtl_itemId,str_doGetItmDtl_options,str_doGetItmDtl_groupId){var dateNow= new Date();var intDiff=0;var strOptions='';if(bolWidthNarrow==true){strOptions=strOptions+',widthnarrow'}if(bolIsUserAuthenticated==true){strOptions=strOptions+',auth'}if(strBrowserClass>=1){if(aryItemUpdatedRows[int_doGetItmDtl_rowId]!=false){var datStored= new Date(aryItemUpdatedRows[int_doGetItmDtl_rowId]);intDiff= dateNow.getTime()-datStored.getTime().toString()*1;}if(intDiff==0||intDiff>=intItemStoreSeconds*1000){document.getElementById('divItmDtl'+int_doGetItmDtl_rowId).innerHTML="
";objXmlHttpRequest=getXMLHttpRequest();objXmlHttpRequest.open('GET',strPath+'itemDetail.asp?groupId='+encodeURIComponent(str_doGetItmDtl_groupId)+'&options=nohead,'+str_doGetItmDtl_options+','+strOptions+'&itemId='+encodeURIComponent(int_doGetItmDtl_itemId)+'&warehouseId='+encodeURIComponent(intWarehouseID),true);objXmlHttpRequest.send(null);objXmlHttpRequest.onreadystatechange=doUpdateItmDtl5;intItemRowId=int_doGetItmDtl_rowId;}}}function doUpdateItmDtl5(){try{if(objXmlHttpRequest.readyState==4){if(objXmlHttpRequest.status==200){if(objXmlHttpRequest.responseText!=null&&objXmlHttpRequest.responseText!=''){aryItemUpdatedRows[intItemRowId]=Date();document.getElementById('divItmDtl'+intItemRowId).innerHTML=objXmlHttpRequest.responseText;}}}}catch(err){}}function doHandlerUptMultipleQty(){if(objXmlHttpRequest.readyState==4){if(objXmlHttpRequest.status==200){if(objXmlHttpRequest.responseText!=null){var aryResponse=objXmlHttpRequest.responseText.split("','");var intItemRowId=aryResponse[1];if(aryResponse[0].substr(1,3)=='ok:'){document.getElementById('sndBackgound').src='/snd/balloon.wav';document.getElementById('txtBoxOrdrQty'+strFormKey+intItemRowId).value=aryResponse[2];document.getElementById('lstBoxOrdrQtyUnit'+intItemRowId).selectedIndex=aryResponse[3];document.getElementById('lblOmsg'+intItemRowId).innerHTML=aryResponse[4];}else{if(aryResponse[0].substr(1,3)=='er:'){document.getElementById('lblOmsg'+intItemRowId).innerHTML=''+aryResponse[2];}else{document.getElementById('lblOmsg'+intItemRowId).innerHTML='unknown error'; }}document.getElementById('sndBackgound').src='/snd/balloon.wav';}}}}function doUpdateOrderQtyUnitPref(str_doUpdateOrderQtyUnitPref_unit,str_doUpdateOrderQtyUnitPref_index){if(!bolIsUserAddhoc&&strBrowserClass>=1&&!bolNotViewMsgSetOrderQtyUnit){bolNotViewMsgSetOrderQtyUnit=true;switch(str_doUpdateOrderQtyUnitPref_index){case 0:var msg = new DOMAlert({title: ' ',text: 'I always order in '+str_doUpdateOrderQtyUnitPref_unit+' (base unit).
');}else{setTabContent('divTabsContainer_grade','','myNotes','
');}}else{if(bolShared){setTabContent('divCntnrItm'+intItemRowId,'','customerNotes','
');}else{setTabContent('divCntnrItm'+intItemRowId,'','myNotes','
');}}objXmlHttpRequest_cnt=getXMLHttpRequest();objXmlHttpRequest_cnt.open('GET',strPath+'searchAssistant.asp?reqCls=getCustomerNotesHtml&itemId='+encodeURIComponent(int_doGetItmDtl_itemId)+'&gradeId='+encodeURIComponent(intGradeId)+'&indexId='+encodeURIComponent(intIndexId)+'&rowId='+encodeURIComponent(int_doGetItmDtl_rowId)+'&shared='+encodeURIComponent(bolShared),true);objXmlHttpRequest_cnt.send(null);objXmlHttpRequest_cnt.onreadystatechange=function(){doUpdateItmCustNte(int_doGetItmDtl_rowId,intGradeId,int_doGetItmDtl_itemId,bolShared)};}function doUpdateItmCustNte(intItemRowId,intGradeId,intItemId,bolShared){if(window.console){console.log('called function doUpdateItmCustNte(',intItemRowId,') // rowId')};try{if(objXmlHttpRequest_cnt.readyState==4){if(objXmlHttpRequest_cnt.status==200){if(objXmlHttpRequest_cnt.responseText!=null&&objXmlHttpRequest_cnt.responseText!=''){if(window.console){console.log('objXmlHttpRequest_cnt.response is valid')};if(intItemId=='0'||intItemId==''){if(bolShared){aryItemUpdatedCustomerNotes[0]=true;setTabContent('divTabsContainer_grade','','customerNotes',objXmlHttpRequest_cnt.responseText);}else{aryItemUpdatedCustomerNotesMy[0]=true;setTabContent('divTabsContainer_grade','','myNotes',objXmlHttpRequest_cnt.responseText);}}else{if(bolShared){aryItemUpdatedCustomerNotes[intItemRowId+1]=true;setTabContent('divCntnrItm'+intItemRowId,'','customerNotes',objXmlHttpRequest_cnt.responseText);}else{aryItemUpdatedCustomerNotesMy[intItemRowId+1]=true;setTabContent('divCntnrItm'+intItemRowId,'','myNotes',objXmlHttpRequest_cnt.responseText);}var skroll = new Fx.ScrollWindow({duration:1000,wait:false,transition:Fx.Transitions.sineInOut});skroll.toElement('skrlToItm'+intItemRowId);}var strOnLoadFunction='doSearchService_getCustomerNotes_onLoad'+bolShared+intItemRowId+'()';try{eval(strOnLoadFunction)}catch(ex){};}}}}catch(err){}}function doGetItmCustNteDtl(int_doGetItmDtl_rowId,int_doGetItmDtl_itemId,intGradeId,int_doGetItmDtl_indexId,bolShared,bolShowDeleted){if(strBrowserClass>=1){if(document.getElementById('scriptCustomerNotesDetail'+bolShared+int_doGetItmDtl_rowId)){try{document.getElementsByTagName('body')[0].removeChild(document.getElementById('scriptCustomerNotesDetail'+bolShared+int_doGetItmDtl_rowId));}catch(ex){}}var objElementScript=document.createElement('script');objElementScript.src=strPath+'searchAssistant.asp?reqCls=getCustomerNotesDetailJavaScript&indexId='+encodeURIComponent(int_doGetItmDtl_indexId)+'&aplusWarehouse='+encodeURIComponent(strAplusWarehouse)+'&itemId='+encodeURIComponent(int_doGetItmDtl_itemId)+'&gradeId='+encodeURIComponent(intGradeId)+'&rowId='+encodeURIComponent(int_doGetItmDtl_rowId)+'&showDeleted='+encodeURIComponent(bolShowDeleted)+'&shared='+encodeURIComponent(bolShared);objElementScript.type='text/javascript';objElementScript.id='scriptCustomerNotesDetail'+bolShared+int_doGetItmDtl_rowId;document.getElementsByTagName('head')[0].appendChild(objElementScript);document.getElementById('divItemCustomerNotesContainer'+bolShared+int_doGetItmDtl_rowId).innerHTML='
';objXmlHttpRequest_cntDtl=getXMLHttpRequest();objXmlHttpRequest_cntDtl.open('GET',strPath+'searchAssistant.asp?reqCls=getCustomerNotesDetailHtml&indexId='+encodeURIComponent(int_doGetItmDtl_indexId)+'&aplusWarehouse='+encodeURIComponent(strAplusWarehouse)+'&itemId='+encodeURIComponent(int_doGetItmDtl_itemId)+'&gradeId='+encodeURIComponent(intGradeId)+'&rowId='+encodeURIComponent(int_doGetItmDtl_rowId)+'&showDeleted='+encodeURIComponent(bolShowDeleted)+'&shared='+encodeURIComponent(bolShared),true);objXmlHttpRequest_cntDtl.send(null);objXmlHttpRequest_cntDtl.onreadystatechange=function(){doUpdateItmCustNteDtl(int_doGetItmDtl_rowId,int_doGetItmDtl_itemId,intGradeId,bolShared)};}}function doUpdateItmCustNteDtl(intItemRowId,intItemId,intGradeId,bolShared){try{if(objXmlHttpRequest_cntDtl.readyState==4){if(objXmlHttpRequest_cntDtl.status==200){if(objXmlHttpRequest_cntDtl.responseText!=null&&objXmlHttpRequest_cntDtl.responseText!=''){document.getElementById('divItemCustomerNotesContainer'+bolShared+intItemRowId).innerHTML=objXmlHttpRequest_cntDtl.responseText;var strOnLoadFunction='doSearchService_getCustomernotesDetail_onLoad'+bolShared+intItemRowId+'()';try{eval(strOnLoadFunction)}catch(ex){};}}}}catch(err){}}function doSaveCustomerItemNoteNew(int_doGetItmDtl_rowId,int_doGetItmDtl_itemId,intGradeId,int_doGetItmDtl_indexId,str_doGetItmDtl_noteText,strNoteColor,bolShared){if(strBrowserClass>=1){if(str_doGetItmDtl_noteText==''){document.getElementById('lblCustomerNoteNewStatus'+bolShared+int_doGetItmDtl_rowId).innerHTML='Can\'t save empty note.';}else if(str_doGetItmDtl_noteText.length>=513){document.getElementById('lblCustomerNoteNewStatus'+int_doGetItmDtl_rowId).innerHTML='Note is too long. Must be less than 513 characters.';}else{var strParams='reqCls=doSaveNote&indexId='+encodeURIComponent(int_doGetItmDtl_indexId);strParams=strParams+'&itemId='+encodeURIComponent(int_doGetItmDtl_itemId);strParams=strParams+'&gradeId='+encodeURIComponent(intGradeId);strParams=strParams+'&rowId='+encodeURIComponent(int_doGetItmDtl_rowId);strParams=strParams+'¬eText='+encodeURIComponent(str_doGetItmDtl_noteText);strParams=strParams+'¬eColor='+encodeURIComponent(strNoteColor);objXmlHttpRequest_cntUdt=getXMLHttpRequest();objXmlHttpRequest_cntUdt.onreadystatechange=function(){doHandlerSaveCustomerItemNoteNew(int_doGetItmDtl_rowId,int_doGetItmDtl_itemId,intGradeId,int_doGetItmDtl_indexId,bolShared)};objXmlHttpRequest_cntUdt.open('POST',strPath+'searchAssistant.asp',true);objXmlHttpRequest_cntUdt.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');objXmlHttpRequest_cntUdt.setRequestHeader('Content-length', strParams.length);objXmlHttpRequest_cntUdt.setRequestHeader('Connection', 'close');objXmlHttpRequest_cntUdt.send(strParams)}}}function doHandlerSaveCustomerItemNoteNew(intItemRowId,intItemId,intGradeId,intIndexId,bolShared){if(objXmlHttpRequest_cntUdt.readyState==4){if(objXmlHttpRequest_cntUdt.status==200){if(objXmlHttpRequest_cntUdt.responseText!=null){var aryResponse=objXmlHttpRequest_cntUdt.responseText.split('|~|');switch(aryResponse[0].substr(0,3)){case 'ok:':doGetItmCustNteDtl(intItemRowId,intItemId,intGradeId,intIndexId,bolShared);break;case 'er:':document.getElementById('lblCustomerNoteNewStatus'+bolShared+intItemRowId).innerHTML=aryResponse[1];break;default:document.getElementById('lblCustomerNoteNewStatus'+bolShared+intItemRowId).innerHTML='unknown error';break;}}else{document.getElementById('lblCustomerNoteNewStatus'+bolShared+intItemRowId).innerHTML='error (no response)'; }}}}function doUpdateCustomerItemNote(int_doGetItmDtl_rowId,int_doGetItmDtl_noteId,str_doGetItmDtl_noteText,strNoteColor,bolShared,strCollapseNoteFunction){if(strBrowserClass>=1){var strParams='reqCls=doUpdateNote¬eId='+encodeURIComponent(int_doGetItmDtl_noteId);strParams=strParams+'¬eText='+encodeURIComponent(str_doGetItmDtl_noteText);strParams=strParams+'¬eColor='+encodeURIComponent(strNoteColor);objXmlHttpRequest_cntUdt=getXMLHttpRequest();objXmlHttpRequest_cntUdt.onreadystatechange=function(){doHandlerUpdateCustomerItemNote(int_doGetItmDtl_rowId,int_doGetItmDtl_noteId,bolShared,strCollapseNoteFunction)};objXmlHttpRequest_cntUdt.open('POST',strPath+'searchAssistant.asp',true);objXmlHttpRequest_cntUdt.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');objXmlHttpRequest_cntUdt.setRequestHeader('Content-length', strParams.length);objXmlHttpRequest_cntUdt.setRequestHeader('Connection', 'close');objXmlHttpRequest_cntUdt.send(strParams)}}function doHandlerUpdateCustomerItemNote(intItemRowId,intNoteId,bolShared,strCollapseNoteFunction){if(objXmlHttpRequest_cntUdt.readyState==4){if(objXmlHttpRequest_cntUdt.status==200){if(objXmlHttpRequest_cntUdt.responseText!=null){var aryResponse=objXmlHttpRequest_cntUdt.responseText.split('|~|');switch(aryResponse[0].substr(0,3)){case 'ok:':eval(strCollapseNoteFunction);break;case 'er:':document.getElementById('lblCustomerNoteUpdateStatus'+bolShared+intItemRowId+'_'+intNoteId).innerHTML=aryResponse[1];break;default:document.getElementById('lblCustomerNoteUpdateStatus'+bolShared+intItemRowId+'_'+intNoteId).innerHTML='unknown error';break;}}else{document.getElementById('lblCustomerNoteUpdateStatus'+bolShared+intItemRowId+'_'+intNoteId).innerHTML='error (no response)';}}}}function doDeleteCustomerItemNote(int_doGetItmDtl_rowId,int_doGetItmDtl_noteId,strCollapseNoteFunction){if(strBrowserClass>=1){var strParams='reqCls=doDeleteNote¬eId='+encodeURIComponent(int_doGetItmDtl_noteId);objXmlHttpRequest_cntUdt=getXMLHttpRequest();objXmlHttpRequest_cntUdt.onreadystatechange=function(){doHandlerDeleteCustomerItemNote(int_doGetItmDtl_rowId,int_doGetItmDtl_noteId,strCollapseNoteFunction)};objXmlHttpRequest_cntUdt.open('POST',strPath+'searchAssistant.asp',true);objXmlHttpRequest_cntUdt.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');objXmlHttpRequest_cntUdt.setRequestHeader('Content-length', strParams.length);objXmlHttpRequest_cntUdt.setRequestHeader('Connection', 'close');objXmlHttpRequest_cntUdt.send(strParams)}}function doHandlerDeleteCustomerItemNote(intItemRowId,intNoteId,strCollapseNoteFunction){if(objXmlHttpRequest_cntUdt.readyState==4){if(objXmlHttpRequest_cntUdt.status==200){if(objXmlHttpRequest_cntUdt.responseText!=null){var aryResponse=objXmlHttpRequest_cntUdt.responseText.split('|~|');switch(aryResponse[0].substr(0,3)){case 'ok:':eval(strCollapseNoteFunction);break;case 'er:':document.getElementById('lblCustomerNoteUpdateStatus'+intItemRowId+'_'+intNoteId).innerHTML=aryResponse[1];break;default:document.getElementById('lblCustomerNoteUpdateStatus'+intItemRowId+'_'+intNoteId).innerHTML='unknown error';break;}}else{document.getElementById('lblCustomerNoteUpdateStatus'+intItemRowId+'_'+intNoteId).innerHTML='error (no response)';}}}}function doNotesNewFolder(int_doGetItmDtl_rowId,intItemId,intGradeId,strFolderName){if(strBrowserClass>=1){var strParams='reqCls=doNewFolder&folderName='+encodeURIComponent(strFolderName);objXmlHttpRequest_cntUdt=getXMLHttpRequest();objXmlHttpRequest_cntUdt.onreadystatechange=function(){doHandlerNotesNewFolder(int_doGetItmDtl_rowId,intItemId,intGradeId)};objXmlHttpRequest_cntUdt.open('POST',strPath+'searchAssistant.asp',true);objXmlHttpRequest_cntUdt.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');objXmlHttpRequest_cntUdt.setRequestHeader('Content-length', strParams.length);objXmlHttpRequest_cntUdt.setRequestHeader('Connection', 'close');objXmlHttpRequest_cntUdt.send(strParams)}}function doHandlerNotesNewFolder(intItemRowId,intItemId,intGradeId){if(objXmlHttpRequest_cntUdt.readyState==4){if(objXmlHttpRequest_cntUdt.status==200){if(objXmlHttpRequest_cntUdt.responseText!=null){var aryResponse=objXmlHttpRequest_cntUdt.responseText.split('|~|');switch(aryResponse[0].substr(0,3)){case 'ok:':doGetItmCustNte(intItemRowId,intItemId,intGradeId,'',true,false);break;case 'er:':document.getElementById('lblCustomerNotes_folders_status'+intItemRowId+'_'+intNoteId).innerHTML=aryResponse[1];break;default:document.getElementById('lblCustomerNotes_folders_status'+intItemRowId+'_'+intNoteId).innerHTML='unknown error';break;}}else{document.getElementById('lblCustomerNotes_folders_status'+intItemRowId+'_'+intNoteId).innerHTML='error (no response)';}}}}function doNotesRenameFolder(int_doGetItmDtl_rowId,intIndexId,intItemId,strFolderName){if(strBrowserClass>=1){var strParams='reqCls=doRenameFolder&folderName='+encodeURIComponent(strFolderName);strParams=strParams+'&indexId='+encodeURIComponent(intIndexId);objXmlHttpRequest_cntUdt=getXMLHttpRequest();objXmlHttpRequest_cntUdt.onreadystatechange=function(){doHandlerNotesRenameFolder(int_doGetItmDtl_rowId,intItemId,intIndexId)};objXmlHttpRequest_cntUdt.open('POST',strPath+'searchAssistant.asp',true);objXmlHttpRequest_cntUdt.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');objXmlHttpRequest_cntUdt.setRequestHeader('Content-length', strParams.length);objXmlHttpRequest_cntUdt.setRequestHeader('Connection', 'close');objXmlHttpRequest_cntUdt.send(strParams)}}function doHandlerNotesRenameFolder(intItemRowId,intItemId,intIndexId){if(objXmlHttpRequest_cntUdt.readyState==4){if(objXmlHttpRequest_cntUdt.status==200){if(objXmlHttpRequest_cntUdt.responseText!=null){var aryResponse=objXmlHttpRequest_cntUdt.responseText.split('|~|');switch(aryResponse[0].substr(0,3)){case 'ok:':doGetItmCustNte(intItemRowId,intItemId,intIndexId,true,false);break;case 'er:':document.getElementById('lblCustomerNotes_renameFolders_status'+intItemRowId).innerHTML=aryResponse[1];break;default:document.getElementById('lblCustomerNotes_renameFolders_status'+intItemRowId).innerHTML='unknown error';break;}}else{document.getElementById('lblCustomerNotes_renameFolders_status'+intItemRowId).innerHTML='error (no response)';}}}}function doNotesDeleteFolder(int_doGetItmDtl_rowId,intIndexId,intItemId){if(strBrowserClass>=1){var strParams='reqCls=doDeleteFolder&indexId='+encodeURIComponent(intIndexId);objXmlHttpRequest_cntUdt=getXMLHttpRequest();objXmlHttpRequest_cntUdt.onreadystatechange=function(){doHandlerNotesDeleteFolder(int_doGetItmDtl_rowId,intItemId)};objXmlHttpRequest_cntUdt.open('POST',strPath+'searchAssistant.asp',true);objXmlHttpRequest_cntUdt.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');objXmlHttpRequest_cntUdt.setRequestHeader('Content-length', strParams.length);objXmlHttpRequest_cntUdt.setRequestHeader('Connection', 'close');objXmlHttpRequest_cntUdt.send(strParams)}}function doHandlerNotesDeleteFolder(intItemRowId,intItemId){if(objXmlHttpRequest_cntUdt.readyState==4){if(objXmlHttpRequest_cntUdt.status==200){if(objXmlHttpRequest_cntUdt.responseText!=null){var aryResponse=objXmlHttpRequest_cntUdt.responseText.split('|~|');switch(aryResponse[0].substr(0,3)){case 'ok:':doGetItmCustNte(intItemRowId,intItemId,0,true,true,false);break;case 'er:':document.getElementById('lblCustomerNotes_deleteFolder_status'+intItemRowId).innerHTML=aryResponse[1];break;default:document.getElementById('lblCustomerNotes_deleteFolder_status'+intItemRowId).innerHTML='unknown error';break;}}else{document.getElementById('lblCustomerNotes_deleteFolder_status'+intItemRowId).innerHTML='error (no response)';}}}}function doNotesAgreement(int_doGetItmDtl_rowId,intItemId){if(strBrowserClass>=1){var strParams='reqCls=doSetPreference&key=ntTrm&value=True';objXmlHttpRequest_cntUdt=getXMLHttpRequest();objXmlHttpRequest_cntUdt.onreadystatechange=function(){doHandlerNotesAgreement(int_doGetItmDtl_rowId,intItemId)};objXmlHttpRequest_cntUdt.open('POST',strPath+'searchAssistant.asp',true);objXmlHttpRequest_cntUdt.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');objXmlHttpRequest_cntUdt.setRequestHeader('Content-length', strParams.length);objXmlHttpRequest_cntUdt.setRequestHeader('Connection', 'close');objXmlHttpRequest_cntUdt.send(strParams)}}function doHandlerNotesAgreement(intItemRowId,intItemId){if(objXmlHttpRequest_cntUdt.readyState==4){if(objXmlHttpRequest_cntUdt.status==200){if(objXmlHttpRequest_cntUdt.responseText!=null){switch(objXmlHttpRequest_cntUdt.responseText.substr(0,3)){case 'ok:':doGetItmCustNte(intItemRowId,intItemId,0,true,true,false);break;case 'er:':alert('error while attempting to set preference (doNotesAgreement)');break;default:alert('unknown error while attempting to set preference (doNotesAgreement)');break;}}else{alert('no response error while attempting to set preference (doNotesAgreement)');}}}}function doSearchHelp(){if(document.getElementById('divPaperSearchHelp').innerHTML==''){document.getElementById('divPaperSearchHelp').innerHTML='Search Criteria: