Annotation of rat/client/parameter.html, revision 1.15
1.1 www 1: <html>
2: <!--
3: The LearningOnline Network with CAPA
4: Parameter Input Window
1.7 www 5: 06/16/00,06/17,11/17,11/18,11/23,11/27,11/28,12/15,12/16,
1.10 www 6: 03/21/01,03/24,06/26 Gerd Kortemeyer
1.11 www 7: 07/24/01 Scott Harrison
1.12 www 8: 08/08 Gerd Kortemeyer
1.1 www 9: -->
10: <head>
11: <title>LON-CAPA</title>
12: </head>
13:
14: <script>
15:
16: var ptype='';
17: var pvalue='';
18: var preturn='';
19: var pcode='';
1.2 www 20: var pscat='';
21: var pmarker='';
1.1 www 22: var pname='';
23:
24: var svalue;
1.2 www 25: var stype;
26: var smarker;
1.1 www 27:
28: var vars=new Array();
29:
1.2 www 30: var cdate=new Date();
31:
32: var csec;
33: var cmin;
34: var chour;
35: var cday;
36:
37: var months=new Array();
38:
39:
1.1 www 40: function selwrite(text) {
41: this.window.selector.document.write(text);
42: }
43:
44: function choicestart() {
45: this.window.choices.document.clear();
46: choicewrite('<html><body bgcolor="#FFFFFF">');
47: }
48:
49: function choiceend() {
50: choicewrite('</body></html>');
51: this.window.choices.document.close();
52: }
53:
54: function choicewrite(text) {
55: this.window.choices.document.write(text);
56: }
57:
58: function tablestart(headtext) {
59: choicewrite('<table><tr bgcolor="#AAFFAA"><th colspan=3>'+
60: headtext+'</th></tr>');
61: }
62:
63: function valline(text,id1,id2) {
64: choicewrite('<tr bgcolor="#AAFFAA"><td>'+text+
65: '</td><td><input type=text size=4 name=val'+
66: id1+'></td><td>incl:<input type=checkbox name=val'+
67: id2+'></td></tr>');
68: }
69:
1.2 www 70: function datecalc() {
71: var sform=choices.document.forms.sch;
72:
73: cdate.setHours(sform.hours.options[sform.hours.selectedIndex].value);
74: cdate.setMinutes(sform.minutes.options[sform.minutes.selectedIndex].value);
75: cdate.setSeconds(sform.minutes.options[sform.seconds.selectedIndex].value);
76: cdate.setDate(sform.date.options[sform.date.selectedIndex].value);
77: cdate.setMonth(sform.month.options[sform.month.selectedIndex].value);
78: cdate.setFullYear(sform.year.options[sform.year.selectedIndex].value);
79:
80: draw();
81: }
82:
83: function hour() {
84: var thishour=cdate.getHours();
85: var i; var j;
86: choicewrite('<select name=hours onChange="parent.datecalc();">');
87: for (i=0;i<=23;i++) {
88: choicewrite('<option value='+i);
89: if (i==thishour) {
90: choicewrite(' selected');
91: }
92: choicewrite('>');
93: if (i==12) { choicewrite('noon'); } else {
94: if (i==0) { choicewrite('midnight') } else {
95:
96: if (i<12) { choicewrite(i+' am'); } else {
97: j=i-12; choicewrite(j+' pm');
98: }
99:
100: }
101: }
102: choicewrite('</option>');
103: }
104: choicewrite('</select>');
105: }
106:
107: function minute() {
108: var thisminutes=cdate.getMinutes();
109: var i;
110: choicewrite('<select name=minutes onChange="parent.datecalc();">');
111: for (i=0;i<=59;i++) {
112: choicewrite('<option value='+i);
113: if (i==thisminutes) {
114: choicewrite(' selected');
115: }
116: choicewrite('>'+i+'</option>');
117: }
118: choicewrite('</select>');
119: }
120:
121: function second() {
122: var thisseconds=cdate.getSeconds();
123: var i;
124: choicewrite('<select name=seconds onChange="parent.datecalc();">');
125: for (i=0;i<=59;i++) {
126: choicewrite('<option value='+i);
127: if (i==thisseconds) {
128: choicewrite(' selected');
129: }
130: choicewrite('>'+i+'</option>');
131: }
132: choicewrite('</select>');
133: }
134:
135:
136: function date() {
137: var thisdate=cdate.getDate();
138: var i;
139: choicewrite('<select name=date onChange="parent.datecalc();">');
140: for (i=1;i<=31;i++) {
141: choicewrite('<option value='+i);
142: if (i==thisdate) {
143: choicewrite(' selected');
144: }
145: choicewrite('>'+i+'</option>');
146: }
147: choicewrite('</select>');
148: }
149:
150: function year() {
151: var thisyear=cdate.getFullYear();
152: var i;
153: choicewrite('<select name=year onChange="parent.datecalc();">');
154: for (i=thisyear-25;i<=thisyear+50;i++) {
155: choicewrite('<option value='+i);
156: if (i==thisyear) {
157: choicewrite(' selected');
158: }
159: choicewrite('>'+i+'</option>');
160: }
161: choicewrite('</select>');
162: }
163:
164: function month() {
165: var thismonth=cdate.getMonth();
166: var i;
167: choicewrite('<select name=month onChange="parent.datecalc();">');
168: for (i=0;i<=11;i++) {
169: choicewrite('<option value='+i);
170: if (i==thismonth) {
171: choicewrite(' selected');
172: }
173: choicewrite('>'+months[i]+'</option>');
174: }
175: choicewrite('</select>');
176: }
177:
178:
179: function intminute() {
180: var thisminutes=cmins;
181: var i;
182: choicewrite('<select name=minutes onChange="parent.intcalc();">');
183: for (i=0;i<=59;i++) {
184: choicewrite('<option value='+i);
185: if (i==thisminutes) {
186: choicewrite(' selected');
187: }
188: choicewrite('>'+i+'</option>');
189: }
190: choicewrite('</select>');
191: }
192:
193: function inthour() {
194: var thishours=chours;
195: var i;
196: choicewrite('<select name=hours onChange="parent.intcalc();">');
197: for (i=0;i<=23;i++) {
198: choicewrite('<option value='+i);
199: if (i==thishours) {
200: choicewrite(' selected');
201: }
202: choicewrite('>'+i+'</option>');
203: }
204: choicewrite('</select>');
205: }
206:
207: function intsecond() {
208: var thisseconds=csecs;
209: var i;
210: choicewrite('<select name=seconds onChange="parent.intcalc();">');
211: for (i=0;i<=59;i++) {
212: choicewrite('<option value='+i);
213: if (i==thisseconds) {
214: choicewrite(' selected');
215: }
216: choicewrite('>'+i+'</option>');
217: }
218: choicewrite('</select>');
219: }
220:
221:
222: function intday() {
223: var thisdate=cdays;
224: var i;
225: choicewrite('<select name=date onChange="parent.intcalc();">');
226: for (i=0;i<=31;i++) {
227: choicewrite('<option value='+i);
228: if (i==thisdate) {
229: choicewrite(' selected');
230: }
231: choicewrite('>'+i+'</option>');
232: }
233: choicewrite('</select>');
234: }
235:
236: function intcalc() {
237: var sform=choices.document.forms.sch;
238: svalue=((sform.date.options[sform.date.selectedIndex].value*24+
239: sform.hours.options[sform.hours.selectedIndex].value*1)*60+
240: sform.minutes.options[sform.minutes.selectedIndex].value*1)*60+
241: sform.seconds.options[sform.seconds.selectedIndex].value*1;
242: draw();
243: }
244:
1.6 www 245: function integereval() {
246: svalue=choices.document.forms.sch.intval.value;
247: svalue=Math.round(svalue);
248: if (pscat=='zeropos') { svalue=Math.abs(svalue); }
249: if ((pscat=='pos') && (svalue==0)) {
250: svalue='';
251: }
1.12 www 252: if (pscat.indexOf('inrange')!=-1) {
1.10 www 253: var rangeparts=new Array;
254: rangeparts=split('_',pscat);
1.12 www 255: rangeparts=split(',',rangeparts[1]);
1.10 www 256: if (svalue<rangeparts[0]) { svalue=rangeparts[0]; }
257: if (svalue>rangeparts[1]) { svalue=rangeparts[1]; }
258: }
1.6 www 259: draw();
260: }
261:
262: function floateval() {
263: svalue=choices.document.forms.sch.floatval.value;
264: svalue=1.0*svalue;
265: if (pscat=='pos') { svalue=Math.abs(svalue); }
266: if ((pscat=='zeroone') && ((svalue<0) || (svalue>1))) {
267: svalue='';
268: }
269: draw();
270: }
271:
272: function stringeval() {
273: svalue=choices.document.forms.sch.stringval.value;
274: draw();
275: }
276:
1.2 www 277: function intervaldis() {
278: csecs=svalue;
279: cdays=Math.floor(csecs/86400);
280: csecs-=cdays*86400;
281: chours=Math.floor(csecs/3600);
282: csecs-=chours*3600;
283: cmins=Math.floor(csecs/60);
284: csecs-=cmins*60;
285: choicewrite(cdays+' days '+chours+' hours '
286: +cmins+' mins '+csecs+' secs');
287: }
288:
1.1 www 289: function draw() {
290: choicestart();
1.6 www 291: choicewrite('<form name=sch');
292: if (ptype=='int') {
293: choicewrite(' action="javascript:integereval();"');
294: }
295: if (ptype=='float') {
296: choicewrite(' action="javascript:floateval();"');
297: }
298: if (ptype=='string') {
299: choicewrite(' action="javascript:stringeval();"');
300: }
301: choicewrite('>');
1.1 www 302: if (ptype=='tolerance') {
1.2 www 303: // 0: pscat
304: if (pscat=='default') {
1.1 www 305: tablestart('Use default value or algorithm of resource');
306: }
1.2 www 307: if (pscat=='relative_sym') {
1.1 www 308: // 2: percentage
309: // 3: open
310: tablestart('Percentage error, symmetric around value');
311: valline('Percentage',2,3);
1.13 www 312: if ((svalue!='') && (typeof(svalue)!="undefined")) {
313: choices.document.forms.sch.val2.value=parseInt(svalue);
314: if (svalue.indexOf('+')!=-1) {
315: choices.document.forms.sch.val3.checked=true;
316: }
317: }
1.1 www 318: }
1.2 www 319: if (pscat=='relative') {
1.1 www 320: // 2: left
321: // 3: open
322: // 4: right
323: // 5: open
324: tablestart('Percentage error, asymmetric around value');
325: valline('Upper percentage',2,3);
326: valline('Lower percentage',4,5);
1.13 www 327: var range=new Array;
328: if ((svalue!='') && (typeof(svalue)!="undefined")) {
329: range=svalue.split(',');
330: if (typeof(range[1])=='undefined') { range[1]=range[0]; }
1.15 ! www 331: choices.document.forms.sch.val2.value=parseFloat(range[0]);
1.13 www 332: if (range[0].indexOf('+')!=-1) {
333: choices.document.forms.sch.val3.checked=true;
334: }
1.15 ! www 335: choices.document.forms.sch.val4.value=parseFloat(range[1]);
1.13 www 336: if (range[1].indexOf('+')!=-1) {
337: choices.document.forms.sch.val5.checked=true;
338: }
339: }
1.1 www 340: }
1.2 www 341: if (pscat=='absolute_sym') {
1.1 www 342: tablestart('Absolute error, symmetric around value');
343: valline('Value',2,3);
1.13 www 344: if ((svalue!='') && (typeof(svalue)!="undefined")) {
1.15 ! www 345: choices.document.forms.sch.val2.value=parseFloat(svalue);
1.13 www 346: if (svalue.indexOf('+')!=-1) {
347: choices.document.forms.sch.val3.checked=true;
348: }
349: }
1.1 www 350: }
1.2 www 351: if (pscat=='absolute') {
1.1 www 352: tablestart('Absolute error, asymmetric around value');
353: valline('Upper value',2,3);
354: valline('Lower value',4,5);
1.13 www 355: var range=new Array;
356: if ((svalue!='') && (typeof(svalue)!="undefined")) {
357: range=svalue.split(',');
358: if (typeof(range[1])=='undefined') { range[1]=range[0]; }
1.15 ! www 359: choices.document.forms.sch.val2.value=parseFloat(range[0]);
1.13 www 360: if (range[0].indexOf('+')!=-1) {
361: choices.document.forms.sch.val3.checked=true;
362: }
1.15 ! www 363: choices.document.forms.sch.val4.value=parseFloat(range[1]);
1.13 www 364: if (range[1].indexOf('+')!=-1) {
365: choices.document.forms.sch.val5.checked=true;
366: }
367: }
1.1 www 368: }
369: }
370:
371: if (ptype=='date') {
1.2 www 372: if (pscat=='default') {
373: tablestart('Default value or none');
374: choicewrite('</table>');
375: } else {
376: if (pscat=='start') {
377: tablestart('Starting or opening date and time');
378: }
379: if (pscat=='end') {
380: tablestart('Ending or closing date and time');
381: }
382: if (pscat=='interval') {
383: tablestart('Time interval');
384: choicewrite('<tr bgcolor="#AAFFAA"><td colspan=3>');
385: intervaldis();
386: choicewrite('</td></tr><tr bgcolor="#AAFFAA"><td>Time:'
387: +'</td><td colspan=2>');
388: intday();choicewrite('days ');
389: inthour();choicewrite('hours ');
390: intminute(); choicewrite('mins '); intsecond();
391: choicewrite('secs</td></tr></table>');
392: } else {
393: choicewrite('<tr bgcolor="#AAFFAA"><td colspan=3>'
394: +cdate.toString()+
395: '</td></tr><tr bgcolor="#AAFFAA"><td>Date:</td><td colspan=2>');
396: month();date();year();
397: choicewrite('</td></tr><tr bgcolor="#AAFFAA"><td>Time:'
398: +'</td><td colspan=2>');hour();choicewrite('h ');minute();
399: choicewrite('m ');second();
400: choicewrite('s</td></tr></table>');
401: }
402: }
1.1 www 403: }
404:
1.6 www 405: if (ptype=='int') {
406: if (pscat=='default') {
407: tablestart('Default value or none');
1.14 www 408: choicewrite('</table>');
1.6 www 409: } else {
1.14 www 410: if (pscat=='range') {
411: tablestart('Integer range');
412: choicewrite('<tr bgcolor="#AAFFAA"><td>Lower Value:'+
413: '</td><td colspan=2><input type=text size=4 name=val2'+
414: '></td></tr>');
415: choicewrite('<tr bgcolor="#AAFFAA"><td>Upper Value:'+
416: '</td><td colspan=2><input type=text size=4 name=val4'+
417: '></td></tr></table>');
418: var range=new Array;
419: if ((svalue!='') && (typeof(svalue)!="undefined")) {
420: range=svalue.split(',');
421: if (typeof(range[1])=='undefined') { range[1]=range[0]; }
422: choices.document.forms.sch.val2.value=parseInt(range[0]);
423: choices.document.forms.sch.val4.value=parseInt(range[1]);
424: }
425: } else {
1.6 www 426: if (pscat=='pos') {
427: tablestart('Positive (non-zero) integer');
428: }
429: if (pscat=='zeropos') {
430: tablestart('Positive integer or zero');
431: }
1.12 www 432: if (pscat.indexOf('inrange')!=-1) {
1.10 www 433: var rangeparts=new Array;
1.12 www 434: rangeparts=split(',',pscat);
1.10 www 435: tablestart('Integer in the range ['+rangeparts[1]+']');
436: }
1.6 www 437: if (pscat=='any') {
438: tablestart('Integer');
439: }
440: choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>');
441: choicewrite('<input name=intval size=10 value="'+svalue+
442: '" name=intval onChange="parent.integereval()">');
443: choicewrite('</td></table>');
444: }
1.14 www 445: }
1.1 www 446: }
447:
1.6 www 448: if (ptype=='float') {
449: if (pscat=='default') {
450: tablestart('Default value or none');
451: choicewrite('</table>');
452: } else {
453: if (pscat=='pos') {
454: tablestart('Positive floating point number or zero');
455: }
456: if (pscat=='zeroone') {
457: tablestart('Floating point number between zero and one');
458: }
459: if (pscat=='any') {
460: tablestart('Floating point number');
461: }
462: choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>');
463: choicewrite('<input name=floatval size=10 value="'+svalue+
464: '" name=floatval onChange="parent.floateval()">');
465: choicewrite('</td></table>');
466: }
1.1 www 467: }
468:
1.6 www 469: if (ptype=='string') {
470: if (pscat=='default') {
471: tablestart('Default value or none');
472: choicewrite('</table>');
473: } else {
474: if (pscat=='any') {
475: tablestart('Text');
476: }
477: choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>');
478: choicewrite('<input name=intval size=20 value="'+svalue+
479: '" name=stringval onChange="parent.stringeval()">');
480: choicewrite('</td></table>');
481: }
1.1 www 482: }
483:
484: choicewrite('</table></form>');
485: choiceend();
486: }
487:
488: function sopt(va,text) {
489: selwrite('<option value="'+va+'"');
1.2 www 490: if (va==pscat) {
1.1 www 491: selwrite(' selected');
492: }
493: selwrite('>'+text+'</option>');
494: }
495:
496: function catchange() {
497: var sform=selector.document.forms.fsel.fcat;
1.2 www 498: pscat=sform.options[sform.selectedIndex].value;
1.1 www 499: draw();
500: }
501:
502: function assemble() {
1.2 www 503: if ((ptype=='date') && (pscat!='interval')) {
504: svalue=Math.round(cdate.getTime()/1000);
505: }
1.12 www 506: if (ptype=='tolerance') {
507: if (pscat=='relative_sym') {
508: svalue=choices.document.forms.sch.val2.value+'%';
509: if (choices.document.forms.sch.val3.checked) {
510: svalue+='+';
511: }
512: }
513: if (pscat=='absolute_sym') {
514: svalue=choices.document.forms.sch.val2.value;
515: if (choices.document.forms.sch.val3.checked) {
516: svalue+='+';
517: }
518: }
519: if (pscat=='absolute') {
520: svalue=choices.document.forms.sch.val2.value;
521: if (choices.document.forms.sch.val3.checked) {
522: svalue+='+';
523: }
524: svalue+=','+choices.document.forms.sch.val4.value;
525: if (choices.document.forms.sch.val5.checked) {
526: svalue+='+';
527: }
528: }
529: if (pscat=='relative') {
530: svalue=choices.document.forms.sch.val2.value+'%';
531: if (choices.document.forms.sch.val3.checked) {
532: svalue+='+';
533: }
534: svalue+=','+choices.document.forms.sch.val4.value+'%';
535: if (choices.document.forms.sch.val5.checked) {
536: svalue+='+';
537: }
538: }
1.14 www 539: }
540: if ((ptype=='int') && (pscat=='range')) {
541: svalue=choices.document.forms.sch.val2.value+','+
542: choices.document.forms.sch.val4.value;
1.12 www 543: }
1.6 www 544: if (pscat=='default') { svalue=''; }
1.2 www 545: stype=ptype+'_'+pscat;
1.1 www 546: }
547:
548:
549: function init() {
550: var i;
1.2 www 551: var subs=new Array();
1.1 www 552: var namevalue=this.window.location.search.split('&');
553: namevalue[0]=namevalue[0].substr(1,namevalue[0].length-1);
554:
555: for (i=0;i<namevalue.length;i++) {
556: var pair=namevalue[i].split('=');
1.3 www 557: pair[1]=unescape(pair[1]);
1.1 www 558: if (pair[0]=='value') { pvalue=pair[1]; }
1.2 www 559: if (pair[0]=='type') { subs=pair[1].split('_');
560: ptype=subs[0];
561: pscat=subs[1];
1.11 www 562: if (typeof(subs[2])!="undefined") {
563: pscat+='_'+subs[2];
564: }
565: if ((pscat=='') || (typeof(pscat)=="undefined")) {
1.6 www 566: pscat='default';
567: }
1.2 www 568: }
1.1 www 569: if (pair[0]=='return') { preturn=pair[1]; }
570: if (pair[0]=='call') { pcode=pair[1]; }
1.2 www 571: if (pair[0]=='marker') { pmarker=pair[1]; }
1.1 www 572: if (pair[0]=='name') { pname=pair[1]; }
573: }
574:
575: svalue=pvalue;
1.6 www 576: if (((ptype=='float') || (ptype=='string') || (ptype=='int')) &&
577: (pscat=='default') &&
1.11 www 578: (typeof(svalue)!="undefined") &&
579: (svalue!=0) && (svalue!='')) { pscat='any'; }
1.1 www 580:
1.13 www 581: if (ptype=='tolerance') {
582: var tperc=0;
583: var trange=0;
584: if (typeof(svalue)!='undefined') {
585: if (svalue.indexOf('%')!=-1) { tperc=1; }
586: if (svalue.indexOf(',')!=-1) { trange=1; }
587: if (trange) {
588: if (tperc) { pscat='relative'; } else { pscat='absolute'; }
589: } else {
590: if (tperc) { pscat='relative_sym'; } else { pscat='absolute_sym'; }
591: }
592: }
593: }
594:
1.1 www 595: this.window.selector.document.clear();
596: selwrite('<html><body bgcolor="#FFFFFF">');
597:
1.8 www 598: selwrite('<form name="fsel"><b>'+pname+'</b><br>');
1.1 www 599: selwrite('<select name="fcat" onChange="parent.catchange();">');
1.12 www 600:
1.1 www 601: if (ptype=='tolerance') {
602: sopt('default','Default');
603: sopt('relative_sym','Relative Tolerance, Symmetric (percent)');
604: sopt('relative','Relative Tolerance (percentages)');
605: sopt('absolute_sym','Absolute Tolerance, Symmetric (value)');
606: sopt('absolute','Absolute Tolerance (values)');
607: }
608:
609: if (ptype=='date') {
610: sopt('default','Default');
611: sopt('start','Starting Date');
612: sopt('end','Ending Date');
1.2 www 613: sopt('interval','Time Interval');
614:
1.11 www 615: if ((pvalue!='') && (typeof(pvalue)!="undefined")) {
1.2 www 616: cdate.setTime(pvalue*1000);
617: }
618:
619: months[0]='January';
620: months[1]='February';
621: months[2]='March';
622: months[3]='April';
623: months[4]='May';
624: months[5]='June';
625: months[6]='July';
626: months[7]='August';
627: months[8]='September';
628: months[9]='October';
629: months[10]='November';
630: months[11]='December';
1.1 www 631: }
1.2 www 632:
1.6 www 633: if (ptype=='int') {
634: sopt('default','Default');
635: sopt('pos','Positive Integer, Not Zero');
636: sopt('zeropos','Positive Integer or Zero');
1.13 www 637: sopt('inrange','Integer in Range');
638: sopt('range','Range of Integers');
1.6 www 639: sopt('any','Integer');
1.1 www 640: }
641:
1.6 www 642: if (ptype=='float') {
643: sopt('default','Default');
644: sopt('zeroone','Floating Point between 0 and 1');
645: sopt('pos','Positive Floating Point');
646: sopt('any','Floating Point');
1.1 www 647:
648: }
649:
1.6 www 650: if (ptype=='string') {
651: sopt('default','Default');
652: sopt('string','String Value');
1.1 www 653: }
654:
655: selwrite('</select></form>');
656:
1.2 www 657: selwrite('<a href="javascript:parent.assemble();');
1.1 www 658: if (preturn!='') {
1.4 www 659: selwrite(
660: 'parent.opener.document.'+preturn+'_value.value=parent.window.svalue;');
661: selwrite(
662: 'parent.opener.document.'+preturn+'_type.value=parent.window.stype;');
1.2 www 663: }
664: if (pmarker!='') {
1.4 www 665: selwrite(
666: 'parent.opener.document.'+preturn+'_marker.value=parent.window.pmarker;');
1.1 www 667: }
668: if (pcode!='') {
1.4 www 669: selwrite('parent.opener.'+pcode+'();');
1.1 www 670: }
1.4 www 671: selwrite('">Store</a> ');
1.5 www 672:
673: selwrite('<a href="javascript:');
674: selwrite(
675: 'parent.opener.document.'+preturn+'_value.value='+"'';");
676: if (pmarker!='') {
677: selwrite(
678: 'parent.opener.document.'+preturn+'_marker.value=parent.window.pmarker;');
679: }
680: if (pcode!='') {
681: selwrite('parent.opener.'+pcode+'();');
682: }
683: selwrite('">Delete</a> ');
1.4 www 684:
685: selwrite('<a href="javascript:');
686: if (preturn!='') {
687: selwrite('parent.opener.document.'+preturn+'_value.value='+"'';");
688: selwrite('parent.opener.document.'+preturn+'_type.value='+"'';");
689: }
690: if (pmarker!='') {
691: selwrite('parent.opener.document.'+preturn+'_marker.value='+"'';");
692: }
693: if (pcode!='') {
694: selwrite('parent.opener.'+pcode+'();');
695: }
696: selwrite('">Cancel</a>');
1.1 www 697:
698: selwrite('</body></html>');
699: this.window.selector.document.close();
1.2 www 700: draw();
1.1 www 701:
702: }
703:
704: </script>
705:
1.2 www 706: <frameset rows="120,*" onLoad="init();">
1.1 www 707: <frame name=selector src="empty.html">
708: <frame name=choices src="empty.html">
709: </frameset>
710:
711:
712:
713: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>