how to compare one parameter value from a javascript function and return if false
<p>i have a code that goes like this </p>

<pre><code>$('#submitme').click(function(e){   
        var indentifyForm=  $('#submitme').closest('form').attr('id');

        var flag =validateForm(validationFlag, indentifyForm);
        //alert(validateForm(validationFlag));
        if(flag){
             return false;

         }
         else{ 
              dosomething(indentifyForm);
        }
});
</code></pre>

<hr>

<p>if its true it should return false and  the form gets validated , but always remains false. Please help.</p>
