/// var XML = new function() { this.load = function(dname) { if (window.XMLHttpRequest) { xhttp = new XMLHttpRequest(); } else { xhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xhttp.open("GET", dname, false); xhttp.send(); var doc=null; if (xhttp.status!=200) return null; if (xhttp.responseXML!=null) doc = xhttp.responseXML; else { var sXml = xhttp.responseText; if (window.ActiveXObject){ doc=new ActiveXObject('Microsoft.XMLDOM'); doc.async='false'; doc.loadXML(sXml); } else { var parser=new DOMParser(); doc=parser.parseFromString(sXml,'text/xml'); } } return doc; }; };