move your closure JS call to oncomplete handler of a4j support ;)
Thanks for the response. I will try this, but I would not think that the event handler specified would have anything to do with whether the markup gets rendered or not.
Since I'm trying to do this with the "close" image used in the rich:modalPanel, the image in inside the panel's facet, and is not within the form. Should this make a difference? I've tried including the facet inside the form, and it breaks my panel display.
Any other ideas would be appreciated.