function zoom(link, wName, w, h, scroll) {
	var clientHt = window.screen.height;
	var clientWt = window.screen.width;
	newWin = window.open(link, wName, 'scrollbars='+scroll+', resizable=yes, width='+w+', height='+h+', location=no, toolbar=no, menubar=no');
	newWin.moveTo( (clientWt/2)-(w/2) , (clientHt/2)-(h/2) );
	newWin.resizeTo(w,h);
}

function print(link, wName, w, h, scroll) {
	var clientHt = window.screen.height;
	var clientWt = window.screen.width;
	newWin = window.open(link, wName, 'scrollbars='+scroll+', resizable=yes, width='+w+', height='+h+', location=no, toolbar=no, menubar=yes');
	newWin.moveTo( (clientWt/2)-(w/2) , (clientHt/2)-(h/2) );
	newWin.resizeTo(w,h);
}

function openWin(x,larghezza,altezza){
	xtop = ((screen.height - altezza) /2);
	xleft = ((screen.width - larghezza) /2);
	xaltezza = altezza+25;
	xlarghezza = larghezza;
	
	xtools="top="+ xtop +",left="+ xleft +"toolbar=no,"
	xtools+="location=no,directories=no,status=no,menubar=no,"
	xtools+="scrollbars=no,resizable=no,copyhistory=no,width="+ xlarghezza +",height="+ xaltezza;
	
	win = window.open('','',xtools);
	
	Html='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
	Html='<html>';
	Html+='<head>';
	Html+='<title>TVL - Immagine prodotto</title>';
	Html+='<style type="text/css">';
	Html+='html,body {margin:0;}';
	Html+='body {font:11px Tahoma,Arial; color:#000000;}';
	Html+='a {color:#FF0000;text-decoration:none;font-weight:bold;}';
	Html+='a:hover {color:#0033AA;text-decoration:none;font-weight:bold;}';
	Html+='</style>';
	Html+='</head>';
	Html+='<body bgcolor="#FFFFFF" onload="window.self.focus();" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">';
	Html+='<div align="center"><img src="'+ x +'" alt="" border=""><br><div style="margin-top:5px;">';
	Html+='<a href="#" onclick="window.self.close();">&#149; Chiudi &#149;</a></div></div></body></html>';
	
	win.document.write(Html);
	win.focus();
}
