rem: dialog.OKButton = document.getElementById("ok"); 
add: dialog.OKButton = document.documentElement.getButton("accept"); 
context: function mailViewOnLoad(){  initializeSearchWidgets();  initializeMailViewOverrides();  dialog = {};  if ("arguments" in window && window.arguments[0])   {    var args = window.arguments[0];    if ("mailView" in args)       gMailView = window.arguments[0].mailView;     if ("onOkCallback" in args)      dialog.okCallback =  window.arguments[0].onOkCallback;  }  dialog.OKButton = document.getElementById("ok");  dialog.nameField = document.getElementById("name");  dialog.nameField.focus();  setSearchScope(nsMsgSearchScope.offlineMail);    if (gMailView)  {    dialog.nameField.value = gMailView.mailViewName;    initializeSearchRows(nsMsgSearchScope.offlineMail, gMailView.searchTerms);    if (gMailView.searchTerms.Count() > 1)       gSearchLessButton.removeAttribute("disabled", "false");  }  else    onMore(null);   doEnabling();  doSetOKCancel(onOK, onCancel);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/25d5c9c929230e2845a1b8a4c1c8c3394e0d85de/mailViewSetup.js/clean/mailnews/extensions/mailviews/resources/content/mailViewSetup.js