LON-CAPA
@@ -21,6 +42,10 @@ var pscat='';
var pmarker='';
var pname='';
+var defhour=0;
+var defmin=0;
+var defsec=0;
+
var svalue;
var stype;
var smarker;
@@ -149,9 +174,16 @@ function date() {
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; }
+ if (thisyear');
- for (i=thisyear-25;i<=thisyear+50;i++) {
+ for (i=loweryear;i<=upperyear;i++) {
choicewrite('