				//Overridung the xajax.call and request function, this is for implementing
				//the wait signal in containerid
            xajax.oldGetRequestObject = xajax.getRequestObject;
            xajax.getRequestObject = function()
            {
                this.lastRequestObject= this.oldGetRequestObject();
                return this.lastRequestObject;
            }
            xajax.realCall = xajax.call;
            xajax.call = function(sF, aA, sR,iceId)
            {
               
                var returnVal;
                var r;
                returnVal = this.realCall(sF,aA,sR);
                r = this.lastRequestObject;
                r.onreadystatechange = function()
                {
                    
                    if (r.readyState != 4)
											return;
										
										if (r.status==200)
										{
											if (xajaxDebug) xajax.DebugMessage("Received:\n" + r.responseText);
											if (r.responseXML && r.responseXML.documentElement)
												xajax.processResponse(r.responseXML,iceId);
											else {
												var errorString = "Error: the XML response that was returned from the server is invalid.";
												errorString += "\nReceived:\n" + r.responseText;
												trimmedResponseText = r.responseText.replace( /^\s+/g, "" );// strip leading space
												trimmedResponseText = trimmedResponseText.replace( /\s+$/g, "" );// strip trailing
												if (trimmedResponseText != r.responseText)
													errorString += "\nYou have whitespace in your response.";
												alert(errorString);
												document.body.style.cursor = 'default';
												if (xajaxStatusMessages == true) window.status = 'Invalid XML response error';				
											}
										}
										else {
											if (xajax.responseErrorsForAlert.containsValue(r.status)) {
												var errorString = "Error: the server returned the following HTTP status: " + r.status;
												errorString += "\nReceived:\n" + r.responseText;
												alert(errorString);
											}
											document.body.style.cursor = 'default';
											if (xajaxStatusMessages == true) window.status = 'Invalid XML response error';								
										}
										
										       

                    delete r;
                    r = null;
                }
                return returnVal;
            }
            xajax.realProcess = xajax.processResponse;
            xajax.processResponse = function(xml, iceId)
            {
               finishAjaxRequest(iceId);
                return this.realProcess(xml);
            }