function GDS_EcrireListe(tableau,nom,selected,onChangeAction)
	{
	document.write("<select name='"+nom+"' onChange='"+onChangeAction+"'>");
	for (i=0; i<tableau.length; i++) {
		if (tableau[i][0]==selected || tableau[i][1]==selected)
	        document.write("<option selected value="+tableau[i][0]+">"+unescape(tableau[i][1])+"</option>");
		else
	        document.write("<option value="+tableau[i][0]+">"+unescape(tableau[i][1])+"</option>");   }
    document.write("</select>");
    return true;
	}

function GDS_EcrireListeJours(tableau,nom,selected,onChangeAction) {
    document.write("<select name='"+nom+"' onChange='"+onChangeAction+"'>");
    for (i=1; i<tableau.length; i++) {
		if (tableau[i][0]==selected)
	        document.write("<option selected value="+tableau[i][0]+">"+unescape(listeJours[i][1]+' '+listeJours[i][2]+' '+listeJours[i][3]+' '+listeJours[i][4])+"</option>");
		else
	        document.write("<option value="+tableau[i][0]+">"+unescape(listeJours[i][1]+' '+listeJours[i][2]+' '+listeJours[i][3]+' '+listeJours[i][4])+"</option>");
    }
    document.write("</select>");
    return true;
}

function setListeValue(leNom,laValeur)
{
	liste=document.frm[leNom];
	for (i=0;i<liste.length;i++)
		if (liste.options[i].value==laValeur)
			liste.options[i].selected=true;
		
}

// Renvoie un objet de la page dont l'identifiant est passé en paramètres.
function MM_findObj(n, d) { //v4.0
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n); return x;
}
// Recuperer la valeur d'un SELECT
function getListValue(name)
	{	
		var lst=MM_findObj(name);
		return lst.options[lst.selectedIndex].value;
	}
