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