version 1.13, 2001/08/08 16:41:28
|
version 1.15, 2001/08/08 18:47:17
|
Line 328 function draw() {
|
Line 328 function draw() {
|
if ((svalue!='') && (typeof(svalue)!="undefined")) { |
if ((svalue!='') && (typeof(svalue)!="undefined")) { |
range=svalue.split(','); |
range=svalue.split(','); |
if (typeof(range[1])=='undefined') { range[1]=range[0]; } |
if (typeof(range[1])=='undefined') { range[1]=range[0]; } |
choices.document.forms.sch.val2.value=parseInt(range[0]); |
choices.document.forms.sch.val2.value=parseFloat(range[0]); |
if (range[0].indexOf('+')!=-1) { |
if (range[0].indexOf('+')!=-1) { |
choices.document.forms.sch.val3.checked=true; |
choices.document.forms.sch.val3.checked=true; |
} |
} |
choices.document.forms.sch.val4.value=parseInt(range[1]); |
choices.document.forms.sch.val4.value=parseFloat(range[1]); |
if (range[1].indexOf('+')!=-1) { |
if (range[1].indexOf('+')!=-1) { |
choices.document.forms.sch.val5.checked=true; |
choices.document.forms.sch.val5.checked=true; |
} |
} |
Line 342 function draw() {
|
Line 342 function draw() {
|
tablestart('Absolute error, symmetric around value'); |
tablestart('Absolute error, symmetric around value'); |
valline('Value',2,3); |
valline('Value',2,3); |
if ((svalue!='') && (typeof(svalue)!="undefined")) { |
if ((svalue!='') && (typeof(svalue)!="undefined")) { |
choices.document.forms.sch.val2.value=parseInt(svalue); |
choices.document.forms.sch.val2.value=parseFloat(svalue); |
if (svalue.indexOf('+')!=-1) { |
if (svalue.indexOf('+')!=-1) { |
choices.document.forms.sch.val3.checked=true; |
choices.document.forms.sch.val3.checked=true; |
} |
} |
Line 356 function draw() {
|
Line 356 function draw() {
|
if ((svalue!='') && (typeof(svalue)!="undefined")) { |
if ((svalue!='') && (typeof(svalue)!="undefined")) { |
range=svalue.split(','); |
range=svalue.split(','); |
if (typeof(range[1])=='undefined') { range[1]=range[0]; } |
if (typeof(range[1])=='undefined') { range[1]=range[0]; } |
choices.document.forms.sch.val2.value=parseInt(range[0]); |
choices.document.forms.sch.val2.value=parseFloat(range[0]); |
if (range[0].indexOf('+')!=-1) { |
if (range[0].indexOf('+')!=-1) { |
choices.document.forms.sch.val3.checked=true; |
choices.document.forms.sch.val3.checked=true; |
} |
} |
choices.document.forms.sch.val4.value=parseInt(range[1]); |
choices.document.forms.sch.val4.value=parseFloat(range[1]); |
if (range[1].indexOf('+')!=-1) { |
if (range[1].indexOf('+')!=-1) { |
choices.document.forms.sch.val5.checked=true; |
choices.document.forms.sch.val5.checked=true; |
} |
} |
} |
} |
} |
} |
if (pscat=='sigdigits') { |
|
tablestart('Agreement on significant digits'); |
|
choicewrite('<tr bgcolor="#AAFFAA"><td colspan=3>Number of digits: ' |
|
+'<input type=text size=4 name=val2></td></tr>'); |
|
|
|
choicewrite('<tr bgcolor="#AAFFAA"><td colspan=3>Accept if more digits given: ' |
|
+'<input type=checkbox name=val3></td></tr>'); |
|
|
|
} |
|
} |
} |
|
|
if (ptype=='date') { |
if (ptype=='date') { |
Line 414 choicewrite('<tr bgcolor="#AAFFAA"><td c
|
Line 405 choicewrite('<tr bgcolor="#AAFFAA"><td c
|
if (ptype=='int') { |
if (ptype=='int') { |
if (pscat=='default') { |
if (pscat=='default') { |
tablestart('Default value or none'); |
tablestart('Default value or none'); |
choicewrite('</table>'); |
choicewrite('</table>'); |
} else { |
} else { |
|
if (pscat=='range') { |
|
tablestart('Integer range'); |
|
choicewrite('<tr bgcolor="#AAFFAA"><td>Lower Value:'+ |
|
'</td><td colspan=2><input type=text size=4 name=val2'+ |
|
'></td></tr>'); |
|
choicewrite('<tr bgcolor="#AAFFAA"><td>Upper Value:'+ |
|
'</td><td colspan=2><input type=text size=4 name=val4'+ |
|
'></td></tr></table>'); |
|
var range=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=parseInt(range[0]); |
|
choices.document.forms.sch.val4.value=parseInt(range[1]); |
|
} |
|
} else { |
if (pscat=='pos') { |
if (pscat=='pos') { |
tablestart('Positive (non-zero) integer'); |
tablestart('Positive (non-zero) integer'); |
} |
} |
Line 427 choicewrite('<tr bgcolor="#AAFFAA"><td c
|
Line 434 choicewrite('<tr bgcolor="#AAFFAA"><td c
|
rangeparts=split(',',pscat); |
rangeparts=split(',',pscat); |
tablestart('Integer in the range ['+rangeparts[1]+']'); |
tablestart('Integer in the range ['+rangeparts[1]+']'); |
} |
} |
if (pscat=='range') { |
|
tablestart('Integer range'); |
|
} |
|
if (pscat=='any') { |
if (pscat=='any') { |
tablestart('Integer'); |
tablestart('Integer'); |
} |
} |
Line 438 choicewrite('<tr bgcolor="#AAFFAA"><td c
|
Line 442 choicewrite('<tr bgcolor="#AAFFAA"><td c
|
'" name=intval onChange="parent.integereval()">'); |
'" name=intval onChange="parent.integereval()">'); |
choicewrite('</td></table>'); |
choicewrite('</td></table>'); |
} |
} |
|
} |
} |
} |
|
|
if (ptype=='float') { |
if (ptype=='float') { |
Line 532 function assemble() {
|
Line 537 function assemble() {
|
} |
} |
} |
} |
} |
} |
|
if ((ptype=='int') && (pscat=='range')) { |
|
svalue=choices.document.forms.sch.val2.value+','+ |
|
choices.document.forms.sch.val4.value; |
|
} |
if (pscat=='default') { svalue=''; } |
if (pscat=='default') { svalue=''; } |
stype=ptype+'_'+pscat; |
stype=ptype+'_'+pscat; |
} |
} |