/** XMLHTTP **/
if (!window.XMLHttpRequest) 
{
	window.XMLHttpRequest = function()
	{
		var xmlhttp = null;
		try 
		{ 
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.4.0");
		} 
		catch (e) 
		{
			try 
			{ 
				xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");
			} 
			catch (e)
			{
				try 
				{ 
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				} 
				catch (e)
				{}
			}
		}
		return xmlhttp;
	}
}



function Request(callback) 
{
	this.xmlhttp = new XMLHttpRequest();
	this.post = function (url, args)
	{
		this.xmlhttp.open("post", url, true);
		this.xmlhttp.setRequestHeader("Method", "POST " + url + " HTTP/1.1");
		//this.xmlhttp.setRequestHeader("Charset","gb2312");
		this.xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		this.xmlhttp.onreadystatechange = callback;
		this.xmlhttp.send(args);
	}

	this.get = function (url)
	{
		this.xmlhttp.open("get", url, true);
		this.xmlhttp.onreadystatechange = callback;
		this.xmlhttp.send(null);
	}
}

function $(id)
{
	return document.getElementById(id);
}