var xmlDoc; 

//Chargement du fichier XML
function loadXML(xmlFile)
{
// code for IE
if (window.ActiveXObject)
    {
    xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    xmlDoc.async="false";
    while(xmlDoc.readyState != 4) {}; 
    xmlDoc.load(xmlFile);
    xmlObj=xmlDoc.documentElement;
    start();
    }
// code for Mozilla, etc.
else if (document.implementation && document.implementation.createDocument)
    {    
    xmlDoc= document.implementation.createDocument("","",null);
    xmlDoc.onload = start;
    xmlDoc.load(xmlFile);
    xmlObj=xmlDoc.documentElement;
    }
else
    {
    alert("Your navigator is not compatible with XML data loading.");
    }
}

