﻿var count = 0;
function Anthem_PreCallBack() {
    count++;
    setTimeout("CallBackStarted()", 500);
}
function Anthem_PostCallBack() {
    CallBackFinished();
}
function CallBackStarted() {
    if (count > 0) {
        var a = document.getElementById("wait");
        if (!window.XMLHttpRequest && document.documentElement) {
            a.style.position = "absolute";
            a.style.top = document.documentElement.scrollTop ? document.documentElement.scrollTop + 15 : 15;
            a.style.right = 15;
        }
        a.style.display = "block";
    }
}
function CallBackFinished() {
    count--;
    if (count == 0) {
        var a = document.getElementById("wait");
        if (a != null) {
            a.style.display = "none";
        }
    }
};
