rem: removeRow(removeButton, input.name.substr(10)); 
add: var endIndex = input.name.search(/_\d+$/); if (endIndex < 0) endIndex = input.name.length; removeRow(removeButton, input.name.substring(10, endIndex)); 
context:   function initializeFilter(input) {    var removeButton = document.createElement("input");    removeButton.type = "button";    removeButton.value = input.value;    if (input.name.substr(0, 10) == "rm_filter_") {      removeButton.onclick = function() {        removeRow(removeButton, input.name.substr(10));        return false;      }    } else {      removeButton.onclick = function() {        removeRow(removeButton);        return false;      }    }    input.parentNode.replaceChild(removeButton, input);  }
meta: 1802	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1802/897783237ffb06d569ad79113b3cdf155628b3eb/query.js/clean/htdocs/js/query.js