Fires when the calendar becomes hidden (useful when attached to an input)
myCalendar.attachEvent("onHide", function(){ // your custom code });