// ouverture de fenetre dimensionnee et centree
function Fenetre(URL,nom,largeur,hauteur) {
	var largeurEcran = screen.availWidth;
	var hauteurEcran = screen.availHeight;
	var xbase = (largeurEcran-largeur)/2; 
	var ybase = (hauteurEcran-hauteur)/3; 
	var optionFenetre = ',top=0,left=0,status=1,directories=0,toolbar=0,location=0,menubar=1,scrollbars=1,resizable=0';
	var tailleFenetre = ('width='+largeur+',height='+hauteur + optionFenetre);
	var fenetre = window.open(URL,nom,tailleFenetre);
	fenetre.moveTo(xbase,ybase);
	fenetre.focus();
}

// Ouverture - Fenetre Centrée - Sans menu
function Open_Modal_Window (Adresse, W_Nom, x_width, x_height)
{	
	x_left=0;	
	x_top=0;	
	compute_pos(x_width, x_height);
	var l_Window = window.open(Adresse, W_Nom,'width='+x_width+',height='+x_height+',top='+x_top+',left='+x_left+',status=1,directories=0,toolbar=0,location=0,menubar=0,scrollbars=1,resizable=0');
	l_Window.focus();
	l_Window.name=W_Nom;
}
//Calcul d'un centrage de fenetre
function compute_pos(my_w, my_h){
	x_left=(window.screen.width-my_w)/2;	
	x_top=(window.screen.height-my_h)/2;	
}