	//alert("inside Ajax.js");	
		var Ajax = new Object();
		Ajax.isUpdating = true;

		Ajax.Request = function(method, url, query, callback)
		{
			this.isUpdating = true;
			this.callbackMethod = callback;
			this.request = (window.XMLHttpRequest)? new XMLHttpRequest(): new ActiveXObject("MSXML2.XMLHTTP");
			this.request.onreadystatechange = function() { Ajax.checkReadyState(); };

		//	if(method.toLowerCase() == 'get') 
			if (query!="") url = url+"?"+query;
			this.request.open(method, url, true);
			this.request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			//alert("sending "+url);
			this.request.send(url);
		}

		Ajax.checkReadyState = function(_id)
		{
			switch(this.request.readyState)
			{
				case 1: break;
				case 2: break;
				case 3: break;
				case 4:
					//alert(this.request.responseText);
					this.isUpdating = false;
					this.callbackMethod(this.request.responseXML.documentElement);
			}
		}


