function openpop(URL,W,H)
{
	L = parseInt((window.screen.width - W) / 2);
	T = parseInt((window.screen.height - H) / 2);
	window.open(URL,"","left=" + L + ",top=" + T + ",width=" + W + ",height=" + H + ",toolbar=no,resizable=no,location=no,directories=no,status=no,menubar=no,scrollbars=no");
}

function popPhoto(FOTO, DIDANOME , DIDALUOGO , GLNG )
{
	var W = 640;
	var H = 550;
	var L = parseInt((window.screen.width - W) / 2);
	var T = parseInt((window.screen.height - H) / 2);
	var objFoto = window.open("", "popFoto", "left=" + L + ",top=" + T + ",width=" + W + ",height=" + H + ",toolbar=no,resizable=no,location=no,directories=no,status=no,menubar=no,scrollbars=no");
	
	
	var strOUT =  "<html>"
				+ "<head>"
				+ "	<title>Get Fit</title>"
				+ "	<link rel='STYLESHEET' type='text/css' href='css/default.css'>"
				+ "</head>"
				+ "<body leftmargin='0' topmargin='0' marginheight='0' marginwidth='0'>"
				+ "<table border='0' cellspacing='0' cellpadding='0' width='100%' height='100%'>"
				+ "		<tr><td bgcolor='#DEDFE0' height='50'><img src='img/logo_pop.gif' width='150' height='36' border='0'></td></tr>"
				+ "		<tr>"
				+ "			<td bgcolor='#DEDFE0' height='100%' valign='top'>"
				+ "				<table border='0' cellspacing='0' cellpadding='2' bgcolor='#ffffff' align='center'>"
				+ "					<tr><td align='center'><img src='img/foto_" + FOTO + "_pop.jpg' border='0'></td>"
				+ "					<tr>"
				+ "						<td bgcolor='#DEDFE0' height='100%' valign='top'>"
				+ "							<table border='0' cellspacing='0' cellpadding='0' width='100%'>"
				+ "								<tr><td class='grigioscuro10b'><br>" + DIDANOME + "<br><font class='grigioscuro10n'>" + DIDALUOGO + "</font></td></tr>"
				+ "							</table>"	
				+ "						</td>"
				+ "					</tr>"
				+ "				</table>"	
				+ "			</td>"
				+ "		</tr>"
				+ "		<tr><td bgcolor='#417AA7' align='right'><a href='javascript:window.close();'><img src='img/bott_chiudi_" + GLNG + ".gif' width='50' height='13' border='0'></a></td></tr>"			
				+ "</table>";
	
	objFoto.document.write(strOUT);
	objFoto.document.close();
}

function popPhotoCMS ( pFOTO, pDIDA, GLNG )
{
	var W = 800;
	var H = 620;
	var L = parseInt((window.screen.width - W) / 2);
	var T = parseInt((window.screen.height - H) / 2);
	var objFoto = window.open("", "popFoto", "left=" + L + ",top=" + T + ",width=" + W + ",height=" + H + ",toolbar=no,resizable=no,location=no,directories=no,status=no,menubar=no,scrollbars=no");
	
	var	strOUT ="<html>"
			+	"<head>"
			+	"	<title>GetFIT</title>"
			+	"	<link rel=\"STYLESHEET\" type=\"text/css\" href=\"style/GetFit.css\">"
			+	"</head>"
			+	"<body onload=\"window.focus();\" leftmargin=\"0\" topmargin=\"0\" marginheight=\"0\" marginwidth=\"0\">"
			+	"<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" height=\"100%\">"
			+	"	<tr><td bgcolor=\"#DEDFE0\" height=\"50\"><img src=\"images/logo_pop.gif\" width=\"150\" height=\"36\" border=\"0\"></td></tr>"
			+	"	<tr>"
			+	"		<td bgcolor=\"#DEDFE0\" height=\"100%\" valign=\"middle\">"
			+	"			<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" bgcolor=\"#ffffff\" align=\"center\">"
			+	"				<tr><td align=\"center\"><img src=\"" + pFOTO + "\" border=\"0\"></td></tr>"
			+	"				<tr>"
			+	"					<td bgcolor=\"#DEDFE0\" valign=\"top\">"
			+	"						<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">"
			+	"							<tr><td class=\"grigioscuro10n\" align=\"center\"><br>" + pDIDA + "</td></tr>"
			+	"						</table>"
			+	"					</td>"
			+	"				</tr>"
			+	"			</table>"
			+	"		</td>"
			+	"	</tr>"
			+	"	<tr><td bgcolor=\"#8ea314\" align=\"right\"><a href=\"javascript:window.close();\"><img src=\"images/bott_chiudi_" + GLNG + ".gif\" border=\"0\"></a></td></tr>"
			+	"</table>"
			+	"</body>"
			+	"</html>";
	
	objFoto.document.write(strOUT);
	objFoto.document.close();
}
