var cbi_d = {}; function cbi_d_add(field, target, value) { if (!cbi_d[target]) { cbi_d[target] = {}; } if (!cbi_d[target][value]) { cbi_d[target][value] = []; } var obj = document.getElementById(field); if (obj) { var entry = { "node": obj, "parent": obj.parentNode, "next": obj.nextSibling } cbi_d[target][value].unshift(entry); } } function cbi_d_update(target) { if (!cbi_d[target]) { return; } for (var x in cbi_d[target]) { for (var i=0; i