

var Coutour;
var Marges;

Marges_couleur = '#FFFFFF';
Coutour_couleur = '#FFFFFF';


NavName = navigator.appName;
NavVers = parseFloat(navigator.appVersion);

w_ie = 14;
h_ie = 52;
w_ns = 18;
h_ns = 62;

if (Coutour == 'yes') {
w_ie = w_ie+2;
h_ie = h_ie+2;
w_ns = w_ns+2;
h_ns = h_ns+2;
} 

function resizePopUp(monImage, monTitre, Marges, Coutour)
    {
	winprops = 'width=494,height=381,top=50,left=50,scrollbars=no,resizable=no,toolbar=no,location=no,status=yes,menubar=no'
	w = window.open('','Chargement',winprops);
	w.document.write( "<html><head><title>"+monTitre+"</title>\n" );
	w.document.write( "<script language='JavaScript'>\n");
	
	<!-- Enleve barre de défilement netscape -->
	w.document.write( "function MM_reloadPage(init) {  \n" );
	w.document.write( " if (init==true) with (navigator) { if ((appName=='Netscape')) { \n" );
	w.document.write( "   document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} \n" );
	w.document.write( " else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); \n" );
	w.document.write( "} \n" );
	w.document.write( "MM_reloadPage(true); \n" );
	w.document.write( "window.status = '"+monTitre+"';\n");
	w.document.write( "NavName = navigator.appName;\n");
	w.document.write( "NavVers = parseFloat(navigator.appVersion);\n");
	w.document.write( "function autoSize() {\n");
	w.document.write( "if(NavName == 'Microsoft Internet Explorer' && NavVers >= 4) { self.resizeTo(document.images[0].width+"+w_ie+"+"+Marges+",document.images[0].height+"+h_ie+"+"+Marges+");\n");
	w.document.write( "} else if(NavName == 'Netscape' && NavVers >= 5) { self.resizeTo(document.images[0].width+"+w_ns+"+"+Marges+",document.images[0].height+"+h_ns+"+"+Marges+");\n");
	w.document.write( "} else { window.resizeTo(document.images[0].width,document.images[0].height+20); } \n");
	w.document.write( "self.focus();\n");
	w.document.write( "}\n</scri");
	w.document.write( "pt>\n");
	w.document.write( "<META HTTP-EQUIV='imagetoolbar' CONTENT='no'\n>");
	w.document.write( "</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 scroll=no onLoad='javascript:autoSize();'>" );
	w.document.write( "<table border='0' cellspacing='0' cellpadding='"+Marges/2+"' width=100% height=100% bgcolor='"+Marges_couleur+"'><tr><td align='center' valign='middle'>" );
	if (Coutour == 'yes') {
	w.document.write( "<table border='0' cellspacing='0' cellpadding='1' bgcolor='"+Coutour_couleur+"'><tr><td align='center' valign='middle'>" );
	}
	w.document.write( "<a href='javascript:window.close();'><img src='"+monImage+"' border=0 alt='"+monTitre+"'></a>" );
	if (Coutour == 'yes') {
	w.document.write( "</td></tr></table>" );
	}
	w.document.write( "</td></tr></table>" );
	w.document.write( "</body></html>" );
	w.document.close();
	}

