+ celldate.innerHTML = '<input name="date_'+i+'">' ;
+ celldate.firstChild.type = mode ;
+ if(mode == "text") // si on a déjà affiché les cases en mode texte, on continue en mode texte
+ {
+ celldate.firstChild.size = taillemaxdate ;
+ celldate.firstChild.maxlength = taillemaxdate ;
+ celldate.firstChild.placeholder = placeholder_date ;
+ }
+ cellpoids.innerHTML = '<input type="text" name="poids_'+i+'">' ;
+ }
+
+}
+
+// Affichage de la textarea "export"
+function affiche_export()
+{
+ document.getElementById("export").style.display = "block" ;
+
+}
+
+function affiche_cache(id,elemcourant)
+{
+ // affiche et/ou cache l'élément id, tout en changeant le this
+ // en afficher/masquer
+ elem = document.getElementById(id)
+ if(elem.style.display == "block")
+ {
+ elem.style.display = "none";
+ elemcourant.innerHTML = "Afficher" ;
+ }
+ else
+ {
+ elem.style.display = "block" ;
+ elemcourant.innerHTML = "Masquer" ;