The reason it opens a new window is the target attribute. If you remove that, it won't open a new window. However, having said that, onsubmit should be added to the form tag, not the submit button. Remind me, did you want to prevent a page unload completely or did you want to make one submit (with Ajax) and then another page unload/reload one later with Paypal?
Note: 'urlparams' should be just urlparams without the quotes.
Note: 'urlparams' should be just urlparams without the quotes.
Comment