function showPage(immagine) {
		availheight = screen.availHeight;
		availwidth = screen.availWidth;
		dLeft = (availwidth - 1024) / 2;
		dTop =  (availheight - 700) / 2;
		searchWin = window.open(immagine,'aprifinestra','width=1024,height=700,top='+ dTop +',left='+ dLeft +',scrollbars=no,resizable=yes,status=no,location=no,toolbar=no,menubar=no');
}
function showProdImage(immagine) {
		availheight = screen.availHeight;
		availwidth = screen.availWidth;
		searchWin = window.open('zoomprod.asp?img=' + immagine,'aprifinestra','width=150,height=150,scrollbars=no,resizable=yes,status=no,location=no,toolbar=no,menubar=no');
}
function showRealImage(immagine) {
		availheight = screen.availHeight;
		availwidth = screen.availWidth;
		searchWin = window.open('zoomreal.asp?img=' + immagine,'aprifinestra','width=150,height=150,scrollbars=no,resizable=yes,status=no,location=no,toolbar=no,menubar=no');
}
function openFullWindow(url) {
	// parameters:	url = URL of the popup window
	//alert(screen.width);
	var w = screen.width; //fixed width
	var h = screen.height; //fixed height
	//var url = url_full;
	//if(w <= 800) {
	//	url = url_800;
	//}
	leftPosition = 0;		// centering horizontal position to middle of screen
	topPosition = 0;	// centering vertical position to middle of screen
	if (h<800)
	{
		var windowprops = 'width=' + w + ',height=' + h + ',top='+ topPosition +',left='+ leftPosition +',toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no'; //set popup window properties
	} else
	{
		var windowprops = 'width=' + w + ',height=' + h + ',top='+ topPosition +',left='+ leftPosition +',toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no'; //set popup window properties
	}
	var popup = window.open(url,'remote',windowprops); // open popup window with properties
	popup.moveTo(0,0)
	popup.resizeTo(screen.width,screen.height);
	//popup.focus(); // focus on window
}
function launchFlashHtml()
{
	//openFullWindow("home.html");
	showPage("home.html");
}

function wrongPassword() {
	alert('Password errata');
}
