title: Problems with javascript / window.confirm function
body: <p>I have an HTML button that calls the <code>checkTax()</code> function.
  The function should either confirm and proceed with the form submit when OK is clicked, or cancel the submission and redirect the user to a different page. </p>
  
  <p>This is the function:</p>
  
  <pre><code>function checkTax () {
      if ( CUSTTAXRATE == 0 ) {
          var r = confirm("Your current tax rate is 0.\n\nIf this is correct click OK to continue.\n\nIf this needs to be adjusted, click CANCEL and visit the quote set up page under DEALER RESOURCES tab.");
          if (r == true){
              return true;
          }
          else {
          &lt;!---   return false; ---&gt;
               window.location.replace("index.cfm?action=retailQuote.settings");
  
          }
      }
  
  }
  </code></pre>
  
  <p>I have tried both just cancelling the submission or redirecting it, but I cant get either to work. Both ways still submit the form and proceed.
  What am I doing wrong??</p>