function recpage(mode)
{
	if(mode==0 && window.document.FormSelection.SelectionPage)window.document.FormSelection.SelectionPage.value=0
	window.document.FormSelection.submit()
}
function ChangePage(formulaire,sens)
{
	page=window.formulaire.SelectionPage;
	nb=page.length;
	encours=page.selectedIndex;
	if(sens==1 && page.selectedIndex<(nb-1))
	{
		page.selectedIndex=(encours+1);
		formulaire.submit();
	}
	if(sens==-1 && page.selectedIndex>0)
	{
		page.selectedIndex=(encours-1);
		formulaire.submit();
	}
}

function ModifSelection(NbChoix)
{
	formulaire=window.document.FormSelection;
	for(i=1;i<=NbChoix;i++)
	{
		valeur_text=eval("formulaire.ListeValeur"+i+".options[formulaire.ListeValeur"+i+".selectedIndex].text");
		valeur_value=eval("formulaire.ListeValeur"+i+".options[formulaire.ListeValeur"+i+".selectedIndex].value");
		if(valeur_value=="")
		{
			eval("formulaire.SelectionChoix"+i+".value=formulaire.ListeValeur"+i+".options[formulaire.ListeValeur"+i+".selectedIndex].text");
		}
		else
		{
			eval("formulaire.SelectionChoix"+i+".value=formulaire.ListeValeur"+i+".options[formulaire.ListeValeur"+i+".selectedIndex].value");
		}
		if(eval("formulaire.SelectionChoix"+i+".value")=="Tout" || eval("formulaire.SelectionChoix"+i+".value")=="All")eval("formulaire.SelectionChoix"+i+".value=''");
	}
	if(formulaire.SelectionPage)formulaire.SelectionPage.value=0;
	formulaire.submit();
}

function RappelModifSelection(NbChoix)
{
	window.document.FormSelection.SelectionPage.selectedIndex=window.document.RappelFormSelection.SelectionPage.selectedIndex;
	window.document.FormSelection.submit();
}

function DecPage(sens)
{
	if(sens==1)
	{
		window.document.FormSelection.SelectionPage.value=Number(window.document.FormSelection.SelectionPage.value)+1;
	}
	else
	{
		window.document.FormSelection.SelectionPage.value=Number(window.document.FormSelection.SelectionPage.value)-1;
	}
	window.document.FormSelection.submit();
}
function OpenPage(Url)
{
	var windowW=150;
	var windowH=150;
	
	var Y = screen.height/2-windowH/2-100;
	var X = screen.width/2+100;
	
	window.open(Url,"pages","width="+windowW+",height="+windowH+",top="+Y+",left="+X)
}
function OpenPageMembre(Url)
{
	var windowW=150;
	var windowH=150;
	
	var Y = screen.height/2-windowH/2-100;
	var X = screen.width/2+100;
	
	window.open(Url,"pages","width="+windowW+",height="+windowH+",top="+Y+",left="+X)
}