xajax.realCall = xajax.call;
xajax.call = function(sFunction, aArgs, sRequestType)
    {
    //show the spinner
    	element = aArgs[0];
     this.$(element).style.display = 'inline';
     return this.realCall(sFunction, aArgs, sRequestType);
    }

xajax.realProcessResponse = xajax.processResponse;
xajax.processResponse = function(xml)
    {
        //hide the spinner
            this.$(element).style.display = 'none';
            //call the real processResponse function
            return this.realProcessResponse(xml);
        }
