calling a dynamic function in javascript
<p>is it possible to call a dynamic method in javascript. ie suppose i have in my page 2 methods as such:  </p>

<pre><code>function id1_add()
{
  return 1;
}

function id2_add()
{
  return 2;
}
</code></pre>

<p>i also have this function:</p>

<pre><code>function add()
{
  var s1='id1';

  s1+'_add()'; //???
}
</code></pre>

<p>is it possible to call for example id1_add() in such:</p>

<pre><code> s1+'_add()'; 
</code></pre>

<p>so the method call depends on a previous string?</p>
