I Need Close with img button

I have this















    For demo purpose only :: &1

    







    





    

Initialize object on page



    

This sample illustrates initialization of the double calendar object



    

    

    

    


























I need the calendar begin hide and with the person click on image see the calendar and if the person click again on image the calendar hide again



Is this Posible?’



Excuse me for my english


Just update your code in next way


var status=false;
function showCalendar(k) {
document.getElementById(‘dhtmlxDblCalendar’).style.display = status?‘hidden’:‘block’;
status=!status;
}