Closing a Stateless Window

Closing a Stateless Window

Hi!

I have a stateless form that I'm displaying with

openUrl(" https://creator.zohopublic.com/company/application/form-perma/ISN_Stateless?Trade_Order_Id1=" + input.ID,"popup window","height=300, width=500");

and that works great.

The form has an 'OK' and a Cancel button.  At the end of either event (OK & Cancel) script I put

openUrl(" http://creator.zoho.com" + zoho.appuri + "#Script:script.close","same window");

but the popup window merely 'refreshes' and the window stays.  A cancel will not kill the window.  What am I doing wrong? 

Thank you
Mike