var wpopup = null;
var x,y,top,left;


function pop(value,w,h)
{
	if (wpopup != null)
	{	if (wpopup.closed==false)
		{ wpopup.close();
		}
	}
	
	x = w;
	y = h;
	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=auto,resizable=no,width="+x+",height="+y+",top="+top+",left="+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(rub)
{
	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/information/a_arbo.asp?rub="+rub,"","toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y+",top="+top+",left="+left);
}

function pop_arbo2(rub)
{
	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("/extranet/information/e_arbo.asp?rub="+rub,"","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);
}
