function afficheMaxi(chemin,titre,imw,imh) {
	
	var i1 = new Image();
	i1.src = chemin;

	screenh=screen.height;
	hmaxi=screenh*0.8;

	if (imh>hmaxi) {
		hauteur=hmaxi;
		largeur=imw*(hmaxi/imh);
	} else {
		hauteur=imh;
		largeur=imw;
	}

	popx=(screen.width)-(largeur)-((screen.width)-(largeur))/2;
	popy=(screen.height)-(hauteur)-((screen.height)-(hauteur))/2;

	html = '<HTML><HEAD><TITLE>'+titre+'</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER><a href="javascript:window.close()"><IMG SRC="'+chemin+'" BORDER=0 NAME="imagetest" onLoad="focus()" HEIGHT="'+hauteur+'" WIDTH="'+largeur+'" alt="Cliquez pour fermer la fenêtre"></a></CENTER></BODY></HTML>';
	popupImage = window.open('','_blank','top='+popy+',left='+popx+',height='+hauteur+',width='+largeur+',toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()

};
