function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("The content on this site is copyright protected.");
return false;
}

return true;
}
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;


// popup code
function openWin(pathfile, name, width, height,scroll){
        var win =
window.open(pathfile,name,"resizable=no,titlebar=0,status=yes,location=0,toolbar=no,width="+width+",height="+height+",scrollbars=0,top=100,left=50");
        if(win.opener == null)
                win.opener = window;
        if(document.images)
                win.focus()
        return false;
}

/*function centerWindow() {
    if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 640, yMax=480;

    var xOffset = (xMax - 200)/2, yOffset = (yMax - 200)/2;

    window.open('testpage.htm','myExample7',
    'width=200,height=200,screenX='+xOffset+',screenY='+yOffset+',
    top='+yOffset+',left='+xOffset+'');
}

centerWindow();
*/