RT#23598: Feature Request - Email notice to A/R Report Results [now uses checkboxes...
[freeside.git] / httemplate / search / elements / checkbox-foot.html
index cc4bac6..c470094 100644 (file)
@@ -75,6 +75,15 @@ function setAll(setTo) {
     checkboxes[i].checked = setTo;
   }
 }
+function toCGIString() {
+  var out = '';
+  for (var i = 0; i < checkboxes.length; i++) {
+    if (checkboxes[i].checked) {
+      out += '&' + checkboxes[i].name + '=' + checkboxes[i].value;
+    }
+  }
+  return out;
+}
 </SCRIPT>
 <%init>
 my %opt = @_;