/*
<b>LoadXML(xmlFile)</b>
written by Matt Pressnall 09/26/2005

<b>What does it do?</b>
Reads an XML file (cross browser) and returns an XML document

<b>How do I use it?</b>
(call to JS file needs to be on a page only once)
&lt;script src="/js/standardFunctionality/LoadXML.js"&gt;&lt;/script&gt; 
var xmlDocument = LoadXML("somexml.xml");

<i>Parameters:</i>
xmlFile - with or without HTTP...must be accessible by web browser, though
*/


function LoadXML (xmlFile) {
    var httpRequest;
    if (typeof ActiveXObject != 'undefined') {
      httpRequest = new ActiveXObject('Microsoft.XMLHTTP');
    }
    else if (typeof XMLHttpRequest != 'undefined') {
      httpRequest = new XMLHttpRequest();
    }
    if (httpRequest) {
      httpRequest.open('GET', xmlFile, false);
      httpRequest.send(null);
      return httpRequest.responseXML;
    }
    else {
      return void 0;
    }
}
