add:  window.getAttention(); 
context: function addAlarm(event){  var alarmList = document.getElementById("alarmlist");  var alarmWidget = document.createElement("calendar-alarm-widget");  alarmWidget.setAttribute("title", event.title);  var time = event.startDate || event.entryDate || event.dueDate;  var dateFormatter = Components.classes["@mozilla.org/calendar/datetime-formatter;1"]                                .getService(Components.interfaces.calIDateTimeFormatter);  alarmWidget.setAttribute("time", dateFormatter.formatDateTime(time));  alarmWidget.setAttribute("location", event.getProperty("LOCATION"));  alarmWidget.addEventListener("snooze", onSnoozeAlarm, false);  alarmWidget.addEventListener("dismiss", onDismissAlarm, false);  alarmWidget.item = event;  alarmList.appendChild(alarmWidget);   var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService);   var calendarPrefs = prefService.getBranch("calendar.");   var playSound = calendarPrefs.getBoolPref("alarms.playsound");   if (playSound) {     try {       var soundURL = calendarPrefs.getCharPref("alarms.soundURL");       var sound = Components.classes["@mozilla.org/sound;1"]                             .createInstance(Components.interfaces.nsISound);       if (soundURL && soundURL.length && soundURL.length > 0) {         soundURL = makeURL(soundURL);         sound.init();         sound.play(soundURL);       } else {         sound.init();         sound.beep();       }     } catch (ex) {       dump("unable to play sound...\n" + ex + "\n");     }   }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/a1664d4bd0585f538d405640ae50f26dba88b583/calendar-alarm-dialog.js/clean/calendar/base/content/calendar-alarm-dialog.js