// Traitement des popups en javascript : Tutoriaux et sources Mediabox
// http://www.media-box.net/tuts.php?iddr=1903

function PopupImage(img) { 
titre="www.appeldephare.com"; 
w=open("",'image','width=50,height=50,toolbar=no,scrollbars=no,resizable=no,top=0,left=0'); 
w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>"); 
w.document.write("<SCRIPT language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+10,document.images[0].height+100); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>"); 
w.document.write("<BODY onload='checksize()' onblur='window.close()' onclick='window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
w.document.write("<TABLE width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'><TR>");
w.document.write("<TD valign='middle' align='center'><IMG src='"+img+"' border=0 alt='Cette fenêtre se ferme soit en cliquant dessus soit en cliquant en dehors de celle-ci . Bonne visite .'>"); 
w.document.write("</TD></TR></TABLE>");
w.document.write("</BODY></HTML>"); 
w.document.close(); 
}
