
function top_load()
{win_load=1;
}

function appel_fenetre(dir,nom,taille_H,taille_V,hrounon,hrname)
{h = new Number ;
v = new Number;
h = taille_H;
v = taille_V;
var taille_ecran_H=screen.availWidth;
var taille_ecran_V=screen.availHeight;
var bordure_H=100;
var bordure_V= 50;
var scroll="yes";
var taille_horiz = taille_ecran_H - bordure_H;
var taille_vertic = taille_ecran_V - bordure_V;
if (typeof hrounon != "string" ) {hrounon=''};
if (hrounon!='hr') // on retaille la fen^tre et le scroll est fixe
				{
				var scroll="no";
				if ( h > v )
								{taille_vertic = Math.round(((v*taille_horiz)/h));}
				else {taille_horiz = Math.round(((h*taille_vertic)/v));}
				};
var wf = "";	
	wf = wf + "width=" + taille_horiz;
	wf = wf + ",height=" + taille_vertic;
	wf = wf + ",resizable=" + scroll;
	wf = wf + ",scrollbars=" + scroll;
	wf = wf + ",menubar=" + "no";
	wf = wf + ",toolbar=" + "no";
	wf = wf + ",directories=" + "no";
	wf = wf + ",location=" + "no";
	wf = wf + ",status=" + "no";
if (typeof toto != "undefined" ) {toto.close()};
while (typeof toto != "undefined" ) {};
if (dir == '' ) {var dir1='./'} else {var dir1='./'+dir + '/'};
if (nom.indexOf(".")==-1) //par défaut l'extension est .jpg mais n'est pas mentionnée
	{
	nom = nom+".jpg";//il faut donc la rajouter
	};
var nom="./blc.php?"+dir1+nom+";"+taille_horiz+";"+taille_vertic+";"+hrounon+";./hr/"+hrname;
var toto = window.open ("","",wf);
toto.location.href=nom;
toto.window.moveTo((taille_ecran_H-taille_horiz)/2,(taille_ecran_V-taille_vertic)/2);
}

