Yeah, you can do that, but you may not have to. It appears that you're just trying to get the form to submit to a new window. If that's the case, there's a much simpler solution for you, and that is to just set the form's target attribute to "blank" or something. Then whatever script you referenced in the action attribute will pop up in a new window. If you absolutely have to submit to JavaScript for some reason, you certainly can, but be aware that if you do it will no longer pass the values of the form fields on submission. If you need to get them, you'll have to manually send them in the url using JavaScript, and of course, I see that you want to POST them, which you won't be able to do at all. If I understand your intentions correctly, I'd recommend just using target="blank".
Hope this helps. Good luck!
Travis