// JavaScript Document
// OUVRIR FENETRE

var fen;
fen = 0;

function ouvrir(fichier, largeur, hauteur, options)
{
	 if (fen.closed == false) {fen.close();}
	
	// initialisation de la variable recevant les options de fenêtre
	if (options == undefined) {
    	options = '';
  	}else{
    	options += ', ';
  	}


  	// pour centrage à l'écran de la fenêtre 
  	posH = (screen.width-largeur)/2;
  	posV = (screen.height-hauteur)/2;

  	// options de la fenêtre
  	options += "width="+largeur+",height="+hauteur+",top="+posV+",left="+posH;

  	// ouverture de la fenêtre
  	fen=window.open(fichier,"petrek",options);
  	fen.focus();

	
}


function ouvrir2()
{
	 //if (fen.closed == false) {fen.close();}
	
	
	fichier = "http://www.aglca.asso.fr";
	
	largeur=400;
	hauteur=300;
	

    options = '';



  	// pour centrage à l'écran de la fenêtre 
  	posH = (screen.width-largeur)/2;
  	posV = (screen.height-hauteur)/2;

  	// options de la fenêtre
  	options += "width="+largeur+",height="+hauteur+",top="+posV+",left="+posH;

  	// ouverture de la fenêtre
  	fen=window.open(fichier,"petrek",options);
  	fen.focus();

	
}


function checkBrowser()
{
	var value = navigator.userAgent;
	return value;
}


