LON-CAPA
@@ -146,9 +173,15 @@ function date() {
function year() {
var thisyear=cdate.getFullYear();
+ var nowdate=new Date();
+ var nowyear=nowdate.getFullYear();
+ 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('