// This function is used to display a new browser window
// Ch. Boesiger 11.11.2003

function show_win(ref,fen,w,h)
{
url = ref; //récupère l'url à afficher
nom_fen = fen; //récupère le nom à donner à la fenêtre
box_w = w; //récupère la largeur
box_h = h; //récupère la hauteur

scr_w = screen.availWidth; // largeur de l'écran
scr_h = screen.availHeight; // hauteur de l'écran

dist_left = (scr_w - box_w) / 2; // distance de la gauche
dist_top = (scr_h - box_h) / 2; // distance du haut

box_aspect = 'resizable,scrollbars,width=' + box_w + ',height=' + box_h;
box_aspect = box_aspect + ',left=' + dist_left + ',screenX=' + dist_left;
box_aspect = box_aspect + ',top=' + dist_top + ',screenY=' + dist_top;
new_win = window.open(url, nom_fen, box_aspect);
new_win.focus();
}

function show_perso(perso){
	url = "saga/perso/" + perso + ".htm";
	show_win(url,'perso','500','350');
}

