try{
	var ErrorLogger = (function(){
		var r=null;
		function doRequest(m,url){try{r.open(m,url,true);if(m=='POST'){r.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");r.send(arguments[2]);}else{r.send(null);}}catch(e){return;}}	
		function httpRequest(m,url){if(r==null){if(window.XMLHttpRequest){r=new XMLHttpRequest();}else if(window.ActiveXObject){r=new ActiveXObject("Msxml2.XHTTP")||new ActiveXObject("Microsoft.XMLHTTP")||null;if(!r){r=newActiveXObject("Microsoft.XHTTP");}}}if(r){var m=m.toUpperCase();if(m!='POST'){doRequest(m,url);}else{var a=arguments[2];if(a!=null&&a.length>0){doRequest(m,url,a);}}}else{return;}}
		function serialize(o,x){var s=[],p,v,k;for(p in o){k=x?x+"["+p+"]":p,v=o[p];s.push(typeof v=="object"?serialize(v,k):encodeURIComponent(k)+"="+encodeURIComponent(v));}return s.join("&");}
	
	    return {
			url : strHomeUrl + 'jsErrorTracker.ajax'
	        ,log	: function(o){if(typeof o != 'object')return;o.strUrl=o.strUrl||window.location.href;o.strReferrer=o.strReferrer||document.referrer;httpRequest('POST',this.url,serialize(o));}
			,logError : function(e){this.log({strErrorMessage:e.message||"",strErrorFile:e.fileName||"",intErrorLine:e.lineNumber||0,strErrorName:e.name||"",strErrorCode:e.number||0,strErrorStack:e.stack||""});}
	        ,init: function(){window.onerror = this.E;}
	        ,E	: function(strError, strFile, intLine){ErrorLogger.log({'strErrorMessage':strError||'','strErrorFile':strFile||'','intErrorLine':intLine||0,'strUrl':window.location.href});return true;}
	    };
	})();
	ErrorLogger.init();
}catch(e){/*ErrorLogger.logError(e);*/}

