rem: if (reminder.relation != "START") { 
add: if (reminder.relation != "END") { 
context: function saveReminder(item) {    var reminderPopup = document.getElementById("item-alarm");  if (reminderPopup.value == 'none') {    item.alarmOffset = null;    item.alarmLastAck = null;    item.alarmRelated = null;  }  else {      var menuitem = reminderPopup.selectedItem;        // custom reminder entries carry their own reminder object    // with them, pre-defined entries specify the necessary information    // as attributes attached to the menuitem elements.    var reminder = menuitem.reminder;    if (!reminder) {      reminder = {};      reminder.length = menuitem.getAttribute('length');      reminder.unit = menuitem.getAttribute('unit');      reminder.relation = menuitem.getAttribute('relation');      reminder.origin = menuitem.getAttribute('origin');    }    var duration = Components.classes["@mozilla.org/calendar/duration;1"]                             .createInstance(Components.interfaces.calIDuration);    duration[reminder.unit] = Number(reminder.length);    if (reminder.relation != "START") {      duration.isNegative = true;    }    duration.normalize();    item.alarmOffset = duration;    if (Number(reminder.origin) >= 0) {        item.alarmRelated = Components.interfaces.calIItemBase.ALARM_RELATED_START;    } else {        item.alarmRelated = Components.interfaces.calIItemBase.ALARM_RELATED_END;    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/867bfb0900d1ea596d81462142bd2b6ef5dd9e7a/sun-calendar-event-dialog.js/clean/calendar/prototypes/wcap/sun-calendar-event-dialog.js