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