[jQuery] jqModal: Defining a custom event before closing the window?

[jQuery] jqModal: Defining a custom event before closing the window?

Hi,
I'm trying to create a modal dialog using
http://dev.iceburg.net/jquery/jqModal/
where I want to have two buttons, "Save" and 'Cancel". Clicking "Save" should perform some action, and then close the window. However, if I define the "onclick" handler for the "Save" button, the window no longer closes. How can I execute the functions of my "Save" and then close the modal dialog window?
Thanks, - Dave
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/