(function () {
try {
    /* supported by IE and FF only */
    /* filtering out xpopup.js (caused by CA Personal Firewall ?) */
    window.onerror = function (msg, url, line) {
        if(url && url.indexOf("http://127.0.0.1:37935/xpopup.js")===-1) {
            var logMsg = msg + " [" + url + " " + line + "]",
                img = new Image(),
                enc = function(s){return encodeURIComponent(s);};
            try {
                img.src = "LoggerHandler.aspx?msg="+ enc(logMsg) +"&url="+ enc(window.location.href) +"&agent="+ 
                          enc(window.navigator.userAgent) + "&platform=" + enc(window.navigator.platform);
            } catch (e) {}
        }
        return true;
    };
} catch(err) {}
}());
