function tjs_haut(l) {
	var indice=l.selectedIndex
	if (indice<0) {
		alert("Aucune ligne n'est sélectionnée");
	}
	if (indice>0) {	// Il reste une ligne au-dessus
		tjs_swap(l,indice,indice-1);
	}
}

function tjs_bas(l) {
	var indice=l.selectedIndex
	if (indice<0) {
		alert("Aucune ligne n'est sélectionnée");
	}
	if (indice<l.options.length-1) {	// Il reste une ligne en-dessous
		tjs_swap(l,indice,indice+1);
	}
}

function tjs_swap(l,i,j) {
	txtsrc = new String();
	txtdest = new String();	
	var valeur=l.options[i].value;
	var texte=l.options[i].text;
	l.options[i].value=l.options[j].value;
	txtsrc = l.options[j].text;
	txtdest = txtsrc;

	l.options[i].text=txtdest;
	l.options[j].value=valeur;
	txtsrc = texte;
	txtdest = txtsrc;

	l.options[j].text =txtdest;
	l.selectedIndex=j
	tjs_ordre(l.form);
}

function tjs_ordre(f) {
	var l=f.ListeClassement;
	var ordre="";
	for(var i=0;i<l.options.length;i++) {
		if (i>0) {ordre+="-";}
		ordre+=l.options[i].value;		
	}
	f.OrdreClassement.value=ordre;
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function Suppr(Cible)
{
	if (confirm("Etes vous sûr de vouloir supprimer cet enregistrement?\r\nCette opération est irréversible !!!"))
	{
		window.document.location.href = Cible;
	}
}
