﻿
function click(e) {
    if (document.all) {
        if (event.button == 2 || event.button == 3) {
            oncontextmenu = 'return false';
        }

    }
    if (document.layers) {//NNS下的
        if (e.which == 3) {
            oncontextmenu = 'return false';
        }
    }
}
if (document.layers) {
    document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown = click;
document.oncontextmenu = new Function("return false;")

function AutoResizeHeight() {
    try {
        var control = window.navigator.createFrame(this);
        control.resizeHeight();
    } catch (ex) { }
}