var AjaxKeepAlive

//--------------------------------------------------------------------
// initiate_ajax()
//--------------------------------------------------------------------
function initiate_ajaxKeepAlive() {
    if (window.XMLHttpRequest) {
        AjaxKeepAlive = new XMLHttpRequest();
    }
    else if (window.ActiveXObject) {
        AjaxKeepAlive = new ActiveXObject("MSXML2.XMLHTTP");
    }
}

//--------------------------------------------------------------------
// keepAlive()
//--------------------------------------------------------------------
function keepAlive(strData) {
    initiate_ajaxKeepAlive();
    AjaxKeepAlive.open("POST", "/ajax/keep_alive.asp", true);
    AjaxKeepAlive.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    AjaxKeepAlive.onreadystatechange = function () { void (0); }
    strData = strData.replace(/ /g, "%20");
    AjaxKeepAlive.send(strData);
    return false;
}
