function parseXml(theXml) {
	try {
		xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
	}
	catch(e)
		{
		try {
			xmlDoc=document.implementation.createDocument("","",null);
		}
		catch(e)
		{
			alert(e.message);
			return;
		}
	}

	var xmlhttp = new window.XMLHttpRequest();
	xmlhttp.open("GET",theXml,false);
	xmlhttp.send(null);
	xmlDoc = xmlhttp.responseXML.documentElement;
	return xmlDoc;
}