<!--
/**
 * Affiche une image dans une nouvelle fenêtre
 * @param pimgSrc URL de l'image
 * @param pimgWidth Taille de l'image
 * @param pimgHeight Taille de l'image
 */
function popup(pimgSrc,pimgWidth,pimgHeight) {
	var strOptions = ''; /** options pour l'ouverture de la fenêtre */ 
	var win = null; /** pointeur vers la nouvelle fenêtre */
	var strDocHTML = '' ; /** contenu de la page html qui contient l'image */
	
	strOptions = 'location=0,menubar=0,scrollbars=0,status=0,titlebar=0,toolbar=0,directories=0,top=20,left=20';
	strOptions+= ','+'width='+pimgWidth+',height='+pimgHeight;

	/* ouverture de la fenêtre */
	win = window.open('','frmPhotos',strOptions);

	strDocHTML = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"\n'+
'\t"http://www.w3.org/TR/html4/loose.dtd">\n'+
'<html lang="fr">\n\t<head>\n\t\t<title>| IMAGE |<\/title>\n'+
'\t\t<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n'+
'\t\t<style type="text/css"><!--\n'+
'body,p { background: #C8AAB9;}\nimg { border:0;}\n--><\/style>\n'+
'\t<\/head>\n';

	strDocHTML += '\n\t<body leftmargin=0 topmargin=0>\n\n'+
'\t\t<a href="/" onclick="window.close();return false;" title="Cliquer pour fermer la fenêtre"><img src="'+pimgSrc+'" alt="Cliquer pour fermer la fenêtre"></a>\n';
	strDocHTML += '\n\t<\/body>\n<\/html>';

	win.document.open();
	win.document.write(strDocHTML); // on écrit le code HTML dans la nouvelle fenêtre
	win.document.close();
	win.focus();
}
// -->
