Jquery's same function for different events
<p>MY code is like this</p>

<pre><code>    $(document).ready(function(){     
        nodeClick(elm = '');   
    });

function nodeClick()
{ 
    if(elm != ''){
        var obj = '';
    }else{
        obj = $('.hitarea')
    }

    obj.live('click',function(){   
    $(this).addClass('something');
    $(this).attr('something',1);
    //lots of this reference are here


    });

}
</code></pre>

<p>if elm variable is empty i  need to call the click function automatically ie  with out click.how can i trigger that function with out click</p>
