(function(){function u(r,u,f,e,o){if(!(++t>n)){var h=(((new Date).valueOf()-i)/1e3).toString(),s=new XMLHttpRequest;s.open("POST","/Error/CaptureClientSideException");s.setRequestHeader("Content-Type","application/x-www-form-urlencoded");s.send("Message="+encodeURIComponent(r)+"&Error="+encodeURIComponent(o)+"&Url="+encodeURIComponent(u)+"&Line="+encodeURIComponent(f)+"&Col="+encodeURIComponent(e)+"&PageAgeSeconds="+h)}}var n=5,t=0,i=(new Date).valueOf(),r=window.onerror||function(){};window.onerror=function(n,t,i,f,e){try{typeof n=="object"&&(n=JSON.stringify(n));u(n,t,i,f,e)}catch(o){}r(n,t,i,f,e)}})()