rem: var numSelected = 0 
context:   isCommandEnabled: function(command)  {    var numSelected = 0    switch (command) {      case "cmd_selectAll":        return true;      case "cmd_delete":      case "button_delete":        if (resultsTree && resultsTree.selectedItems)          numSelected = resultsTree.selectedItems.length;        if (command == "cmd_delete") {          if (numSelected < 2)            goSetMenuValue(command, "valueCard");          else            goSetMenuValue(command, "valueCards");        }        return (numSelected > 0);      case "button_edit":        if (resultsTree && resultsTree.selectedItems)          numSelected = resultsTree.selectedItems.length;        return (numSelected == 1);      default:        return false;    }  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/404e12e0541a3ffd54ae714e9a3401c380718f10/abCommon.js/clean/mailnews/addrbook/resources/content/abCommon.js