var ST_SRH_WAITING_SERVER=0;var ST_SRH_DOCUMENT_TYPE_SEARSH=1;var ST_SRH_SALE_INVOICE_ONLY_SEARCH=1;var ST_SRH_MAIN_SESSION_CNAME="SU_MAIN_SESSION_ID";var ST_SRH_MAIN_LAST_PAGE_CNAME="SRH_MAIN_LAST_PAGE_VISITED";var ST_SRH_MAIN_WHO_CALL="";var ST_SRH_MAIN_PAGE_PERMISSION="0000";var ST_SRH_LAST_MENU_CLICKED_CNAME="ST_SRH_LAST_MENU_CLICKED";var ST_ONLOAD_ATTRIBUTE="on-load-status";function validateIPaddress(ipaddress){const regexExp=/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/gi;return regexExp.test(ipaddress)}
function setFilterStatus(){var sdsg=sessionStorage.getItem('SU_DESKTOP_SILICA_GROUP');if(sdsg==null){sdsg=""}
var sdlv=sessionStorage.getItem('SU_DESKTOP_LOCAL_VERSION');if(sdlv==null){sdlv=""}
var sdk=sessionStorage.getItem('SU_DESKTOP_KEY');if(sdk==null){sdk=""}
var sdssynchk=sessionStorage.getItem('SSYNCH_DESKTOP_KEY');if(sdssynchk==null){sdssynchk=""}
var serverposition=-1;if(LICENSE_STATUS.hasOwnProperty('serverposition')){serverposition=LICENSE_STATUS.serverposition;if(isNaN(serverposition)){serverposition=-1}}
var FILTER={};FILTER.sdsg=sdsg;FILTER.sdlv=sdlv;FILTER.sdk=sdk;FILTER.sdssynchk=sdssynchk;FILTER.sessionId=getSessionId();FILTER.companyId=SYSTEM_USER_STATUS.companyId;FILTER.dependencyId=SYSTEM_USER_STATUS.workplaceId;FILTER.userId=SYSTEM_USER_STATUS.userId;FILTER.serverposition=serverposition;FILTER.startIdx=0;FILTER.pageItems=60;if(!getDesktopStatus()){var now=new Date();if(now.getDay()>0){if(now.getDay()<6){if((now.getHours()<7)||(now.getHours()>18)){FILTER.pageItems=60}else if(now.getHours()<9){FILTER.pageItems=50}else if(now.getHours()<17){FILTER.pageItems=40}else if(now.getHours()<=18){FILTER.pageItems=50}}}}
return FILTER}