quando ti serve aggiungere questo gestore evento richiami
$('calendario').addEvent('click', function(){openCalendario()});