63d28811 |
1 | function popUpProperties(inobj) { |
2 | op = window.open(); |
3 | op.document.open('text/plain'); |
4 | for (objprop in inobj) { |
5 | op.document.write(objprop + ' => ' + inobj[objprop] + '\n'); |
6 | } |
7 | op.document.close(); |
8 | } |
9 | |
10 | function fillmessagebox(text) { |
11 | document.form.message.value = text; |
12 | } |
13 | |
14 | function copyrichtext(textname) { |
15 | /// Legacy stub for old editor - to be removed soon |
16 | return true; |
17 | } |
18 | |
19 | function checkall() { |
20 | void(d=document); |
21 | void(el=d.getElementsByTagName('INPUT')); |
22 | for(i=0;i<el.length;i++) |
23 | void(el[i].checked=1) |
24 | } |
25 | |
03f9425f |
26 | function checknone() { |
27 | void(d=document); |
28 | void(el=d.getElementsByTagName('INPUT')); |
29 | for(i=0;i<el.length;i++) |
30 | void(el[i].checked=0) |
31 | } |
32 | |
63d28811 |
33 | function lockoptions(form, master, subitems) { |
34 | // subitems is an array of names of sub items |
35 | // requires that each item in subitems has a |
36 | // companion hidden item in the form with the |
37 | // same name but prefixed by "h" |
38 | if (eval("document."+form+"."+master+".checked")) { |
39 | for (i=0; i<subitems.length; i++) { |
40 | unlockoption(form, subitems[i]); |
41 | } |
42 | } else { |
43 | for (i=0; i<subitems.length; i++) { |
44 | lockoption(form, subitems[i]); |
45 | } |
46 | } |
47 | return(true); |
48 | } |
49 | |
50 | function lockoption(form,item) { |
51 | eval("document."+form+"."+item+".disabled=true");/* IE thing */ |
52 | eval("document."+form+".h"+item+".value=1"); |
53 | } |
54 | |
55 | function unlockoption(form,item) { |
56 | eval("document."+form+"."+item+".disabled=false");/* IE thing */ |
57 | eval("document."+form+".h"+item+".value=0"); |
58 | } |