#ifdef XP_MACOSX true #else false #endif this switch (this.getAttribute("eventnode")) { case "parent": this._eventNode = this.parentNode; break; case "window": this._eventNode = window; break; case "document": this._eventNode = document; break; } this._eventNode.addEventListener("keypress", this, false); this._eventNode.removeEventListener("keypress", this, false); 0 ? selectedIndex : 0; return; } var children = this.childNodes; var length = children.length; for (var i = 0; i < length; i++) { if (children[i].getAttribute("selected") == "true") { this.selectedIndex = i; return; } } var value = this.value; if (value) this.value = value; else this.selectedIndex = 0; ]]> = 0; c--) { if (children[c].value == val) { this.selectedIndex = c; break; } } return val; ]]> this.childNodes.item(this.selectedIndex) = this.childNodes.length) return val; var panel = this._selectedPanel; this._selectedPanel = this.childNodes[val]; this.setAttribute("selectedIndex", val); if (this._selectedPanel != panel) { var event = document.createEvent("Events"); event.initEvent("select", true, true); this.dispatchEvent(event); } return val; ]]> #ifdef XP_MACOSX true #else false #endif