function loadXMLDoc(dname)
{
var xmlDoc;
// for internet explorer use this code
if (window.ActiveXObject)
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
// for Mozilla, Firefox, Opera, etc. use this code
else if (document.implementation && document.implementation.createDocument)
{
xmlDoc=document.implementation.createDocument("","",null);
}
else
{
alert('Your browser does not support loading xml file dynamically');
}
xmlDoc.async=false;
xmlDoc.load(dname);
return(xmlDoc);
}
