rem: for(var i = 0; i < node.childNodes.length; i++) replaceIds(newId, old, node.childNodes[i]); 
add: for(var i = 0; i != node.childNodes.length; i++) replaceIds(newId, old, node.childNodes[i]); 
context:     function replaceIds(newId, old, node) {      if(node.id) node.id = newId + node.id.substring(old.length);      for(var i = 0; i < node.childNodes.length; i++) replaceIds(newId, old, node.childNodes[i]);    }
meta: 3385	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3385/15f3df693ddf02fb9ee6a2662189220868368b23/cardgame.js/buggy/cardgame.js