I have a form that when the user submits there's an onload() event. This event will open a popup window. The problem I am having is that if the form has required fields and when it is not completed when the user submits the form a page shows the fields that need to be completed at the same time the popup window is showing. Is there a way to only show the popup window after a successful submission?