fires when a user selects a date.
$$('calendar1').attachEvent("onDateselect", function(date){ //... some code here ... });