AMI Modal Overlay - can I close the overlay?

Hello,

We are implementing some custom AMIs and are finding the Modal Overlay feature very useful. The one hangup we are having is that we can’t seem to close the Modal Overlay when we’re done with it i.e. on form submit.

I attempted to use javascript to close the overlay - but that doesn’t work because cross-domain scripting is not allowed. Is there by any chance some sort of undocumented method of closing a Modal Overlay from within the iframe itself?