checking two fields with multiple arguments
<pre><code>&lt;script type="text/javascript"&gt;
  function checkForm( form1 )
  {
    if( document.form1.block.value == document.form1.dates.value )
    {  
      alert( "values are identical" );
      form1.dates.focus();
      return true;
    }
    else
    {
      return false;
    }
  }
&lt;/script&gt;
&lt;form name="form1" method="POST" action="" onSubmit="return checkForm(this);" &gt;
&lt;input type="text" name="block" value=""&gt;
&lt;input type="text" name="dates" value=""&gt;
&lt;input type="submit"  &gt;
&lt;/form&gt;
</code></pre>

<p>when i use this code it will be help full for checking on date or single argument
but i want to check the mutiple dates in this function
how?
can i do this </p>
