//var xmlDoc; //assumed to exist
//Used for populating without invoking event 
function loadXmlDocument(xmlFile, cbFun)
{
   if( window.ActiveXObject && /Win/.test(navigator.userAgent) )
   {
      xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
      xmlDoc.async = false;
      xmlDoc.load(xmlFile);
      cbFun(xmlDoc);
      return true;
   }
   else if (document.implementation!='undefined' && document.implementation.createDocument!='undefined')
   {
      xmlDoc= document.implementation.createDocument("", "", null);
      xmlDoc.load(xmlFile);
      xmlDoc.onload = function()
      {
         cbFun(xmlDoc);
      }
      return true;
   }
   else
   {
      return false;
   }
}


