Could you try this modification:
oWnd = $find($telerik.$(
Here is what happens:
- A RadWindow declared in the markup renders a div element with its ClientID (that ends with the server ID). Thus, $find() for that works the first time
- You close the RadWindow and its popup element is hidden via a CSS property
- The next time you attempt to show it, the RadWindowWrapper_ string is returned, so things fail (the selector uses the first match)
This should have failed in the same manner inline in the aspx page, it should not make a difference whether the code is not in a JS file.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.