How do I close popup datepicker?

I am opening a calendar popup on the web from one form. The trick is I have multiple date fields and want to first close any open calendar popup. Any suggestions on a formula that might check for and close an open form named ‘calControl’ before opening another one? Also, on making sure that the popup gains focus?

Thank you,

Luis

Subject: How do I close popup datepicker?

To ensure the pop-up gains focus, add the following in the tag of the pop-up:

onLoad=“window.focus();”

Making sure that one pop-up is closed before another is opened can be done by making the pop-up modal, which can be done with some difficulty.

Alternatively, you can have the pop-ups always open in a window of the same name. That will make the new pop-up replace the old pop-up if it hadn’t been closed.