function ouvrir_pop_up(fichier, w, h, nom)
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	
	if((wint + h) > (screen.height - 75))
	{
		wint = 0;
	}
	
	
//	if(typeof(popupWin) == "undefined")
//	{
/*		popupWin = */
		window.open(fichier,nom,"directories=no,height=" + h + ",left=" + winl + ",location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,top=" + wint + ",width=" + w);
//		popupWin.focus();

//	} 
/*
	else 
	{
		if(!(popupWin.closed))
		{
			popupWin.close();
		}
		popupWin = window.open(page_id,"Commande","directories=no,height=" + h + ",left=" +  winl + ",location=no,menubar=no,resizable=non,scrollbars=yes,status=no,toolbar=no,top=" + wint + ",width=" + w);
		popupWin.focus();
	}
*/
}








function ouvrir_pop_up2(fichier, w, h, nom)
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	
	if((wint + h) > (screen.height - 75))
	{
		wint = 0;
	}
	
	
//	if(typeof(popupWin) == "undefined")
//	{
/*		popupWin = */
		window.open(fichier,nom,"directories=no,height=" + h + ",left=" + winl + ",location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,top=" + wint + ",width=" + w);
//		popupWin.focus();

//	} 
/*
	else 
	{
		if(!(popupWin.closed))
		{
			popupWin.close();
		}
		popupWin = window.open(page_id,"Commande","directories=no,height=" + h + ",left=" +  winl + ",location=no,menubar=no,resizable=non,scrollbars=yes,status=no,toolbar=no,top=" + wint + ",width=" + w);
		popupWin.focus();
	}
*/
}

