add:  var alarmSvc = Components.classes["@mozilla.org/calendar/alarm-service;1"] .getService(Components.interfaces.calIAlarmService); alarmSvc.startup();  
context: function ltnOnLoad(event){    gMiniMonthLoading = true;    var today = new Date();    var nextmo = nextMonth(today);    document.getElementById("ltnMinimonth").value = today;    gMiniMonthLoading = false;    // nuke the onload, or we get called every time there's    // any load that occurs    document.removeEventListener("load", ltnOnLoad, true);    // Hide the calendar view so it doesn't push the status-bar offscreen    collapseElement(document.getElementById("calendar-view-box"));    // Start observing preferences    var prefService = Components.classes["@mozilla.org/preferences-service;1"]                            .getService(Components.interfaces.nsIPrefService);    var rootPrefBranch = prefService.getBranch("");    ltnPrefObserver.rootPrefBranch = rootPrefBranch;    var pb2 = rootPrefBranch.QueryInterface(        Components.interfaces.nsIPrefBranch2);    pb2.addObserver("calendar.", ltnPrefObserver, false);    ltnPrefObserver.observe(null, null, "");    // Add an unload function to the window so we don't leak the pref observer    document.getElementById("messengerWindow")            .addEventListener("unload", ltnFinish, false);    return;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5cc7591ca9a810190632223b28d071a17402b6d7/messenger-overlay-sidebar.js/clean/calendar/lightning/content/messenger-overlay-sidebar.js