/*Pour les paramètres:
toolbar, menubar, status et scrollbars,
les paramètres envoyés lors de l'appel de la fonction doivent être soit yes ou no.
*/
function Ouvrir(PageDlg, width, height, toolbar, menubar, status, scrollbars)
{
	var Win;

	Win=window.open(PageDlg,"Fenetre","Width="+width+",Height="+height+",toolbar="+toolbar+",directories=no,menubar="+menubar+",status="+status+",resizable=yes,scrollbars="+scrollbars+",left=50,top=50");

    if (Win.opener == null) 
        Win.opener = window;
   
	Win.resizeTo(width, height);
  if(!(document.all && !document.getElementById))
	//if(browser != "IE4")
	    Win.focus();      
    return
 }
 
 
function popup(PageDlg)
{
	var Win;	
		
	Win=window.open(PageDlg,"Popup","Width=500,Height=400,location=no,adressbar=no,toolbar=no,directories=no,menubar=no,status=no,resizable=no,scrollbars=yes,left=40,top=40");

    if (Win.opener == null) 
        Win.opener = window;
	
   if(!(document.all && !document.getElementById))
	   Win.focus();
    return
}

function OuvrirAide(PageDlg)
{
	var Win;	
		
	Win=window.open(PageDlg,"Aide","Width=600,Height=400,location=no,adressbar=no,toolbar=no,directories=no,menubar=no,status=no,resizable=no,scrollbars=yes,left=40,top=40");

    if (Win.opener == null) 
        Win.opener = window;
	
   if(!(document.all && !document.getElementById))
	   Win.focus();
    return
}
 

function OuvrirDesc(PageDlg, NomPage)
{
	var Win;
	
	gauche = screen.width;
	haut = screen.height;
	if(gauche >= 800)
		gauche = (gauche-800)/2;
	else
		gauche=0;
		
	haut = 40;
	
	if(NomPage=="fichiers")
	{
		gauche += 10;
		haut += 10;
	}
			
	Win=window.open(PageDlg,NomPage,"Width=415,Height=280,location=no,adressbar=no,toolbar=no,directories=no,menubar=no,status=no,resizable=yes,scrollbars=yes,left="+gauche+",top="+haut);

    if (Win.opener == null) 
        Win.opener = window;
	
    if(!(document.all && !document.getElementById))
	    Win.focus();
    return
 }
 
function OuvrirPage(PageDlg)
{
	var Win;
	
	gauche = screen.width;
	haut = screen.height;
	if(gauche >= 800)
		gauche = (gauche-800)/2;
	else
		gauche=0;
		
	if(haut >= 600)
		haut = 40;
	else
		haut=0;
		
		
	Win=window.open(PageDlg,"Page","Width=800,Height=540,location=yes,adressbar=yes,toolbar=yes,directories=no,menubar=yes,status=yes,resizable=yes,scrollbars=yes,left="+gauche+",top="+haut);

    if (Win.opener == null) 
        Win.opener = window;
	
   if(!(document.all && !document.getElementById))
	   Win.focus();
   return
 }
// Fin de la fonction OuvrirPage

