title: return false is not working in javascript validation
body: <pre><code>function confirmValidation() {
      var confirmPass = document.getElementById('newpassword').value;
      var newpass = document.getElementById('newpassword2').value;
      var passLength = confirmPass.length;
      if ((confirmPass == newpass) &amp;&amp; (confirmPass != "" &amp;&amp; newpass != "") &amp;&amp; (passLength &gt; 8)) {
          alert("ok");
          return true;
      } else {
          alert("no");
          confirmPass.focus();
          return false;
      }
  }
  </code></pre>
  
  <p>And input:</p>
  
  <pre><code>&lt;input name="register" type="submit" class="alert_button" onclick="return confirmValidation()" value="OK" /&gt;
  </code></pre>