xajax.realProcessResponse = xajax.processResponse;
xajax.realCall = xajax.call;
xajax.realReplace = xajax.replace;
xajax.realWillChange = xajax.willChange;

xajax.afterProcessResponse = function() {
//	console.log(this, xajax);
}

xajax.processResponse = function(xml) {
	var ret = this.realProcessResponse(xml);
	this.afterProcessResponse();
	return ret;
}

xajax.call = function(a, b, c) {
	this.strFunction = a;					// that's why we're extending it
	var ret = this.realCall(a, b, c);
	return ret;
}

xajax.replace = function(sId,sAttribute,sSearch,sReplace) {
	this.realReplace(sId,sAttribute,sSearch,sReplace);
}

xajax.willChange = function(element, attribute, newData) {
	//alert(element);
	if (this.$(element)) {
	  	this.$(element).className = "";
	}
  	var ret = this.realWillChange(element, attribute, newData);
  	return ret;
}

xajax.doneLoadingFunction = function () {
	//console.log(xajax);
}
