In my application, when user clicks on a link, I need to show a form in
a popup window. Popup has to close when form is submitted. If the form
data is valid then I need to go to action A in main browser else I need
to go to action b. how do I do it i.e. redirect the main window?