title: Form with onSubmit on a JSP
body: <p>I've got this form on a JSP:</p>
  <pre><code>&lt;form name=&quot;&lt;%=formName%&gt;&quot; method=&quot;post&quot; action=&quot;&lt;%=actionURL%&gt;&quot; target=&quot;_parent&quot; onsubmit=&quot;submitForm('&lt;%=String.valueOf(isAbstract)%&gt;','&lt;%=formName%&gt;'); return false&quot;&gt;
  </code></pre>
  <p>Then I have the following Javascript in an include file:</p>
  <pre><code>function submitForm( isAbstract , formName ) {
      var o = &quot;document.forms['&quot; + formName + &quot;']&quot;;
      var form = eval(o);
      if (isAbstract)
      {
              alert(&quot;Error&quot;);
              return;
      }
      if (!form.AutoName.checked)
      {
          if (form.name.value == &quot;&quot;)
          {
              alert(&quot;Some text&quot;);
              return;
          }
      }
  }
  </code></pre>
  <p>Well, I reduced the functions to make it simpler, but the thing is that whatever I do, I keep getting undefined values for both arguments. This is driving me crazy, because I've got similar code on other tags that work just fine (except that it's on a combo box tag with the <code>onChange</code> action).</p>
  <p>Any thoughts, please?</p>