	var first = true;
	var scrW = screen.width;
        var scrH = screen.height;
        var dimwhf='width='+parseInt(scrW * 790/800)+',height='+parseInt(scrH * 465/600);
        var dimwht='width='+parseInt(scrW * 790/800)+',height='+parseInt(scrH * 500/600);
        var dimwhi='width='+parseInt(scrW * 790/800)+',height='+parseInt(scrH * 490/600);
        var dimwhv='width='+parseInt(scrW * 635/800)+',height='+parseInt(scrH * 520/600);
        var dimattesa='width='+parseInt(scrW * 250/800)+',height='+parseInt(scrH * 180/600);
	var dimmin='width='+parseInt(scrW * 300/800)+',height='+parseInt(scrH * 400/600);

function finestra(str,size,n) {
        nome = 'finestra' + n;
        switch (size) {
        case 'fix' : dim='toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,top=0,left=0,'+dimwhf
        break;
        case 'tour' : dim='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=0,left=0,'+dimwht
        break;
        case 'intera' : dim='titlebar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=0,left=0,'+dimwhi
        break;
        case 'scor' : dim='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,top='+parseInt(scrH * 10/600)+',left='+parseInt(scrW * 85/800)+','+dimwhv
        break;
        case 'min' : dim='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,top='+parseInt(scrH * 10/600)+',left='+parseInt(scrW * 85/800)+','+dimmin
        break;
        default : dim='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top='+parseInt(scrH * 10/600)+',left='+parseInt(scrW * 85/800)+','+dimwhv
        }
	if (first) {first=false}
	else {
		if (!searchWin.closed) {searchWin.close()}	
	}
	searchWin = window.open(str,nome,dim);
}
function no_r_c(btnClick) {
        aa = window.location.pathname;
	if (aa == "/vetrina.asp" || aa == "/default.asp") { ErrMsg="Il Tasto destro è disabilitato!" }
	else { ErrMsg="Right Click disabled!" }	
	if (window.navigator.appName == 'Netscape' && btnClick.which == 3){
		alert(ErrMsg);
		return false;
	}
	else if (window.navigator.appName == 'Microsoft Internet Explorer' && event.button == 2){
		alert(ErrMsg);
		//window.external.OnFullScreen;
		return false;
	}
}
//document.onmousedown = no_r_c;