Abort Javascript so other function isn't called
<p>I have no idea if this is even possible, but I thought I would ask since it would be awesome if it is possible.</p>

<p>So basically I have a link with an onclick and in the onclick there are two calls. one to a function and another to _doPostBack.</p>

<p>The first function that is called is a simple function:</p>

<pre><code>function CheckTerms() {

    if (!document.Form.agreetoterms.checked) {
        alert("Please check the terms and conditions.");
        return false;
    }
        return true;
}
</code></pre>

<p>So basically if the check box isnt checked the alert happens and the page doesn't submit. If it is checked it submits. Right now even if it isn't checked, it shows the alert and executes the doPostBack and submits the page. The doPostBack is put into the link dynamically and I don't have access to it, which has made it harder for me. So any ideas or ways to abort it so it doesn't submit?</p>

<p>Thanks!</p>
