rem: if (numSelected < 2) goSetMenuValue(command, "valueCard"); else goSetMenuValue(command, "valueCards"); 
add: switch (GetSelectedCardTypes()) { case kSingleListOnly: goSetMenuValue(command, "valueList"); break; case kMultipleListsOnly: goSetMenuValue(command, "valueLists"); break; case kListsAndCards: goSetMenuValue(command, "valueItems"); break; case kCardsOnly: default: if (numSelected < 2) goSetMenuValue(command, "valueCard"); else goSetMenuValue(command, "valueCards"); break; } 
context:   isCommandEnabled: function(command)  {    switch (command) {      case "cmd_selectAll":        return true;      case "cmd_delete":      case "button_delete":        var numSelected;        var enabled = false;        if (gAbView && gAbView.selection) {          if (gAbView.directory)                     enabled = gAbView.directory.operations & gAbView.directory.opWrite;          numSelected = gAbView.selection.count;        }        else           numSelected = 0;        // fix me, don't update on isCommandEnabled        if (command == "cmd_delete") {          if (numSelected < 2)            goSetMenuValue(command, "valueCard");          else            goSetMenuValue(command, "valueCards");        }        return (enabled && (numSelected > 0));      case "button_edit":        return (GetSelectedCardIndex() != -1);      default:        return false;    }  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/49439c028dbc7099765c4901feb12edae4058439/abCommon.js/buggy/mailnews/addrbook/resources/content/abCommon.js