summaryrefslogtreecommitdiff
path: root/javascript/functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/functions.js')
-rwxr-xr-xjavascript/functions.js34
1 files changed, 33 insertions, 1 deletions
diff --git a/javascript/functions.js b/javascript/functions.js
index bf32859..a708963 100755
--- a/javascript/functions.js
+++ b/javascript/functions.js
@@ -157,4 +157,36 @@ function str_pad (input, pad_length, pad_string, pad_type) {
}
return input;
-}
+}
+
+function checkform()
+{
+
+ if ( document.timer.timer_name.value=="" )
+ {
+ alert('Recording name is missing');
+ return false;
+ }
+ else if ( document.timer.timer_chan.value=="" )
+ {
+ alert('Select a channel to record');
+ return false;
+ }
+ else if ( document.timer.timer_date.value=="" )
+ {
+ alert('Select recording date');
+ return false;
+ }
+ else if ( document.timer.timer_starttime.value=="" )
+ {
+ alert('Select recording start time');
+ return false;
+ }
+ else if ( document.timer.timer_endtime.value=="" )
+ {
+ alert('Select recording end time');
+ return false;
+ }
+
+ return true;
+}