version 1.13, 2001/08/08 16:41:28
|
version 1.14, 2001/08/08 18:36:24
|
Line 366 function draw() {
|
Line 366 function draw() {
|
} |
} |
} |
} |
} |
} |
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; |
} |
} |