rem: relationString ], 3); 
add: relationString, originString], 4); 
context: function updateReminderDetails(){  // find relevant elements in the document  var reminderPopup = document.getElementById("item-alarm");  var reminderDetails = document.getElementById("reminder-details");    // first of all collapse the details text. if we fail to  // create a details string, we simply don't show anything.  reminderDetails.setAttribute("collapsed","true");    // don't try to show the details text  // for anything but a custom recurrence rule.  if(reminderPopup.value == "custom") {    var reminder = document.getElementById("reminder-custom-menuitem").reminder;        if(reminder) {      var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"]                          .getService(Components.interfaces.nsIStringBundleService);      var props = sbs.createBundle("chrome://calendar/locale/sun-calendar-event-dialog.properties");      var unitString;      switch(reminder.unit) {        case 'minutes':          unitString = Number(reminder.length) <= 1 ?            props.GetStringFromName('reminderCustomUnitMinute') :            props.GetStringFromName('reminderCustomUnitMinutes');          break;        case 'hours':          unitString = Number(reminder.length) <= 1 ?            props.GetStringFromName('reminderCustomUnitHour') :            props.GetStringFromName('reminderCustomUnitHours');          break;        case 'days':          unitString = Number(reminder.length) <= 1 ?            props.GetStringFromName('reminderCustomUnitDay') :            props.GetStringFromName('reminderCustomUnitDays');          break;      }      var relationString;      switch(reminder.relation) {        case 'START':          relationString = props.GetStringFromName('reminderCustomRelationStart');          break;        case 'END':          relationString = props.GetStringFromName('reminderCustomRelationEnd');          break;      }      var detailsString = props.formatStringFromName(        'reminderCustomTitle',        [ reminder.length,          unitString,          relationString ], 3);      var lines = detailsString.split("\n");      reminderDetails.removeAttribute("collapsed");      while(reminderDetails.childNodes.length > lines.length)        reminderDetails.removeChild(reminderDetails.lastChild);      var numChilds = reminderDetails.childNodes.length;      for (var i = 0; i < lines.length; i++) {        if(i >= numChilds) {          var newNode = reminderDetails.childNodes[0].cloneNode(true);          reminderDetails.appendChild(newNode);        }        var node = reminderDetails.childNodes[i];        node.setAttribute('value',lines[i]);      }    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/c8b7e1a631d4160d77274818eb4e9b4a7bb44a72/sun-calendar-event-dialog.js/clean/calendar/prototypes/wcap/sun-calendar-event-dialog.js