// ***************************************************************************
// AFFICHAGE D'UNE IMAGE DANS UN POPUP DE FACON DYNAMIQUE AU MILIEU DE LA PAGE 
// ***************************************************************************

var w;


function resizePopUp(monImage,monTitre)
    {
	var larg=520;
	var haut=550;
	var Posx= (screen.width)? (screen.width-(larg+180))/2 :0;
	var Posy=(screen.height)? (screen.height-haut)/2 :0;
	var Fpos='top='+Posx+',left='+Posy+',width='+larg+',height='+haut+',scrollbars=0,resisable=0,status=0';

	
	w = window.open('about:blank','popupimg',Fpos);
	w.document.write( '<html><head><title>'+monTitre+'</title>' );
	w.document.write( '<link href="stylesheet.css" type="text/css" rel="stylesheet">');
	w.document.write( '</head><body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
	w.document.write( '<div class="divPopup1"><img src="Photos/espace.gif"  alt="espace"></div>' );
	w.document.write( '<div class="divPopup2"><img src="Photos/espace.gif" alt="espace" height="20px" width="200"><a class="ancC" href="javascript:" onclick="window.close();"> >> Fermer Image</a></div>');
	w.document.write( '<div class="divPopupimg"><center><img src="'+monImage+'"  alt="'+monTitre+'"></center></div>');
	w.document.write( '<div class="style25">* Les illustrations peuvent varier des machines chez les dépositaires et/ou des caractéristiques techniques.</div>');	
	w.document.write( '<div class="divPopup2"><img src="Photos/espace.gif" alt="espace" height="20px" width="200"><a class="ancC" href="javascript:" onclick="window.close();"> >> Fermer Image</a></div></body></html>');
//Forcer le focus sur le popup image	
//	if (w.window.focus) {w.window.focus();}
	}
	
function FermerF()
{
if (w && w.open && !w.closed){	w.close();}
}