/* REMOVE *** old function - does not work in IE6
function loadXMLDoc(dname) {
	var xmlDoc;
	if (window.XMLHttpRequest) {
		xmlDoc=new window.XMLHttpRequest();
		xmlDoc.open("GET",dname,false);
		xmlDoc.send("");
		return xmlDoc.responseXML;
		
	// IE 5 and IE 6
	} else if (ActiveXObject("Microsoft.XMLDOM")) {
		xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
		xmlDoc.async=false;
		xmlDoc.load(dname);
		return(xmlDoc);
	}
	alert("Error loading document");
	return null;
}
*/
	
function loadXMLDoc(dname) {
    //Internet Explorer
    try {
        xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
    } catch(e) {
        //Firefox, Mozilla, Opera, etc.
        try {
            //xmlDoc=document.implementation.createDocument("","",null); //does not work in Safari so replace with next 4 lines below
            xmlDoc=new window.XMLHttpRequest();
            xmlDoc.open("GET",dname,false);
            xmlDoc.send("");
            return xmlDoc.responseXML;
        } catch(e) {
            //alert("error msg 1: "+e.message)
        }
    } try {
        xmlDoc.async=false;
        xmlDoc.load(dname);
        return(xmlDoc);
    } catch(e) {
        //alert("error msg 2: "+e.message)
    }
    return(null);
}
