--- rat/client/parameter.html 2001/12/19 17:22:29 1.16 +++ rat/client/parameter.html 2002/06/21 18:28:57 1.18 @@ -3,7 +3,7 @@ The LearningOnline Network with CAPA Parameter Input Window // -// $Id: parameter.html,v 1.16 2001/12/19 17:22:29 albertel Exp $ +// $Id: parameter.html,v 1.18 2002/06/21 18:28:57 albertel Exp $ // // Copyright Michigan State University Board of Trustees // @@ -349,16 +349,16 @@ function draw() { tablestart('Percentage error, asymmetric around value'); valline('Upper percentage',2,3); valline('Lower percentage',4,5); - var range=new Array; + var range1=new Array; if ((svalue!='') && (typeof(svalue)!="undefined")) { - range=svalue.split(','); - if (typeof(range[1])=='undefined') { range[1]=range[0]; } - choices.document.forms.sch.val2.value=parseFloat(range[0]); - if (range[0].indexOf('+')!=-1) { + range1=svalue.split(','); + if (typeof(range1[1])=='undefined') { range1[1]=range1[0]; } + choices.document.forms.sch.val2.value=parseFloat(range1[0]); + if (range1[0].indexOf('+')!=-1) { choices.document.forms.sch.val3.checked=true; } - choices.document.forms.sch.val4.value=parseFloat(range[1]); - if (range[1].indexOf('+')!=-1) { + choices.document.forms.sch.val4.value=parseFloat(range1[1]); + if (range1[1].indexOf('+')!=-1) { choices.document.forms.sch.val5.checked=true; } } @@ -377,16 +377,16 @@ function draw() { tablestart('Absolute error, asymmetric around value'); valline('Upper value',2,3); valline('Lower value',4,5); - var range=new Array; + var range2=new Array; if ((svalue!='') && (typeof(svalue)!="undefined")) { range=svalue.split(','); - if (typeof(range[1])=='undefined') { range[1]=range[0]; } - choices.document.forms.sch.val2.value=parseFloat(range[0]); - if (range[0].indexOf('+')!=-1) { + if (typeof(range2[1])=='undefined') { range2[1]=range2[0]; } + choices.document.forms.sch.val2.value=parseFloat(range2[0]); + if (range2[0].indexOf('+')!=-1) { choices.document.forms.sch.val3.checked=true; } - choices.document.forms.sch.val4.value=parseFloat(range[1]); - if (range[1].indexOf('+')!=-1) { + choices.document.forms.sch.val4.value=parseFloat(range2[1]); + if (range2[1].indexOf('+')!=-1) { choices.document.forms.sch.val5.checked=true; } } @@ -500,7 +500,7 @@ function draw() { tablestart('Text'); } choicewrite('