﻿// JScript File

String.prototype.ReplaceAll = function(stringToFind,stringToReplace){
    var temp = this;
     var index = temp.indexOf(stringToFind);
        while(index != -1){
            temp = temp.replace(stringToFind,stringToReplace);
            index = temp.indexOf(stringToFind);
        }
        return temp;
    }

  var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); 
function loadXML(xmlFile) 
{ 
 xmlDoc.async="false"; 
 xmlDoc.load(xmlFile); 
 xmlObj=xmlDoc.documentElement; 
}
function News()
{
loadXML('XMLNews.xml');
document.getElementById("mrq").innerHTML=xmlObj.childNodes(0).xml.ReplaceAll("$","&"); 
loadXML('XMLAcheiver.xml');
document.getElementById("acheiver").innerHTML=xmlObj.childNodes(0).xml.ReplaceAll("$","&"); 
}



