How do I assign a var from passed in function var?
<pre><code>function getTabContent(tabId){
    var c = tabbar._content.tabId.innerHTML;
    return c;
}
</code></pre>

<p>I want var c to evaluate to the passed in var. So if I call getTabContent('dash').
var c will be the value of tabbar._content.dash.innerHTML from the DOM. NOT the string tabbar._content.dash.innerHTML.</p>

<p>How do I do this?</p>
