function loadXMLDoc(dname)
{
	var xmlDoc;
	if (window.XMLHttpRequest)
	{
		xmlDoc= new window.XMLHttpRequest();
		xmlDoc.open("GET", dname, false);
		xmlDoc.send("");
		return xmlDoc.responseXML;
	}
	else if (ActiveXObject("Microsoft.XMLDOM"))
	{
		xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
		xmlDoc.async = false;
		xmlDoc.load(dname);
		return xmlDoc;
	}
	alert("Error loading document");
	return null;
}

