function ReadXML(URL, CallBack)
{
var XmlHttp;
XmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
XmlHttp.onreadystatechange = GetCallBack(XmlHttp, CallBack);
XmlHttp.open("GET", URL, true);
XmlHttp.send(null);
}
function GetCallBack(XmlHttp, CallBack)
{
return function()
{
if (XmlHttp.readyState == 4)
{
if (XmlHttp.status==200)
{
var dom = new ActiveXObject('Microsoft.XMLDOM');
dom.loadXML(XmlHttp.responseText);