
var s_ajaxListener = new Object();
s_ajaxListener.loadCompleteCallback = function () {
    window.location="ajaxHandler://loadCompleteSrc=unknown";
};

/*
s_ajaxListener.requestSentCallback = function () {
	window.location="ajaxHandler://requestSentSrc=unknown";
};
*/

(function(open) {

    XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {

        this.addEventListener("readystatechange", function() {
            if ((this.readyState == 4) && (this.status == 200)) {
            setTimeout(s_ajaxListener.loadCompleteCallback, 100);
        }
        }, false);

        open.call(this, method, url, async, user, pass);
    };

})(XMLHttpRequest.prototype.open);

/*
(function(send) {

    XMLHttpRequest.prototype.send = function(method, url, async, user, pass) {

        s_ajaxListener.requestSentCallback();

        send.call(this, method, url, async, user, pass);
    };

})(XMLHttpRequest.prototype.send);

//change
*/