version 1.16, 2001/12/19 17:22:29
|
version 1.18, 2002/06/21 18:28:57
|
Line 349 function draw() {
|
Line 349 function draw() {
|
tablestart('Percentage error, asymmetric around value'); |
tablestart('Percentage error, asymmetric around value'); |
valline('Upper percentage',2,3); |
valline('Upper percentage',2,3); |
valline('Lower percentage',4,5); |
valline('Lower percentage',4,5); |
var range=new Array; |
var range1=new Array; |
if ((svalue!='') && (typeof(svalue)!="undefined")) { |
if ((svalue!='') && (typeof(svalue)!="undefined")) { |
range=svalue.split(','); |
range1=svalue.split(','); |
if (typeof(range[1])=='undefined') { range[1]=range[0]; } |
if (typeof(range1[1])=='undefined') { range1[1]=range1[0]; } |
choices.document.forms.sch.val2.value=parseFloat(range[0]); |
choices.document.forms.sch.val2.value=parseFloat(range1[0]); |
if (range[0].indexOf('+')!=-1) { |
if (range1[0].indexOf('+')!=-1) { |
choices.document.forms.sch.val3.checked=true; |
choices.document.forms.sch.val3.checked=true; |
} |
} |
choices.document.forms.sch.val4.value=parseFloat(range[1]); |
choices.document.forms.sch.val4.value=parseFloat(range1[1]); |
if (range[1].indexOf('+')!=-1) { |
if (range1[1].indexOf('+')!=-1) { |
choices.document.forms.sch.val5.checked=true; |
choices.document.forms.sch.val5.checked=true; |
} |
} |
} |
} |
Line 377 function draw() {
|
Line 377 function draw() {
|
tablestart('Absolute error, asymmetric around value'); |
tablestart('Absolute error, asymmetric around value'); |
valline('Upper value',2,3); |
valline('Upper value',2,3); |
valline('Lower value',4,5); |
valline('Lower value',4,5); |
var range=new Array; |
var range2=new Array; |
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(range2[1])=='undefined') { range2[1]=range2[0]; } |
choices.document.forms.sch.val2.value=parseFloat(range[0]); |
choices.document.forms.sch.val2.value=parseFloat(range2[0]); |
if (range[0].indexOf('+')!=-1) { |
if (range2[0].indexOf('+')!=-1) { |
choices.document.forms.sch.val3.checked=true; |
choices.document.forms.sch.val3.checked=true; |
} |
} |
choices.document.forms.sch.val4.value=parseFloat(range[1]); |
choices.document.forms.sch.val4.value=parseFloat(range2[1]); |
if (range[1].indexOf('+')!=-1) { |
if (range2[1].indexOf('+')!=-1) { |
choices.document.forms.sch.val5.checked=true; |
choices.document.forms.sch.val5.checked=true; |
} |
} |
} |
} |
Line 500 function draw() {
|
Line 500 function draw() {
|
tablestart('Text'); |
tablestart('Text'); |
} |
} |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<input name=intval size=20 value="'+svalue+ |
choicewrite('<input name=stringval size=20 value="'+svalue+ |
'" name=stringval onChange="parent.stringeval()">'); |
'" name=stringval onChange="parent.stringeval()">'); |
choicewrite('</td></table>'); |
choicewrite('</td></table>'); |
} |
} |
Line 708 function init() {
|
Line 708 function init() {
|
selwrite('">Delete</a> '); |
selwrite('">Delete</a> '); |
|
|
selwrite('<a href="javascript:'); |
selwrite('<a href="javascript:'); |
if (preturn!='') { |
// Old code : |
selwrite('parent.opener.document.'+preturn+'_value.value='+"'';"); |
//---------------------------------------------------------------------- |
selwrite('parent.opener.document.'+preturn+'_type.value='+"'';"); |
// if (preturn!='') { |
} |
// selwrite('parent.opener.document.'+preturn+'_value.value='+"'';"); |
if (pmarker!='') { |
// selwrite('parent.opener.document.'+preturn+'_type.value='+"'';"); |
selwrite('parent.opener.document.'+preturn+'_marker.value='+"'';"); |
// } |
} |
// if (pmarker!='') { |
if (pcode!='') { |
// selwrite('parent.opener.document.'+preturn+'_marker.value='+"'';"); |
selwrite('parent.opener.'+pcode+'();'); |
// } |
} |
// if (pcode!='') { |
|
// selwrite('parent.opener.'+pcode+'();'); |
|
// } |
|
//---------------------------------------------------------------------- |
|
// Just close the window to 'cancel' the operation. There are javascript |
|
// errors in the above commented out code that I have not been able to |
|
// track down. I think they reside in 'parent.opener.'+pcode+'();' |
|
// |
|
selwrite('this.parent.close();'); |
selwrite('">Cancel</a>'); |
selwrite('">Cancel</a>'); |
|
|
selwrite('</body></html>'); |
selwrite('</body></html>'); |