// JavaScript Document

//AFFICHE UNE PHOTO ET REZISE LA FENETRE A LA TAILLE DE L'IMAGE SANS COONNAITRE SA TAILLE DE DEPART



// LE NOM COMPREND LE CHEMIN !!! 
function affiche(nom){
	i1 = new Image;
	i1.src = nom;
	html = '<HTML><HEAD><TITLE>'+nom+'</TITLE></HEAD><BODY onblur=\"window.close();\"LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><table width="100%" height="100%"  border="0" cellspacing="0" cellpadding="0"><tr><td width="100%" height="100%" align="center" valign="middle"><IMG SRC="'+nom+'" BORDER=0 NAME=imageTest id=imageTest onLoad="window.resizeTo(document.imageTest.width+25,document.imageTest.height+63)"></td></tr></table></BODY></HTML>';
	popupImage = window.open('','_blank','top=0,left=0,toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
}