function move(index,to) { 
	var list = document.forms[0].list; 
	var total = list.options.length-1; 
	if (index == -1) return false; 
	if (to == +1 && index == total) return false; 
	if (to == -1 && index == 0) return false; 
	var items = new Array; 
	var values = new Array; 
	for (i = total; i >= 0; i--) { 
	items[i] = list.options[i].text; 
	values[i] = list.options[i].value; 
} 
for (i = total; i >= 0; i--) { 
	if (index == i) { 
	list.options[i + to] = new Option(items[i],values[i + to], 0, 1); 
	list.options[i] = new Option(items[i + to], values[i]); 
	i--; 
} 
else { 
	list.options[i] = new Option(items[i], values[i]); 
} 
} 
	list.focus(); 
} 

function submitForm(pagd) {
var list = document.forms[0].list;
var theList = ""+pagd+"";
// start with a "?" to make it look like a real query-string 
for (i = 0; i <= list.options.length-1; i++) {
//theList += "list" + list.options[i].value + "=" + list.options[i].text; 

dui = list.options[i].text;
dum = dui.substring(Math.floor(dui.lastIndexOf("|", dui)+2))
//theList += list.options[i].text +","; 
if(i<list.options.length-1){
theList += dum +",";
}
else{
theList += dum;
}

// a "&" only BETWEEN the items, so not at the end 
//if (i != list.options.length-1) theList += "&"; 
}
location.href = document.forms[0].action + theList;
}

function sForm() {
	document.forms[0].submit();
}

function opSub(uat){

	uc = "s"+uat;
	cec = document.getElementById(uc).style.visibility;
	if(cec != "visible"){

	for(dd = 1; dd <= 3; dd++){
		u = "s"+dd;
		document.getElementById(u).style.visibility = "hidden";
		document.getElementById(u).style.display = "none";
	}

	document.getElementById(uc).style.visibility = "visible";
	document.getElementById(uc).style.display = "";
	}
	else{
		document.getElementById(uc).style.visibility = "hidden";
		document.getElementById(uc).style.display = "none";
	}
	if (uat=='1')
	{
		window.location="index.php?ce=choose&smen=1";
	}
	if (uat=='2')
	{
		window.location="index.php?ce=definition&smen=2";
	}
	if (uat=='3')
	{
		window.location="index.php?ce=statut&smen=3";
	}
}