Calendar trough search app loses clode button in form

Hi There,

I have a select field in a search app that shows a calendar in a frame beneath the search form. All works well. in the calendar users can press on an event to see details about it but there is no close button shown in the form, even the close button is selected in the toolbar.

so i tried some javascript on a button
document.F6.action=‘Z_calendar_user.php’; document.F6.submit(); return false;; return false;

and now there is a close button that closes the form but shows the calendar in the modal form where the form used to be. (e.g. it closes the form but not the modal popup)

i know that java modal only works when opening it with java. but i have no other way to fix this …bug?

any suggestions?