function getName(url)
{
  var oXmlHttp = new_object();
  oXmlHttp.Open("POST", url, false);
  oXmlHttp.setRequestHeader("Content-Type", "text/xml");
  oXmlHttp.setRequestHeader("charset", "utf-8");
  oXmlHttp.Send();
  var text=oXmlHttp.responseText;
  delete oXmlHttp;
  return text;
}

function new_object() {
	var RetValue;
	try {
			RetValue = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
		try {
		RetValue = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (oc) {
		RetValue = null;
		}
	}
	if(!RetValue && typeof XMLHttpRequest != "undefined")
		RetValue = new XMLHttpRequest();
		if (!RetValue)
			dvajax_debug("Could not create connection object.");
		return RetValue;
}
