function XMLHttpReq()
{
	var httpReq;
	var isActiveX=false;
	try
	{
		httpReq = new ActiveXObject("MSXML2.XMLHTTP.4.0");
		isActiveX=true;
	}
	catch(e)
	{
		try
		{
			httpReq = new XMLHttpRequest();
		}
		catch(e)
		{
			try
			{
				httpReq = new ActiveXObject("MSXML2.XMLHTTP.3.0");
				isActiveX=true;
			}
			catch(e)
			{
				return null;
			}
		}
	}
	if(httpReq)
	{
		if(!isActiveX)
		{
			if(!httpReq.Open)
			{
				httpReq.Open=function(method, url, async){ this.open(method, url, async);}
			}
			if(!httpReq.Send)
			{
				httpReq.Send=function(XMLobj){ this.send(XMLobj);}
			}
		}
	}
	return httpReq;
}

