// JavaScript Document
function NewWindow(mypage, myname, w, h) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'scrollbars=no,resizable=no,height='+h+',width='+w+',top='+wint+',left='+winl;
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
function apriFoto(chemin) {
	i1 = new Image;
	i1.src = chemin;
	html = '<HTML>\n<HEAD>\n<title>LucciolaBella</title>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0>\n<CENTER><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+30,document.imageTest.height+20)"></CENTER>\n</BODY>\n</HTML>';
	popupImage = window.open('','foto','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=no,width=10,height=10,resizable=0');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
};
