How to Conditionally Activate a Popup Upon Clicking a Button

I would cheat and make two save buttons and have each conditionally render based on whether any email field is blank. One save button would open a pop up and the other would just save.