// Fonction pour afficher image et nouvelle pages
// Afficher une image dans une nouvelle fenetre
function PopupImage(img, legende, titre) {
	w=open("",'image','width=1,height=1,toolbar=no,scrollbars=no,resizable=yes');	
	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+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><IMG src='"+img+"' border=0 alt='"+legende+"'>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}

// Afficher une page dans une nouvelle fenetre
function PopupPage(page,nom,option) {
    window.open(page,nom,option);
}
