	function getNumericOptions(beginIndex, endIndex) {

		var numericOptions = '';

		for(var i=beginIndex; i <= endIndex; i++)
			numericOptions += '<option value="'+i+'">'+i+'</option>\n';

		return numericOptions;
	}


	function writeNumericOptions(beginIndex, endIndex) {
		document.write(getNumericOptions(beginIndex, endIndex));
	}


	function updateBebe(ObjMaster,ObjCustom)
	{
		var ObjCustomSelect = ObjCustom.value;
		var ObjCustomLength = ObjCustom.options.length;
		var ObjCustomMaxLength = parseInt(ObjMaster.value);
		for (j = ObjCustomLength-1; j >0; j--)
			ObjCustom.options[j] = null;
		for (j=0;j<=ObjCustomMaxLength;j++)
			ObjCustom.options[j] = new Option(j,j);
		if (parseInt(ObjCustomSelect) <= ObjCustomMaxLength)
			ObjCustom.value = ObjCustomSelect;
		else
			ObjCustom.value = ObjCustomMaxLength;
	}

	function writeHoraire()
	{
		document.write('<option value="">Sans Préférence</option>');
		document.write('<option value="MORNING"/>Matin (9:00-12:00)');
		document.write('<option value="AFTERNOON"/>Après-Midi (12:00-18:00)');
		document.write('<option value="EVENING"/>Soirée (18:00-00:00)');

		for(var i=1;i<10;i++)
			document.write('<option value=\"0'+i+'00\"/>0'+i+':00');

		for(var i=10;i<=23;i++)
			document.write('<option value=\"'+i+'00\"/>'+i+':00');
	}