rem: var panels = document.getElementsByClassName("category_panel"); for(var i=0; i<panels.length; i++) { var fullId = panels[i].id; var index = fullId.lastIndexOf('_'); var catId = fullId.substring(0, index); showCategory(catId); } } 
add: var panels = document.getElementsByClassName("category_panel"); for(var i=0; i<panels.length; i++) { var fullId = panels[i].id; var index = fullId.lastIndexOf('_'); var catId = fullId.substring(0, index); showCategory(catId); } } 
context: 	function openAll() {      var panels = document.getElementsByClassName("category_panel");      for(var i=0; i<panels.length; i++) {        var fullId = panels[i].id;        var index = fullId.lastIndexOf('_');        var catId = fullId.substring(0, index);        showCategory(catId);      }	}
meta: 9897	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9897/aa3cfe0355bb63a18f28f853c13d4daf996b9768/collapsiblePanel.js/buggy/website/js/collapsiblePanel.js