Javascript pass object to function issue
<p>In javascript, I have an object that I am trying to pass but not working:</p>

<pre><code>     var inf1= { ID: "34343434" };
</code></pre>

<p>What I like to do in javascript is to pass this object to a function .
I am not sure how to do this.</p>

<p>I have the calling function as such</p>

<pre><code>  function getinf(inf1)
  {
     var samp = JSON.parse(inf1);
     alert(samp.ID);
  }
</code></pre>
