Pass variable from one function of JS to another function of javascript
<p>I am calling Showmenu() javascript function from C# and passing one variable to this function. Now i want to use this variable in another function of javascript.</p>

<pre><code> &lt;script type="text/javascript" &gt;
 var strmenu;
 function ShowMenu(strmenu) {
 alert(strmenu); 
 }
 alert(strmenu);   
 ddsmoothmenu.init({
 mainmenuid: strmenu,  
 orientation: 'h',  
 classname: 'ddsmoothmenu',               
 contentsource: "markup")}
 &lt;/script&gt;
</code></pre>

<p>I am calling <code>ShowMenu(strmenu)</code> function in c sharp.....like</p>

<pre><code>menu_Sysadmin.Attributes.Add("OnClick", "javascript:return ShowMenu('sysadmin')");
</code></pre>

<p>I want to use <code>strmenu</code> from <code>showmenu()</code> in  <code>ddsmoothmenu.init()</code> as a parameter.
alert shows value but when am trying to use <code>strmenu</code> as globally it is not working...:-(</p>

<p>its very urgent for my project plz help me.plz plz.</p>

<p>Thanks in adv.</p>
