var item = this.selectedItem; if (item) { function selectPrevItem(aItem, aSelect) { aSelect.selectedItem = aItem; return false; } this.cycleTraverseItems(item, true, selectPrevItem, this); } var item = this.selectedItem; if (item) { function selectNextItem(aItem, aSelect) { aSelect.selectedItem = aItem; return false; } this.cycleTraverseItems(item, false, selectNextItem, this); } return this.control.disabled; this.control.disabled = val; if (val) this.setAttribute('disabled', 'disabled'); else this.removeAttribute('disabled'); return this.ownerDocument. getAnonymousElementByAttribute(this, "anonid", "control"); this.updateInstanceData(false); if (this.disabled) return; if (event.originalTarget != this.control) { // Select/unselect checkbox that is representation of xforms item // element if user clicks xforms label element. this.selected = !this.selected; this.focus(); } this.updateInstanceData(true);