<!-- 
function popupCentrata(url, name, width, height) {
	var scrW = screen.availWidth || screen.width;
	var scrH = screen.availHeight || screen.height;
	if(screen.width==scrW && screen.height==scrH) {
		scrH = screen.height-28;
	}
	var left = Math.round((scrW-width)/2);
	var top = Math.round((scrH-height)/2);
	var popup = window.open(url, name,
		"width="+width+
		",height="+height+
		",left="+left+
		",top="+top+
		",resizable=0"+
		",status=0"+
		",scrollbars=0"+
		",toolbar=0"+
		",location=0"+
		",menubar=0"+
		",directories=0"
	);
	return popup;
}

function openPhoto(url, width, height) {
	var p = popupCentrata("","photo", width, height);
	if(typeof(p.document.documentElement)!="undefined") {
		p.document.documentElement.border = "10px solid red";
	}
	else if(typeof(p.document.body)!="undefined") {
		p.document.body.border = "10px solid red";
	}
	p.document.open();
	p.document.writeln("<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>");
	p.document.writeln("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"it\" lang=\"it\">");
	p.document.writeln("	<head>");
	p.document.writeln("		<title>"+url+"</title>");
	p.document.writeln("		<style type=\"text/css\">");
	p.document.writeln("			body {");
	p.document.writeln("				margin: 0px;");
	p.document.writeln("				padding: 0px;");
	p.document.writeln("				border: none;");
	p.document.writeln("			}");
	p.document.writeln("		</style>");
	p.document.writeln("	</head>");
	p.document.writeln("	<body>");
	p.document.writeln("		<img src=\""+url+"\" alt=\"\" />");
	p.document.writeln("	</body>");
	p.document.writeln("</html>");
	p.document.close();
}
// -->
