Append calendar boxHi,
I am trying to create a UI to select dates. I have added a button box which will append calendar box to the panel box but every time I click, it will keep adding elements to the panel box. I want to hide the calendar box on second click. Is there a way to achieve this?

Here's my code:
sd=Today();
ed=Today();
New Window( "Query Date", <<MODAL></MODAL>
Scripting