var wpopup = null;
var x,y,top,left;

function pop_all(value)
{
	if (wpopup != null)
	{	if (wpopup.closed==false)
		{ wpopup.close();
		}
	}

	x = 300;
	y = 140;
	left = Math.round((screen.width - x)/2);
	top = Math.round((screen.height - y)/3);

wpopup = window.open(value,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+x+",height="+y+",top="+top+",left="+left);
}

function pop_groupe()
{
	if (wpopup != null)
	{	if (wpopup.closed==false)
		{ wpopup.close();
		}
	}

	x = 400;
	y = Math.round(0.60*screen.height);
	left = Math.round((screen.width - x)/2);
	top = Math.round((screen.height - y)/3);

wpopup = window.open("/admin/a_groupe.asp","","toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=no,width="+x+",height="+y+",top="+top+",left="+left);
}

function pop_arbo()
{
	if (wpopup != null)
	{	if (wpopup.closed==false)
		{ wpopup.close();
		}
	}

	x = 520;
	y = 500;
	left = Math.round((screen.width - x)/2);
	top = Math.round((screen.height - y)/3);

wpopup = window.open("/admin/information/a_arbo.asp","","toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y+",top="+top+",left="+left);
}

function pop_arbo_internet()
{
	if (wpopup != null)
	{	if (wpopup.closed==false)
		{ wpopup.close();
		}
	}

	x = 520;
	y = 500;
	left = Math.round((screen.width - x)/2);
	top = Math.round((screen.height - y)/3);

wpopup = window.open("/admin/internet/a_arbo.asp","","toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y+",top="+top+",left="+left);
}

function pop_arbo2()
{
	if (wpopup != null)
	{	if (wpopup.closed==false)
		{ wpopup.close();
		}
	}

	x = 520;
	y = 500;
	left = Math.round((screen.width - x)/2);
	top = Math.round((screen.height - y)/3);

wpopup = window.open("/extranet/information/e_arbo.asp","","toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y+",top="+top+",left="+left);
}

function pop_stats(indice,nbr,jour,mois,annee)
{
	if (wpopup != null)
	{	if (wpopup.closed==false)
		{ wpopup.close();
		}
	}

	x = 400;
	y = Math.round(0.60*screen.height);
	left = Math.round((screen.width - x)/2);
	top = Math.round((screen.height - y)/3);

wpopup = window.open("/admin/outils/a_stats_details.asp"+"?indice="+eval(indice)+"&nbr="+eval(nbr)+"&jour="+eval(jour)+"&mois="+eval(mois)+"&annee="+eval(annee),"","toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y+",top="+top+",left="+left);
}

function pop_stats_adh(typex, id)
{
	if (wpopup != null)
	{	if (wpopup.closed==false)
		{ wpopup.close();
		}
	}

	x = 320;
	y = Math.round(0.60*screen.height);
	left = Math.round((screen.width - x)/2);
	top = Math.round((screen.height - y)/3);

wpopup = window.open("/admin/outils/a_stats_adh.asp"+"?typex="+eval(typex)+"&id="+eval(id),"","toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y+",top="+top+",left="+left);
}

function pop_graphique()
{
	if (wpopup != null)
	{	if (wpopup.closed==false)
		{ wpopup.close();
		}
	}

	x = 600;
	y = Math.round(0.55*screen.height);
	left = Math.round((screen.width - x)/2);
	top = Math.round((screen.height - y)/3);

wpopup = window.open("/admin/outils/a_stats_graphique.asp","","toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y+",top="+top+",left="+left);
}

function PopUpCenter(page,largeur,hauteur,name,scrolling) {
	var top=(screen.height-hauteur)/2;
  	var left=(screen.width-largeur)/2;
  	window.open(page, "name", "top="+top+",left="+left+",height="+hauteur+", width="+largeur+",toolbar=0, menubar=0, scrollbars="+scrolling+", resizable=0, status=0, location=0");
}
