function openpop(URL,W,H,SR)
{
	L = parseInt((window.screen.width - W) / 2);
	T = parseInt((window.screen.height - H) / 2);
	var Wnd = window.open(URL, "", "left=" + L + ",top=" + T + ",width=" + W + ",height=" + H + ",toolbar=no,resizable=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + SR);
}

function popup(URL,Title,W,H)
{
	L = parseInt((window.screen.width - W) / 2);
	T = parseInt((window.screen.height - H) / 2);

	Foto = window.open("", "", "left=" + L + ",top=" + T + ",width=" + W + ",height=" + (H) + ",toolbar=no,resizable=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes");
	Foto.document.write("<html>");
	Foto.document.write("<head>");
	Foto.document.write("<title>" + Title + "</title>");
	Foto.document.write("<link rel='STYLESHEET' type='text/css' href='css/default.css'>");
	Foto.document.write("</head>");
	Foto.document.write("<body leftmargin='0' topmargin='0' marginheight='0' marginwidth='0' bgcolor='#ffffff'>");
	Foto.document.write("<table width='100%' height='400' border='0' cellpadding='0' cellspacing='0'>");
	Foto.document.write("<tr align='center' valign='middle'><td><img src='" + URL + "' border='0' alt=''></td></tr>");
	Foto.document.write("</table>");
	Foto.document.write("</body>");
	Foto.document.write("</html>");
}


function popImage(FOTO,W,H)
{
	L = parseInt((window.screen.width - W) / 2);
	T = parseInt((window.screen.height - H) / 2);

	Foto = window.open("", "", "left=" + L + ",top=" + T + ",width=" + W + ",height=" + (H + 66) + ",toolbar=no,resizable=no,location=no,directories=no,status=no,menubar=no,scrollbars=no");
	Foto.document.write("<html>");
	Foto.document.write("<head>");
	Foto.document.write("<title>Stelline</title>");
	Foto.document.write("</head>");
	Foto.document.write("<body leftmargin='0' topmargin='0' marginheight='0' marginwidth='0'>");
	Foto.document.write("<table border='0' cellpadding='0' cellspacing='0'>");
	Foto.document.write("	</tr>");	
	Foto.document.write("		<td valign='top' background='img/bkg_pop.gif' width='100%'>");
	Foto.document.write("			<table border='0' cellpadding='0' cellspacing='0' width='100%'>");
	Foto.document.write("				<tr>");
	Foto.document.write("					<td><img src='img/stella_pop_dovesiamo.gif' width='54' height='48' alt='' border='0'></td>");
	Foto.document.write("					<td width='100%'><img src='img/scritta_pop_palazzo.gif' width='209' height='48' alt='' border='0'></td>");
	Foto.document.write("				</tr>");
	Foto.document.write("			</table>");
	Foto.document.write("		</td>");
	Foto.document.write("	</tr>");
	Foto.document.write("	<tr><td><img src='../img/dummy.gif' width='2' height='1' alt='' border='0'></td></tr>");
	Foto.document.write("	<tr><td><img src='img/foto_" + FOTO + "_pop.jpg' width='" + W  + "' height='" + H  + "' alt='' border='0'></td></tr>");
	Foto.document.write("	<tr><td><img src='../img/dummy.gif' width='2' height='1' alt='' border='0'></td></tr>");
	Foto.document.write("	<tr><td background='img/bkg_bott_chiudi.gif' align='right'><a href='javascript:window.parent.close();'><img src='img/IT_bott_chiudi.gif' width='56' height='16' alt='' border='0'></a></td></tr>");
	Foto.document.write("</table>");
	Foto.document.write("</body>");
	Foto.document.write("</html>");
}

