javascript check button test after form published
<p>Can someone guide me whether I am doing a mistake or correct me. my website is Joomla 1.0 and I use faciform generator to create the form. and I use a check box button and if the button is click when the form publishes I want it to go to a different url but the button is not clicked it should goes to another url </p>

<pre><code> function ff_Contact_information_p_submitted(status, message)
{
    if(status == FF_STATUS_OK)
     {
        if(ff_elem497.checked==1)
         {
            alert ("inside working after checked");
         }
        else
        {
            alert ("unchecked");
        }
     }
    else
       alert("not working");



} // ff_Contact_information_p_submitted
</code></pre>

<p>this is inside of the form submit code. </p>
