--- rat/client/parameter.html 2005/06/20 19:52:51 1.32
+++ rat/client/parameter.html 2005/08/11 21:31:46 1.34
@@ -3,7 +3,7 @@
The LearningOnline Network with CAPA
Parameter Input Window
//
-// $Id: parameter.html,v 1.32 2005/06/20 19:52:51 albertel Exp $
+// $Id: parameter.html,v 1.34 2005/08/11 21:31:46 albertel Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -176,6 +176,7 @@ function year() {
var thisyear=cdate.getFullYear();
var nowdate=new Date();
var nowyear=nowdate.getFullYear();
+ if ( !thisyear ) { thisyear=nowyear; }
var loweryear=thisyear-2;
var upperyear=thisyear+5;
if (thisyear>nowyear) { loweryear=nowyear-2; }
@@ -730,9 +731,11 @@ function init() {
if (pair[0]=='call') { pcode=pair[1]; }
if (pair[0]=='marker') { pmarker=pair[1]; }
if (pair[0]=='name') { pname=pair[1]; }
- if (pair[0]=='defhour') { defhour=pair[1]; }
- if (pair[0]=='defmin') { defmin=pair[1]; }
- if (pair[0]=='defsec') { defsec=pair[1]; }
+ if (pair[0]=='defhour' && pair[1] >= 0 && pair[1] < 24 ) {
+ defhour=pair[1];
+ }
+ if (pair[0]=='defmin' && pair[1] >= 0 && pair[1] < 60) { defmin=pair[1]; }
+ if (pair[0]=='defsec' && pair[1] >= 0 && pair[1] < 60) { defsec=pair[1]; }
}
svalue=pvalue;