	// on détecte si IE
	function isIE()
	{
		if (navigator.appName == "Microsoft Internet Explorer")
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	
	// on construit le menu et on sélectionne l'option qu'il faut
	function fillOption(thisTab, thisSelect, thisOption)
	{
		j=0;
		// on efface le menu en cours
		i=thisSelect.options.length;
		while (i--) 
		{
			thisSelect.options[i]=null;
		}
		
		// on construit le nouveau menu
		i=j=k=0;
		thisSelect.options[j++]=new Option(" Choisir ...", "0", false, false);
		i=0;  
		while (i < thisTab.length)
		{
			thisSelect.options[i+1]=new Option(thisTab[i][1], thisTab[i][0], false, false);
			if(String(thisTab[i][0])==String(thisOption))
			{
				k=i+1;
			}
			i++;
		}
		thisSelect.options[k].selected=true;
	}

	// on construit le menu et on sélectionne l'option qu'il faut
	// la sélection se fait en plus sur un critère supplémentaire
	function fillOption2(thisTab2, thisSelect2, thisOption2, extKey)
	{
		if(parseFloat(extKey) == -1)
		{
			fillOption(thisTab2, thisSelect2, thisOption2)
		}
		else
		{
			j=0;
			// on efface le menu en cours
			i=thisSelect2.options.length;
			while (i--) 
			{
				thisSelect2.options[i]=null;
			}
			
			// on construit le nouveau menu
			i=j=k=0;
			thisSelect2.options[0]=new Option(" Choisir ...", "0", false, false);
			i=0;  
			while (i < thisTab2.length)
			{
				if(String(thisTab2[i][2]) == String(extKey))
				{
					thisSelect2.options[j+1]=new Option(thisTab2[i][1], thisTab2[i][0], false, false);
					if(String(thisTab2[i][0])==String(thisOption2))
					{
						k=j+1;
					}
					j++;
				}
				i++;
			}
			thisSelect2.options[k].selected=true;
		}
	}
