	request = {
		mode: 1,
		req : null,
		init : function()
		{
		  var xmlhttp;
		  try
			{
		    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		  }
			catch (e)
			{
		    try
				{
		      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		    }
				catch (E)
				{
		      xmlhttp = false;
		    }
		  }
		  if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
			{
		    xmlhttp = new XMLHttpRequest();
		  }
			request.req = xmlhttp;
		},
		send : function(params, url, method)
		{
			this.req.open(method, url, true);
			this.req.onreadystatechange = function()
			{
				if (request.req.readyState == 4)
				{
		  		if (request.req.status == 200)
					{
						if (request.mode == 0)
						{
							alert(request.req.responseText);
						}
		  			eval(request.req.responseText)
		  		}
					else
					{
						alert('status: ' + request.req.status);
					}
  			}
		  }
			this.req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
			this.req.send(params);
		}
	}
	function onReadyStateChange()
	{
		if (request.req.readyState == 4)
		{
			if (request.req.status == 200)
			{
				if (request.mode == 0)
				{
					alert(request.req.responseText);
				}
				eval(request.req.responseText);
			}
			else
			{
				alert('status: ' + request.req.status);
			}
		}
	}
	request.init();

