
function dateChanged(calendar) {
// Beware that this function is called even if the end-user only
// changed the month/year.  In order to determine if a date was
// clicked you can use the dateClicked property of the calendar:
	if (calendar.dateClicked) {
	// OK, a date was clicked, redirect to /yyyy/mm/dd/index.php
		var y = calendar.date.getFullYear();
		var m = calendar.date.getMonth();     // integer, 0..11
		var d = calendar.date.getDate();      // integer, 1..31
		++m;
		if (m < 10) m = '0'+m;
		if (d < 10) d = '0'+d;
		info = dateFullInfo[y+''+m+''+d];
		MM_setTextOfLayer('maisinfo',false,(info ? info : ''));
	}
};

// this is the actual date status handler.  Note that it receives the
// date object as well as separate values of year, month and date, for
// your confort.
function dateStatusHandler(date, y, m, d) {
	++m;
	if (m < 10) m = '0'+m;
	if (d < 10) d = '0'+d;
	info = dateFullInfo[y+''+m+''+d];
    return (info) ? 'specialDay' : false;
    // return true above if you want to disable other dates
}
