IF Statement not working correctly
<p>Please bail me out one more time.</p>

<p>I have these controls:</p>

<pre><code>    chck1_amt through chck5_amt (1 though 5 check Amounts)

    And chckX is from chcknum1 through chcknum5 (1 through 5 check numbers
</code></pre>

<p>What we are trying to do is if a checkX_amt box has is not blank or it has a value other than a 0 AND check number box (chcknumX) is blank, then inform a user that check number box must contain a check number. Stay focused on that box till the user has entered a checknumber.</p>

<p>This <em>appeared</em> to have worked until today when it keeps asking for check number whether there is a value in checkamount box or not.</p>

<p>Please help!</p>

<pre><code>if ((document.getElementById('chck1_amt').value != "" || document.getElementById('chck1_amt').value != "0") &amp;&amp; (document.getElementById('fvEmp_chcknum1').value == "")) {
    alert("Please enter check # to continue");
    document.getElementById('chcknum1').focus();
    return false;
}
if (((document.getElementById('chck2_amt').value != "") || (document.getElementById('chck2_amt').value != "0")) &amp;&amp; (document.getElementById('fvEmp_chcknum2').value == "")) {
    alert("Please enter check # to continue");
    document.getElementById('chcknum2').focus();
    return false;
}
if ((document.getElementById('chck3_amt').value != "0") &amp;&amp; (document.getElementById('chcknum3').value == "")) {
    alert("Please enter check # to continue");
    document.getElementById('chcknum3').focus();
    return false;
}
if ((document.getElementById('chck4_amt').value != "0") &amp;&amp; (document.getElementById('chcknum4').value == "")) {
    alert("Please enter check # to continue");
    document.getElementById('chcknum4').focus();
    return false;
}
if ((document.getElementById('chck5_amt').value != "0") &amp;&amp; (document.getElementById('chcknum5').value == "")) {
    alert("Please enter check # to continue");
    document.getElementById('chcknum5').focus();
    return false;
}




        &lt;tr&gt;
            &lt;td&gt;&lt;input name="chcknum1" type="text" id="chcknum1" style="width:90px;" /&gt;&lt;/td&gt;&lt;td&gt;&lt;input name="chck1_amt" type="text" id="chck1_amt" style="width:90px;" /&gt;&lt;/td&gt;&lt;td&gt;
        &lt;/tr&gt;&lt;tr&gt;
            &lt;td&gt;&lt;input name="chcknum2" type="text" id="chcknum2" style="width:90px;" /&gt;&lt;/td&gt;&lt;td&gt;&lt;input name="chck2_amt" type="text" id="chck2_amt" style="width:90px;" /&gt;&lt;/td&gt;&lt;td&gt;
        &lt;/tr&gt;&lt;tr&gt;
            &lt;td&gt;&lt;input name="chcknum3" type="text" id="chcknum3" style="width:90px;" /&gt;&lt;/td&gt;&lt;td&gt;&lt;input name="chck3_amt" type="text" id="chck3_amt" style="width:90px;" /&gt;&lt;/td&gt;&lt;td&gt;
        &lt;/tr&gt;&lt;tr&gt;
            &lt;td&gt;&lt;input name="chcknum4" type="text" id="chcknum4" style="width:90px;" /&gt;&lt;/td&gt;&lt;td&gt;&lt;input name="chck4_amt" type="text" id="chck4_amt" style="width:90px;" /&gt;&lt;/td&gt;&lt;td&gt;
        &lt;/tr&gt;&lt;tr&gt;
            &lt;td&gt;&lt;input name="chcknum5" type="text" id="chcknum5" style="width:90px;" /&gt;&lt;/td&gt;&lt;td&gt;&lt;input name="chck5_amt" type="text" id="chck5_amt" style="width:90px;" /&gt;&lt;/td&gt;&lt;td&gt;
        &lt;/tr&gt;
</code></pre>
