Javascript confirm dialog - prevent event handler firing?
<p><br></p>

<p>I've got a form with a number of fields and a few checkboxes. When the user clicks save, if a certain checkbox isn't checked, they're prompted with a 'Confirm' dialog box asking if they still want to save the form. If they click okay, the button should fire it's event handler normally, but if they click cancel, nothing should happen. <br></p>

<pre><code>function checkVerification(checkBox)
{
    if (!document.getElementById(checkBox).checked)
    {
        confirm('Worksheet has not been verified. Save anyway?');            
    }
}
</code></pre>

<p>As of right now, the Save button's event handler fires regardless of the user's choice. Any advice would be greatly appreciated.</p>
