diff options
Diffstat (limited to '')
-rw-r--r-- | include/script.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/script.js b/include/script.js new file mode 100644 index 000000000..7821299c6 --- /dev/null +++ b/include/script.js @@ -0,0 +1,28 @@ +function SelectAll( formulaire ) +{ +len = formulaire.elements.length; +var i=0; +for( i = 0; i < len; i++) +{ + if ( formulaire.elements[i].type=='checkbox' + && formulaire.elements[i].name != 'copie') + { + formulaire.elements[i].checked = true; + } +} +} + +function Inverser( formulaire ) +{ +len = formulaire.elements.length; +var i=0; +for( i=0; i<len; i++) +{ + if ( formulaire.elements[i].type=='checkbox' + && formulaire.elements[i].name != 'copie') + { + formulaire.elements[i].checked = !formulaire.elements[i].checked; + } +} +} + |