function ObtainXML(Sql)
	{
	var XmlHttp = null;
	if (window.ActiveXObject)
		{
		XmlHttp = new ActiveXObject("Msxml2.XMLHTTP.3.0")
		}
	else if (window.XMLHttpRequest)
		{
		XmlHttp = new XMLHttpRequest()
		}
	if (XmlHttp!=null)
		{
		var Url = "http://" + ThisServer + "/SQLPost.aspx";
		XmlHttp.open("POST", Url, false);
		XmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
		XmlHttp.send("SqlStr=" + Sql);
		return XmlHttp;
		}	
	}
