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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/aabbcd7d8f3ff13cd601e312bc11f4ae73adca1a/calendar.js/clean/calendar/resources/content/calendar.js