--- rat/client/parameter.html 2000/11/27 12:11:55 1.4
+++ rat/client/parameter.html 2001/08/08 13:31:43 1.11
@@ -2,7 +2,9 @@
LON-CAPA
@@ -239,6 +241,38 @@ function intcalc() {
draw();
}
+function integereval() {
+ svalue=choices.document.forms.sch.intval.value;
+ svalue=Math.round(svalue);
+ if (pscat=='zeropos') { svalue=Math.abs(svalue); }
+ if ((pscat=='pos') && (svalue==0)) {
+ svalue='';
+ }
+ if (pscat.indexOf('range')!=-1) {
+ var rangeparts=new Array;
+ rangeparts=split('_',pscat);
+ rangeparts=split('...',rangeparts[1]);
+ if (svaluerangeparts[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);
@@ -260,7 +294,17 @@ function afterproc() {
function draw() {
choicestart();
- choicewrite('