function popUp (p_AnchorObject, p_width, p_height) {
   OpenWindow = window.open(p_AnchorObject.href, "pop", "dependent=no menubar=no resizable=yes scrollbars=yes toolbar=no width=" + new String(p_width) + " height=" + String(p_height) + " top=" + new String((screen.height / 2 ) - (p_height / 2)) + " left=" + new String((screen.width / 2) - (p_width / 2)));  
   OpenWindow.focus();   
    return false;
}
//script de la mort  pop_b version même extension
function pop_b(imageObject)
	{

	var chemin = imageObject.src;
	var left = chemin.substring(0,chemin.lastIndexOf('.'));
	var right = chemin.substring(chemin.lastIndexOf('.'));
	var newSrc = left+"_b"+right;

	var h = imageObject.bigH;
	var w = imageObject.bigW;
	var title = imageObject.title;
	html = '<HTML><HEAD><TITLE>'+imageObject.titleB+'</TITLE></HEAD><link href=../css/nse_txt.css rel=stylesheet type=text/css><BODY style=border:0><CENTER><IMG onclick="window.close();" SRC="'+newSrc+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+31)" alt="Cliquez pour fermer - Click to close the window" style="cursor:hand;"></CENTER></BODY></HTML>';
	var p = 'width='+(parseInt(w))+',height='+(parseInt(h))+',toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1';
	popupImage = window.open('','_blank', p);

	
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close();
	
};
//script de la mort  pop_b version mettre en paramètre extension de l'image

function pop_b2(imageObject,ext)
	{

	var chemin = imageObject.src;
	var left = chemin.substring(0,chemin.lastIndexOf('.'));
	var right = chemin.substring(chemin.lastIndexOf('.'));
	var newSrc = left+"_b."+ext;
	
	var h = imageObject.bigH;
	var w = imageObject.bigW;
	var title = imageObject.title;
	html = '<HTML><HEAD><TITLE>'+imageObject.titleB+'</TITLE></HEAD><link href=../css/nse_txt.css rel=stylesheet type=text/css><BODY style=border:0><CENTER><IMG onclick="window.close();" SRC="'+newSrc+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+31)" alt="Cliquez pour fermer - Click to close the window" style="cursor:hand;"></CENTER></BODY></HTML>';
	var p = 'width='+(parseInt(w))+',height='+(parseInt(h))+',toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1';
	popupImage = window.open('','_blank', p);

	
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close();
	};
