rem: function openPreferences() { openDialog("chrome: "chrome,titlebar,resizable,modal"); 
add: function openPreferences() {  var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator);  var win = wm.getMostRecentWindow("Calendar:Preferences"); var url = "chrome: var features = "chrome,titlebar,toolbar,centerscreen,dialog=no";  if (win) { win.focus(); } else { openDialog(url, "Preferences", features); } 
context: function openPreferences(){  openDialog("chrome://calendar/content/pref/pref.xul","PrefWindow",             "chrome,titlebar,resizable,modal");}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/0d2810902cb8fb75c8e2673f1c8b098c286defb1/calendar.js/buggy/calendar/resources/content/calendar.js