function afficheMaxi(chemin)
{
image = new Image;
image.src = chemin;
largeur = image.width+25;
scrollage = 0;
if(image.height > window.screen.height){
hauteur = window.screen.height-250;
scrollage = 1;
}
else{
hauteur = image.height+2;
largeur = image.width+2;
scrollage = 0
}
html = '<html><head><title>SAHCM- Un clic sur la photo pour fermer...</title></head><body leftmargin=0 marginwidth=0 topmargin=0 marginheight=0><center><img src="'+chemin+'" name=imageTest onclick="window.close()" onLoad="window.resizeTo(largeur,hauteur)"></center></body></html>';
popupImage = window.open('','','width='+largeur+',height='+hauteur+',toolbar=0,location=0,directories=0,menuBar=0,scrollbars='+scrollage+',resizable=0');
popupImage.document.open();
popupImage.document.write(html);
popupImage.document.close()
}

function popimg(photo, titre, largeur, hauteur) { // Ateliers CYM - Paris
var contenu="<html><head><title>"+titre+"</title></head><body topmargin='0' leftmargin='0'><p><a href='javascript:self.close()'><img border='0' src='"+photo+"'></a></p></body></html>";
var fenetre=open("","","title="+titre+",resizable=yes,width="+largeur+", height="+hauteur+"");
fenetre.document.write(contenu);}