// JavaScript Document


// Questa funzione apre una finestra popup con la foto passata come parametro
function PopIt (titolopagina, urlfoto, windowwidth, windowheight)
{  
	var myHtml = "";
	
	myHtml = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" +
	"<html xmlns=\"http://www.w3.org/1999/xhtml\">\n" +
	"<head>\n" +
	"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n" +
	"<meta http-equiv=\"imagetoolbar\" content=\"no\" />" +
	"<title>" + titolopagina + "</title>\n" +
	"<style type=\"text/css\">\n" +
	"<!--\n" +
	"body {\n" +
	"	margin-left: 0px;\n" +
	"	margin-top: 0px;\n" +
	"	margin-right: 0px;\n" +
	"	margin-bottom: 0px;\n" +
	"}\n" +
	"div.divFoto {\n" +
	"	background-image: url(Foto/" + urlfoto + ");\n" +
	"	background-repeat: no-repeat;\n" +
	"	background-position: 0px 0px;\n" +
	"	margin: 0px;\n" +
	"	padding: 0px;\n" +
	"	height: 1200px;\n" +
	"	width: 1200px;\n" +
	"}\n" +
	"-->\n" +
	"</style>\n" +
	"<script src=\"script_popit.js\" type=\"text/javascript\"></script>\n" +
	"</head>\n" +
	"<body>\n" +
	"<a href=\"javascript:window.close();\"><div class=\"divFoto\"><img src=\"Immagini/vuoto8x8.gif\" alt=\"" + titolopagina + "\" width=\"" + windowwidth + "\" height=\"" + windowheight + "\" hspace=\"0\" vspace=\"0\" border=\"0\" /></a></div>\n" +
	"</body>\n" +
	"</html>\n"; 
	
	popup = window.open("","popDialog","height="+windowheight+",width="+windowwidth+",scrollbars=no");
	popup.document.write(myHtml)  ;
	popup.document.close();
}
// fine PopIt

