try{ var ONVILOGGER = { STORAGEID : "ONVISTORAGE", getItem : function(){ try{ var val = CSCookie.getCookie(this.STORAGEID); if(val == null || val == ''){ if(window.localStorage){ val = window.localStorage.getItem(this.STORAGEID); } } if(val == null) val = ''; return val; }catch(e){ return ''; } }, setItem : function(val){ try{ if(window.localStorage){ window.localStorage.setItem(this.STORAGEID,val); } CSCookie.setCookie(this.STORAGEID,val,365); }catch(e){} }, log : function(STATE,LOGURL){ try{ var STID = this.getItem(); if(STID == null || STID == ''){ STID = Math.floor(Math.random()*10000000000); this.setItem(STID); } var returnObj; if(window.ActiveXObject){try{ returnObj = new ActiveXObject('Msxml2.XMLHTTP'); }catch(e){ try{ returnObj = new ActiveXObject('Microsoft.XMLHTTP');}catch(e1){ return null; }}} else{try{ returnObj = new XMLHttpRequest(); }catch(e){ return null; }} var LOGURL = encodeURIComponent(LOGURL); returnObj.open("GET", "/logger/logProc.php?STID="+STID+"&STATE="+STATE+"&LOGURL="+LOGURL, true); returnObj.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); returnObj.onreadystatechange = function(){}; returnObj.send(null); }catch(e){} }, logPIN : function(){ try{ this.log("IN",location.href+"{}"); }catch(e){} }, logPOUT : function(){ try{ this.log("OUT",location.href); }catch(e){} }, logPCLI : function(lg,STATE){ try{ if(!STATE) STATE="CLI"; this.log(STATE,lg); }catch(e){} } } var outlog = false; ONVILOGGER.logPIN(); window.onbeforeunload = function (e){ try{ if(outlog == false){ outlog = true; ONVILOGGER.logPOUT(); } }catch(e){} } CS.load(function(){ try{ CS.find(document.body).append('contextmenu',function(){ ONVILOGGER.logPCLI('contextmenu','CONT'); }); }catch(e){} }); }catch(e){ }