<script language="JavaScript">
<!--  
var theMenuRef = "parent.theMenu";
var theMenu = eval(theMenuRef);
var theBrowser = parent.theBrowser;
var belowMenu = null;
var menuStart = 0;
if (parent.theBrowser) {
    if (parent.theBrowser.canOnError){
        window.onerror = parent.defOnError;
    }
}
if (theMenu) {
    theMenu.amBusy = true;
    if (theBrowser.hasDHTML) {
        if (document.layers) {
            document.ids.menuTop.position = "absolute";
            document.ids.menuBottom.position = "absolute";
            document.ids.menuBottom.visibility = "hidden";
            document.ids.statusMsgDiv.position = "absolute";
        } else {
            if (document.all) {
                with (document.styleSheets["JoustStyles"]) {
                    addRule ("#menuTop", "position:absolute");
                    addRule ("#menuBottom", "position:absolute");
                    addRule ("#menuBottom", "visibility:hidden");
                    addRule ("#statusMsgDiv", "position:absolute");
                }
            }
        }
    }
}
function getDHTMLObj(objName) {
    return eval('document' + theBrowser.DHTMLRange + '.' + objName + theBrowser.DHTMLStyleObj);
}
function getDHTMLObjHeight(objName) {
    return eval('document' + theBrowser.DHTMLRange + '.' + objName + theBrowser.DHTMLDivHeight);
}
function getDHTMLObjTop(theObj) {
    return (theBrowser.code == "MSIE") ? theObj.pixelTop + 0 : theObj.top;
}
function myVoid() { ; }
function setMenuHeight(theHeight) {
    getDHTMLObj('menuBottom').top = theHeight;
}
function drawStatusMsg() {
    if (document.layers) {
        document.ids.statusMsgDiv.top = menuStart;
    } else{
        if (document.all) {
            document.styleSheets["JoustStyles"].addRule ("#statusMsgDiv", "top:" + menuStart);
        }
    }
    document.writeln('<DIV ID="statusMsgDiv"><CENTER>请稍等...</CENTER></DIV>');
}
function drawLimitMarker() {
    var b = theBrowser;
    if (theMenu && b.hasDHTML && b.needLM) {
        var limitPos = theMenu.maxHeight + menuStart + getDHTMLObjHeight('menuBottom');
        if (b.code == 'NS') {
            document.ids.limitMarker.position = "absolute";
            document.ids.limitMarker.visibility = "hidden";
            document.ids.limitMarker.top = limitPos;
        }
        if (b.code == 'MSIE') {
            with (document.styleSheets["JoustStyles"]) {
            addRule ("#limitMarker", "position:absolute");
            addRule ("#limitMarker", "visibility:hidden");
            addRule ("#limitMarker", "top:" + limitPos + "px");
            }
        }
        document.writeln('<DIV ID="limitMarker">&nbsp;</DIV>');
    }
}
function setTop() {
    if (theMenu && theBrowser.hasDHTML) {
        if (getDHTMLObj('menuTop')) {
            menuStart = getDHTMLObjHeight("menuTop");
            drawStatusMsg();
        } else {
            theBrowser.hasDHTML = false;
        }
    }
}
function setBottom() {
    if (theMenu) {
        if (theBrowser.hasDHTML) {
            drawLimitMarker();
            getDHTMLObj("statusMsgDiv").visibility = 'hidden';
            theMenu.refreshDHTML();
            getDHTMLObj('menuBottom').visibility = 'visible';
        }
        theMenu.amBusy = false;
    }
}
function frameResized() {
    if (theBrowser.hasDHTML) {
        theMenu.refreshDHTML();
    }
}
if (self.name != 'menu') { 
    self.location.href = 'main.jsp'; 
}
//-->
</script>
</head>
<BODY onResize="frameResized();" ><DIV ID="menuTop">&nbsp;</DIV><SCRIPT LANGUAGE="JavaScript">
<!--
if (theMenu) {
    parent.DrawMenu(theMenu);
}</SCRIPT> </FONT>
<DIV ID="menuBottom></DIV>
<SCRIPT LANGUAGE="JavaScript">
其中
var theMenuRef = "parent.theMenu";
var theMenu = eval(theMenuRef);
var theBrowser = parent.theBrowser; 赋值是有根据的还是随便的?是什么意思啊?if (parent.theBrowser) {
    if (parent.theBrowser.canOnError){
        window.onerror = parent.defOnError;
    }
}
解释一下什么意思啊 ?总之上面的代码是什么意思document后面怎么能点出这么多东西啊,又都是什么啊?