rem: OuterBox.getElementsByAttribute( "name", "alarm-length-field" )[0].value = opener.getIntPref(opener.gCalendarWindow.calendarPreferences.calendarPref, "event.defaultsnoozelength", 60 ); 
add: var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService);  OuterBox.getElementsByAttribute( "name", "alarm-length-field" )[0].value = getIntPref(prefService.getBranch("calendar."), "event.defaultsnoozelength", 60 ); 
context: function createAlarmBox( Event ){   var OuterBox = document.getElementsByAttribute( "name", "sample-row" )[0].cloneNode( true );   OuterBox.removeAttribute( "name" );   OuterBox.setAttribute( "id", Event.id );   OuterBox.setAttribute( "eventbox", "true" );   OuterBox.removeAttribute( "collapsed" );   OuterBox.getElementsByAttribute( "name", "AcknowledgeButton" )[0].event = Event;      OuterBox.getElementsByAttribute( "name", "AcknowledgeButton" )[0].setAttribute( "onclick", "acknowledgeAlarm( this.event );removeAlarmBox( this.event );" );       OuterBox.getElementsByAttribute( "name", "EditEvent" )[0].event = Event;      OuterBox.getElementsByAttribute( "name", "EditEvent" )[0].setAttribute( "onclick", "launchEditEvent( this.event );" );       kungFooDeathGripOnEventBoxes.push( OuterBox.getElementsByAttribute( "name", "AcknowledgeButton" )[0] );      OuterBox.getElementsByAttribute( "name", "SnoozeButton" )[0].event = Event;      OuterBox.getElementsByAttribute( "name", "SnoozeButton" )[0].setAttribute( "onclick", "snoozeAlarm( this.event );removeAlarmBox( this.event );" );       OuterBox.getElementsByAttribute( "name", "alarm-length-field" )[0].value = opener.getIntPref(opener.gCalendarWindow.calendarPreferences.calendarPref, "event.defaultsnoozelength", 60 );         kungFooDeathGripOnEventBoxes.push( OuterBox.getElementsByAttribute( "name", "SnoozeButton" )[0] );      /*   ** The first part of the box, the title and description   */   var EventTitle = document.createTextNode( Event.title );   OuterBox.getElementsByAttribute( "name", "Title" )[0].appendChild( EventTitle );      var EventDescription = document.createTextNode( Event.description );   OuterBox.getElementsByAttribute( "name", "Description" )[0].appendChild( EventDescription );   var displayDate = new Date( Event.displayDate );   var EventDisplayDate = document.createTextNode( getFormatedDate( displayDate ) );   OuterBox.getElementsByAttribute( "name", "StartDate" )[0].appendChild( EventDisplayDate );   var EventDisplayTime = document.createTextNode( getFormatedTime( displayDate ) );   OuterBox.getElementsByAttribute( "name", "StartTime" )[0].appendChild( EventDisplayTime );   /*   ** 3rd part of the row: the number of times that alarm went off (sometimes hidden)   */   OuterBox.getElementsByAttribute( "name", "NumberOfTimes" )[0].setAttribute( "id", "description-"+Event.id );      //document.getElementById( "event-container-rows" ).insertBefore( OuterBox, document.getElementById( "event-container-rows" ).childNodes[1] );   document.getElementById( "event-container-rows" ).appendChild( OuterBox );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/eccfe24949238ab11afd71e280a2c50fe7ee3ea0/alertDialog.js/clean/calendar/resources/content/alertDialog.js