rem: this.tabs.selectedItem = this.tabs.childNodes[index]; 
add: { for (var i = 0; i < this.tabs.childNodes.length; ++i) { var tab = this.tabs.childNodes[i]; tab.selected = false; tab.removeAttribute("selected"); tab.removeAttribute("beforeselected"); tab.removeAttribute("afterselected"); }  tab = this.tabs.childNodes[index]; tab.selected = true; tab.setAttribute("selected", "true"); if (tab.previousSibling) tab.previousSibling.setAttribute("beforeselected", "true"); if (tab.nextSibling) tab.nextSibling.setAttribute("afterselected", "true");  this.tabs.selectedItem = tab; if (!ASSERT(index <= (this.deck.childNodes.length - 1) && index >= 0, "index ``" + index + "'' out of range")) { return; } this.deck.selectedIndex = index; } 
context: function s2v_showtab (index){    //dd ("show tab " + index);    if (this.tabs)        this.tabs.selectedItem = this.tabs.childNodes[index];    else        this.lastSelectedTab = index;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b0b8cec04bd582c27a41817979fe87561132d01d/venkman-views.js/buggy/extensions/venkman/resources/content/venkman-views.js