add: iterator.setDate(1); 
context:   refresh: function ()  {    // set the month    this.month_select.selectedIndex = this.date.getMonth();        // set the year,     range=this.options["year_range"];    this.year_select.purgeChildren();    for( x=0; x<=range*2; x++)    {      year = x+(this.date.getFullYear() - range);      this.year_select.options[x]=new Option(year,year);    }    this.year_select.selectedIndex=range;        // make the calendar!!    (body_div=this.body_div).purgeChildren();    days_table = body_div.build("table", { cellPadding: "0px", cellSpacing: "0px", width: "100%" }).build("tbody");    // make the weekdays!    weekdays_row = days_table.build("tr", {className: "weekdays"});        CalendarDateSelect.weekdays.each( function(weekday) {       weekdays_row.build("td", {innerHTML: weekday});    });        // Make the days!    days_row = days_table.build("tr", {className: "days"});    iterator = new Date(this.date);    pre_days = iterator.getDay() // draw some days before the fact    if (pre_days < 3) pre_days+=7;    iterator.setDate(1 - pre_days);    cells_to_render = 42;    cell_index = 0;    today = new Date();        do {      day = iterator.getDate();      day_td = days_row.build("td", {          innerHTML: day,          day: day,          month: iterator.getMonth(),          year: iterator.getFullYear(),          calendar_date_select: this,          className: (CalendarDateSelect.same_day(iterator, today) ? "today " : "") + (iterator.getMonth() == this.date.getMonth() ? "" : "other") ,          onmouseover: function () { this.calendar_date_select.day_hover(this); },          onmouseout: function () { this.calendar_date_select.day_hover_out(this) },          onclick: function() { this.calendar_date_select.update_selected_date(this); }        },        { cursor: "pointer" }      );      iterator.setDate( day + 1);      cell_index++;      if ( cell_index %7==0 ) days_row = days_table.build("tr", {className: "days"});    } while ( cells_to_render > cell_index );        // set the time    if (this.options["time"]) {      this.hour_select.selectedIndex = this.selectedDate.getHours();      this.minute_select.selectedIndex = this.selectedDate.getMinutes() / this.options["minute_interval"];            this.hour_select.onchange();      this.minute_select.onchange();    }        this.set_selected_class();    this.update_footer();  },
meta: 9859	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9859/853304d8af942d925ddae7c91db1960fe7b81f0b/calendar_date_select.js/clean/public/javascripts/calendar_date_select.js