function errorHandler(n,t,i){var o;try{var r=null,u=null,f=null,e=null;typeof navigator!="undefined"&&(typeof navigator.userAgent!="undefined"&&(r=navigator.userAgent),typeof navigator.cookiesEnabled!="undefined"&&(u=navigator.cookiesEnabled),typeof navigator.platform!="undefined"&&(f=navigator.platform));typeof window!="undefined"&&typeof window.location!="undefined"&&typeof window.location.href!="undefined"&&(e=window.location.href);n!=null&&(n=n.toString());typeof $!="undefined"&&typeof $.ajax!="undefined"&&(o={message:n,url:t,line:i,userAgent:r,cookiesEnabled:u,platform:f,location:e},$.ajax({data:JSON.stringify(o),type:"POST",contentType:"application/json; charset=utf-8",url:"/WebLogger/LogJavascriptError",dataType:"json"}))}catch(s){}}window.onerror=errorHandler