context: function isLastDayOfWeekOfMonth(){   //get the day number for today.   var startTime = document.getElementById( "start-datetime" ).value;      var oldStartTime = startTime;   var thisMonth = startTime.getMonth();      var monthToCompare = thisMonth;   var weekNumber = 0;   while( monthToCompare == thisMonth )   {      startTime = new Date( startTime.getTime() - ( 1000 * 60 * 60 * 24 * 7 ) );      monthToCompare = startTime.getMonth();            weekNumber++;   }      if( weekNumber > 3 )   {      var nextWeek = new Date( oldStartTime.getTime() + ( 1000 * 60 * 60 * 24 * 7 ) );      if( nextWeek.getMonth() != thisMonth )      {         //its the last week of the month         return( true );      }   }   return( false );}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/7cf8f4a5a133269c8abdbc4d7ed791799ba534d2/eventDialog.js/buggy/calendar/resources/content/eventDialog.js