/** AJAX functions for request and respose */
//keep around the old call function
if (xajax != undefined)
{
	xajax.realCall = xajax.call;
	//override the call function to bend to our wicked ways
	xajax.call = function(sFunction, aArgs, sRequestType)
	{
		//call the old call function
		if (document.getElementById('pleasewait'))
			document.getElementById('pleasewait').style.visibility='visible';
		return this.realCall(sFunction, aArgs, sRequestType);
	
	}
	//save the old processResponse function for later
	xajax.realProcessResponse = xajax.processResponse;
	//override the processResponse function
	xajax.processResponse = function(xml)
	{
		//call the real processResponse function
		if (document.getElementById('pleasewait'))
			document.getElementById('pleasewait').style.visibility='hidden';
		return this.realProcessResponse(xml);
	}
}
/** AJAX functions for request and respose */
