
                    }
                    IsLoading = false;
                } catch (ex) {
                    debugLogIt("MenuFrame LoadMenu: " + ex.message);
                    IsLoading = false;
                    setTimeout("LoadMenu()", 100);
                    callback += 1;
                }
            }
        }

        var rsTimer;
        function checkReadyState(curFrm, exeFunct) {
            try {
                clearTimeout(rsTimer);
                if (curFrm.document.readyState === 