function popWin(fileName,width,height){
	width = eval(width) + 16;
	height = eval(height) + 0;
	var wf = '';
	wf = wf + 'resizable=yes';
	wf = wf + ',scrollbars=yes';
	wf = wf + ',menubar=no';
	wf = wf + ',toolbar=no';
	wf = wf + ',directories=no';
	wf = wf + ',location=no';
	wf = wf + ',status=yes';
	wf = wf + ',width=' + parseInt(width);
	wf = wf + ',height=' + parseInt(height);
	var popWin = window.open('','popWin',wf);
	with(popWin.document){
		open();
		writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">');
		writeln('<html>');
		writeln('<head>');
		writeln('<title>Just click, and closed window.</title>');
		writeln('<style type="text/css" media="all"><!--');
		writeln('body{margin:0; padding:0;}');
		writeln('img{border-width:0;}');
		writeln('--></style>');
		writeln('</head>');
		writeln('<body>');
		writeln('<div><img onclick="window.close(); return false;" src="' + fileName + '" alt="Cliccare per chiudere."></div>');
//		writeln('<img onclick="window.close(); return false;" src="' + fileName + '" width="' + parseInt(width) + '" height="' + parseInt(height) + '" alt="Cliccare per chiudere.">');
		writeln('</body>');
		writeln('</html>');
		close();
	}
	popWin.focus();
}
function popWin2(url,width,height){
	var wf = '';
	wf += 'resizable=yes';
	wf += ',scrollbars=no';
	wf += ',menubar=no';
	wf += ',toolbar=no';
	wf += ',directories=no';
	wf += ',location=no';
	wf += ',status=yes';
	wf += ',width=' + parseInt(width);
	wf += ',height=' + parseInt(height);
	var popWin = window.open(url,'popWin',wf);
	popWin.focus();
}

