// Javascript File
var __AjaxReq;
var __AjaxUrl;
function __AjaxInitXmlRequest() 
{ 
    if (window.XMLHttpRequest) { // Non-IE browsers 
        __AjaxReq = new XMLHttpRequest(); 
    } 
    else if (window.ActiveXObject){ // IE 
        __AjaxReq = new ActiveXObject("MSXML2.XMLHTTP"); 
    } 
}
function __AjaxGet(Url) //get data 
{
    __AjaxInitXmlRequest();
    if(__AjaxReq!=null) {  
        __AjaxReq.onreadystatechange = __AjaxProcessReqChange; 
        __AjaxReq.open("GET", Url, true);

        try
        {
            __AjaxReq.send(null);
        }
        catch (e)
        {
        
        }
    }
    
}
function __AjaxProcessReqChange() {
    // only if req shows "loaded"
    if (__AjaxReq.readyState == 4) {
        // only if "OK"
        if (__AjaxReq.status == 200) {
            // Add custom
            __AjaxProcessFunction(__AjaxReq.responseText);
        } else {
            alert("There was a problem retrieving the XML data:\n" + __AjaxReq.statusText + "Url=" +__AjaxUrl);
        }
    }
}