//fonctions permettant l'utilisation des listes et des combo + construction de la chaine 
	function ajouter(source,destination)
	{indexC = source.options.selectedIndex;
	 if (indexC < 0) return;
	 valeur = source.options[indexC].value;
	 if ((valeur != "") && (valeur != null))
	 	{texte = source.options[indexC].text;
	 	 source.options[indexC]=null;
	 	 source.options.selectedIndex=0;
 	 	 a = new Option(texte,valeur,false,false);
	 	 indexD = destination.options.length;
	 	 destination.options[indexD]=a;
	 	 destination.options.selectedIndex = indexD;
		}
	}

	function enlever(source,destination)
	{indexC = source.options.selectedIndex;
	 if (indexC < 0) return;
	 valeur = source.options[indexC].value.charAt(0);
	 ajouter(source,destination)
	}

	function envoi(source,destination)
	{var i = source.length;
	 var chaine = "";
	 for(j=0;j<i;j++)
		{chaine = chaine + source.options[j].value + ";";   
    	}
	 destination.value = chaine;
	}
	
//validité d'une période entre deux dates - calcule le nb de jour 
function compareDates (value1, value2) 
	{if (value1!="" && value2!="")
   	 	{var date1, date2;
   
  	 	 date1 = value1.substring(6,10) + value1.substring(3,5) + value1.substring(0,2);
	  	 date2 = value2.substring(6,10) + value2.substring(3,5) + value2.substring(0,2);
	 
 		 if (date1>date2)
		 	{return false;
	 		}
	 	}
	 	
	 		
} 



