>Not sure if the following would work. It's my SWAG:
>
>var dlg = null;
>
>function createdlg() {
>dlg = $("#sform").dialog({
> autoOpen: false,
> show: "blind",
> resizable: true,
> width: 1200,
> height: 750
> });
>}
>
>function mytest() {
> dlg.dialog("close");
>}
I was thinking I also rather make it a function (so this is what I just stated)
function RunModalDialog(url)
....
If it's not broken, fix it until it is.
My Blog