about summary refs log tree commit diff
path: root/sourcecodes/header_batchsearch.inc
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/header_batchsearch.inc')
-rw-r--r--sourcecodes/header_batchsearch.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/sourcecodes/header_batchsearch.inc b/sourcecodes/header_batchsearch.inc
index 95ff5687..4e142255 100644
--- a/sourcecodes/header_batchsearch.inc
+++ b/sourcecodes/header_batchsearch.inc
@@ -4,6 +4,17 @@
 <script language="JavaScript">
 <!-- hide
 
+function input_check(input) {
+     var valid_char = /^[a-zA-Z0-9/./-]+$/;
+     if(valid_char.test(input))
+      {
+       return true;
+      }
+     else
+      {
+       return false;
+      }
+}
 function demo_str()
 {
     with(window.document.key_search)