function Fct_Medicament() 
{
      var Chaine = document.form1.titre_medicament.value.toUpperCase();
	   var  nb_medic         = window.document.form1.id_medicament.options.length;
	  for(j=0;j<nb_medic;j++){
	   window.document.form1.id_medicament.options[0] = null;
	   }
         for( i = 0; i < Medicament.length ; i++ ){
		  MonElement = Medicament[i][1].toUpperCase();
	         if(MonElement.indexOf(Chaine) == 0)
			  {
			    Element = new Option(Medicament[i][1],Medicament[i][0]);
			    window.document.form1.id_medicament.options[window.document.form1.id_medicament.options.length]=Element;
             
		      }
  }
}
function fct_CollerMedicament(){
if( window.document.form1.id_medicament.options.length > 0){
var VMedicament = window.document.form1.id_medicament.options[window.document.form1.id_medicament.options.selectedIndex].text;
document.form1.titre_medicament.value=VMedicament;
}
}
