
function loadXMLDocument( url ) {
      if ( window.ActiveXObject ) // IE7
      {
         // create IE7-specific XML document object
        doc = new ActiveXObject( "Msxml2.DOMDocument.6.0" );
        doc.async = false; // specifies synchronous loading of XML doc
        doc.loadXML( url ); // load the XML document specified by url
        browser = "IE7"; // set browser 
		return doc;
      } // end if
      else if ( document.implementation && document.implementation.createDocument ) // other browsers
      {
         // create XML document object
		parser=new DOMParser();
		doc=parser.parseFromString(url,"text/xml");
        browser = "FF2"; // set browser 
		return doc;
      } // end else
      else // not supported
        alert( 'This script is not supported by your browser' );
		return false;
} // end function loadXMLDocument