Passing variable with JavaScript function 
<p>I am trying to pass variable though the <code>GetDetail</code> function below.  I can pass string/number and it works properly.</p>

<p>But I'm unable to pass variable</p>

<pre><code>detLink.onclick = new Function ("GetDetails()");
detLink.setAttribute('onclick',"javascript:GetDetails()")
</code></pre>
