Javascript if else help for handler
<p>Now the form is one form, here is the new broken code</p>

<pre><code>    &lt;script language="javascript" type="text/javascript"&gt;
function verifyIt(){
    if((document.form1.baseline_08.value != "" &amp;&amp; Number(document.form1.baseline_08.value) &amp;&amp;  document.form1.baseline_08.value != "-1")){
    if((document.form1.baseline_09.value != "" &amp;&amp; Number(document.form1.baseline_09.value) &amp;&amp;  document.form1.baseline_09.value != "-1")){
        document.form1.submit();
        return true;
    }else{
        alert("Please select how old you were when you started smoking every day.");
        return false;
    }
}
function submit2(){
    document.form1.direction.value = "back";
    document.form1.submit();
}

&lt;/script&gt;
</code></pre>

<p>Now the verify doesnt work at all. I just dont see what is wrong with this now.</p>

<p>The problem I am having is the form1 is the only one being recognized. I believe it is because of my if statement structure. Basicly I only get the return from the form1. What is wrong with my js?</p>
