//Par Jérémy FAUVET
//entre <head> et </head> <script language="JavaScript" src="./script/zoom.js"></script>
//<a href="javascript:PopupImage('./photos/<%=rst("photo1max")%>')">txt ou img</a>


function PopupImage(img) {
	titre="Zoom Image ...";
	mot="SCRIPT"
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=yes');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
	w.document.write("<"+mot+" language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><A HREF='javascript:window.close()'><IMG src='"+img+"' border=0 alt='Cliquez pour fermer !'></a>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}
