triggered immediately before month in selector is changed.
prev_date | date | the previously selected date |
next_date | date | the currently selected date |
$$("calendar1").attachEvent("onBeforeMonthChange", function(prev_date, next_date){
//... some code here ...
});