
// RIGHTCLICK DISABLED-NO ALERT
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// FINE CODICE RIGHTCLICK DISABLED-NO ALERT


// CENTER WINDOW.OPEN
var nwin = null;
function NewWindow(mylink,myname,ww,hh){
LeftPos = (screen.width) ? (screen.width-ww)/2 : 0;
TopPos = (screen.height) ? (screen.height-hh)/2 : 0;
// for window always on top use: window.showModalDialog instead of window.open
nwin = window.open(mylink,myname,'width='+ww+',height='+hh+',top='+TopPos+',left='+LeftPos+',location=no,toolbar=no,titlebar=no,menubar=no,status=no,resizable=yes,scrollbars=yes')}
// NO.2 WITHOUT RESTRICTIONS
var nwin2 = null;
function NewWindow2(mylink,myname,ww,hh){
LeftPos = (screen.width) ? (screen.width-ww)/2 : 0;
TopPos = (screen.height) ? (screen.height-hh)/2 : 0;
// for window always on top use: window.showModalDialog instead of window.open
nwin2 = window.open(mylink,myname,'width='+ww+',height='+hh+',top='+TopPos+',left='+LeftPos+',location=yes,toolbar=yes,titlebar=yes,menubar=yes,status=yes,resizable=yes,scrollbars=yes')}
// FINE CODICE CENTER WINDOW.OPEN
