diff --git a/mozilla/mailnews/addrbook/resources/content/abCommon.js b/mozilla/mailnews/addrbook/resources/content/abCommon.js
index 9a9004c9fea..22ea1bb3e99 100644
--- a/mozilla/mailnews/addrbook/resources/content/abCommon.js
+++ b/mozilla/mailnews/addrbook/resources/content/abCommon.js
@@ -1,5 +1,84 @@
// functions needed from abMainWindow and abSelectAddresses
+// Controller object for Results Pane
+var ResultsPaneController =
+{
+ IsCommandEnabled: function(command)
+ {
+ dump("IsCommandEnabled" + "\n");
+ switch ( command )
+ {
+ case "cmd_selectAll":
+ return true;
+ default:
+ return false;
+ }
+ },
+
+ DoCommand: function(command)
+ {
+ switch ( command )
+ {
+ case "cmd_selectAll":
+ var resultsTree = document.getElementById('resultsTree');
+ if ( resultsTree )
+ {
+ dump("select all now!!!!!!" + "\n");
+ resultsTree.selectAll();
+ }
+ break;
+ }
+ }
+};
+
+
+// Controller object for Dir Pane
+var DirPaneController =
+{
+ IsCommandEnabled: function(command)
+ {
+ dump("IsCommandEnabled" + "\n");
+ switch ( command )
+ {
+ case "cmd_selectAll":
+ return true;
+ default:
+ return false;
+ }
+ },
+
+ DoCommand: function(command)
+ {
+ switch ( command )
+ {
+ case "cmd_selectAll":
+ var dirTree = document.getElementById('dirTree');
+ if ( dirTree )
+ {
+ dump("select all now!!!!!!" + "\n");
+ dirTree.selectAll();
+ }
+ break;
+ }
+ }
+};
+
+function SetupCommandUpdateHandlers()
+{
+ var widget;
+
+ // dir pane
+ widget = document.getElementById('dirTree');
+ if ( widget )
+ widget.controller = DirPaneController;
+
+ // results pane
+ widget = document.getElementById('resultsTree');
+ if ( widget )
+ widget.controller = ResultsPaneController;
+}
+
+
function AbNewCard()
{
var selectedAB = 0;
diff --git a/mozilla/mailnews/addrbook/resources/content/abNewCardDialog.xul b/mozilla/mailnews/addrbook/resources/content/abNewCardDialog.xul
index 21c68a2c840..daf23960e14 100644
--- a/mozilla/mailnews/addrbook/resources/content/abNewCardDialog.xul
+++ b/mozilla/mailnews/addrbook/resources/content/abNewCardDialog.xul
@@ -40,7 +40,7 @@ Rights Reserved.
&chooseAddressBook.label;