
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;


function right(e) {
    if (navigator.appName == 'Netscape' &&     (e.which == 3 || e.which == 2)) {
        alert("You cannot use the right button on the mouse.");
    return false;
    }
    else if (navigator.appName == 'Microsoft Internet Explorer' &&  (event.button == 2 || event.button == 3)) {
        alert("You cannot use the right button on the mouse.");
    return false;
    }
return true;
}

