3 function cbi_d_add(field
, target
, value
) {
7 if (!cbi_d
[target
][value
]) {
8 cbi_d
[target
][value
] = [];
10 cbi_d
[target
][value
].push(field
);
13 function cbi_d_update(target
) {
18 for (var x
in cbi_d
[target
]) {
19 for (var i
=0; i
<cbi_d
[target
][x
].length
; i
++) {
20 document
.getElementById(cbi_d
[target
][x
][i
]).style
.display
= "none";
24 var t
= document
.getElementById(target
);
25 if (t
&& t
.value
&& cbi_d
[target
][t
.value
]) {
26 for (var i
=0; i
<cbi_d
[target
][t
.value
].length
; i
++) {
27 document
.getElementById(cbi_d
[target
][t
.value
][i
]).style
.display
= "block";
32 function cbi_d_init() {
33 for (var x
in cbi_d
) {