java script is not working
<p>i am comparing password and confirm password through java script.my code-</p>

<pre><code>function validate_form(thisform)
{  
with (thisform)
  {  
    if (validate_required(password,"&lt;b&gt;Error: &lt;/b&gt;Password must be filled out!")==false)  
  {password.focus();return false;}

  else if (validate_required(cnfpassword,"&lt;b&gt;Error: &lt;/b&gt;Confirm Password must be filled out!")==false)
  {cnfpassword.focus();return false;}

  else if (document.getElementById('password').value != document.getElementById('cnfpassword').value)
  {password.focus();Sexy.error("&lt;b&gt;Error: &lt;/b&gt;Passwords entered are not same!"); 
  password.value="";cnfpassword.value="";return false;}
  }
</code></pre>

<p><strong>validate_required()</strong> function is working fine, it is showing alert msg but <strong>password compare</strong> is not working. But the same code is working fine in some other page.I have written some php code to avoid page caching-</p>

<pre><code>&lt;?php
session_start();
session_cache_limiter('nocache');
header('Pragma: no-cache');
?&gt;
</code></pre>

<p><strong>what's the problem???</strong></p>
