summaryrefslogtreecommitdiff
path: root/public/css/forms.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/css/forms.js')
-rw-r--r--public/css/forms.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/public/css/forms.js b/public/css/forms.js
new file mode 100644
index 00000000..8a6e2c69
--- /dev/null
+++ b/public/css/forms.js
@@ -0,0 +1,17 @@
+function check_all(id) {
+ var obj = document.getElementById(id);
+ var boxes = obj.getElementsByTagName("input");
+ for(var i = 0; i < boxes.length; i++) {
+ if(boxes[i].type == "checkbox")
+ boxes[i].checked = true;
+ }
+}
+
+function uncheck_all(id) {
+ var obj = document.getElementById(id);
+ var boxes = obj.getElementsByTagName("input");
+ for(var i = 0; i < boxes.length; i++) {
+ if(boxes[i].type == "checkbox")
+ boxes[i].checked = false;
+ }
+}