--- rat/client/parameter.html 2000/11/23 20:42:02 1.3
+++ rat/client/parameter.html 2003/04/19 15:34:06 1.22
@@ -2,7 +2,34 @@
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('rangeparts[1]) { svalue=rangeparts[1]; }
+ }
+ draw();
+}
+
+function floateval() {
+ svalue=choices.document.forms.sch.floatval.value;
+ svalue=1.0*svalue;
+ if (pscat=='pos') { svalue=Math.abs(svalue); }
+ if ((pscat=='zeroone') && ((svalue<0) || (svalue>1))) {
+ svalue='';
+ }
+ draw();
+}
+
+function stringeval() {
+ svalue=choices.document.forms.sch.stringval.value;
+ draw();
+}
+
function intervaldis() {
csecs=svalue;
cdays=Math.floor(csecs/86400);
@@ -250,33 +315,52 @@ function intervaldis() {
choicewrite(cdays+' days '+chours+' hours '
+cmins+' mins '+csecs+' secs');
}
-
-
-
-function afterproc() {
- choicewrite('Error after rounding: '
- +' ');
+
+function pickcolor(picked) {
+ svalue=picked;
+ draw();
}
+function colorfield(ir,ig,ib) {
+ var col=new Array;
+ col=["00","11","22","33","44","55","66","77","88","99","AA","BB","CC","DD","EE","FF"];
+ var color='#'+col[ir]+col[ig]+col[ib];
+ var selection=" ";
+ if (color==svalue) { selection="X"; }
+ choicewrite(''+selection+' ');
+
+}
+
function draw() {
choicestart();
- choicewrite('