Check for multiple hash substrings
<p>I'm trying to check for two different hash substrings and execute different code depending. This is what I have right now:</p>

<p><strong>Javascript</strong></p>

<pre><code>if(window.location.hash.substring(confirm) {
    $('.confirm').click();  
}

elseif(window.location.hash.substring(thanks) {
    $('.thanks').click();
}
</code></pre>

<p>Any idea what I am doing wrong?</p>
