rem: document.getElementById( "advanced-repeat-dayofmonth" ).setAttribute( "label", document.getElementById( "onthe-text" ).getAttribute( "value" )+dayNumber+dayExtension+document.getElementById( "ofthemonth-text" ).getAttribute( "value" ) ); 
add: var calStrings = document.getElementById("bundle_calendar");  var weekNumberText = getWeekNumberText( weekNumber ); var dayOfWeekText = getDayOfWeek( dayNumber ); var ofTheMonthText = document.getElementById( "ofthemonth-text" ).getAttribute( "value" ); var lastText = document.getElementById( "last-text" ).getAttribute( "value" ); var onTheText = document.getElementById( "onthe-text" ).getAttribute( "value" ); var dayNumberWithOrdinal = dayNumber + dayExtension; var repeatSentence = calStrings.getFormattedString( "weekDayMonthLabel", [onTheText, dayNumberWithOrdinal, ofTheMonthText] );  document.getElementById( "advanced-repeat-dayofmonth" ).setAttribute( "label", repeatSentence ); 
context: function updateAdvancedRepeatDayOfMonth(){   //get the day number for today.   var dayNumber = document.getElementById( "start-date-picker" ).value.getDate();      var dayExtension = getDayExtension( dayNumber );   var weekNumber = getWeekNumberOfMonth();      document.getElementById( "advanced-repeat-dayofmonth" ).setAttribute( "label", document.getElementById( "onthe-text" ).getAttribute( "value" )+dayNumber+dayExtension+document.getElementById( "ofthemonth-text" ).getAttribute( "value" ) );      if( weekNumber == 4 && isLastDayOfWeekOfMonth() )   {      document.getElementById( "advanced-repeat-dayofweek" ).setAttribute( "label", getWeekNumberText( weekNumber )+" "+getDayOfWeek( dayNumber )+document.getElementById( "ofthemonth-text" ).getAttribute( "value" ) );      document.getElementById( "advanced-repeat-dayofweek-last" ).removeAttribute( "collapsed" );      document.getElementById( "advanced-repeat-dayofweek-last" ).setAttribute( "label", document.getElementById( "last-text" ).getAttribute( "value" )+getDayOfWeek( dayNumber )+document.getElementById( "ofthemonth-text" ).getAttribute( "value" ) );   }   else if( weekNumber == 4 && !isLastDayOfWeekOfMonth() )   {      document.getElementById( "advanced-repeat-dayofweek" ).setAttribute( "label", getWeekNumberText( weekNumber )+" "+getDayOfWeek( dayNumber )+document.getElementById( "ofthemonth-text" ).getAttribute( "value" ) );      document.getElementById( "advanced-repeat-dayofweek-last" ).setAttribute( "collapsed", "true" );   }   else   {      document.getElementById( "advanced-repeat-dayofweek" ).setAttribute( "label", getWeekNumberText( weekNumber )+" "+getDayOfWeek( dayNumber )+document.getElementById( "ofthemonth-text" ).getAttribute( "value" ) );      document.getElementById( "advanced-repeat-dayofweek-last" ).setAttribute( "collapsed", "true" );   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a4b6de6d29d49266f9cc2401f69309838deb240a/toDoDialog.js/buggy/calendar/resources/content/toDoDialog.js