--- rat/client/parameter.html 2000/11/23 20:42:02 1.3
+++ rat/client/parameter.html 2003/07/10 08:34:43 1.25
@@ -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 radiostringeval(newval) {
+ svalue=newval;
+ draw();
+}
+
function intervaldis() {
csecs=svalue;
cdays=Math.floor(csecs/86400);
@@ -250,33 +320,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","44","66","88","AA","CC","DD","EE","FF"];
+ var color='#'+col[ir]+col[ig]+col[ib];
+ var selection="X ";
+ if (color==svalue) { selection="X "; }
+ choicewrite(''+selection+' ');
+
+}
+
function draw() {
choicestart();
- choicewrite('