 gDeleteButton.disabled = !oneFilterSelected; 
 gDeleteButton.disabled = !numFiltersSelected; 
function updateButtons(){    var numFiltersSelected = gFilterTree.view.selection.count;    var oneFilterSelected = (numFiltersSelected == 1);    var filter = currentFilter();    // "edit" only enabled when one filter selected or if we couldn't parse the filter    gEditButton.disabled = !oneFilterSelected || filter.unparseable;        // "delete" only enabled when one filter selected    gDeleteButton.disabled = !oneFilterSelected;    // we can run multiple filters on a folder    // so only disable this UI if no filters are selected    gRunFiltersFolderPickerLabel.disabled = !numFiltersSelected;    gRunFiltersFolderPicker.disabled = !numFiltersSelected;    gRunFiltersButton.disabled = !numFiltersSelected;    // "up" enabled only if one filter selected, and it's not the first    gReorderUpButton.disabled = !(oneFilterSelected && gFilterTree.currentIndex > 0);    // "down" enabled only if one filter selected, and it's not the last    gReorderDownButton.disabled = !(oneFilterSelected && gFilterTree.currentIndex < gFilterTree.view.rowCount-1);}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/db2fa69d915c48a69d0b62a52066dc2673a89ba5/FilterListDialog.js/buggy/mailnews/base/search/resources/content/FilterListDialog.js