alternative to eval in Javascript
<p>I have an object created which belongs to particular class.</p>

<pre><code>            var schCom1 = Server.CreateObject(ArchiveProgID);
</code></pre>

<p>Now, this object gives call to method which is dynamically decided. </p>

<pre><code>            fnName += "(";
        for (counter=0;counter&lt;fnArgs.length;counter++)
        {
            if(counter &gt; 0)
                fnName += ",";
            fnName += fnArgs[counter];
        }
        fnName += ")";
        writeComment("Ready to call method:" + "schCom1." + fnName);
        // according to the type of recurrance, call method
        eval("schCom1."+ fnName);   
</code></pre>

<p>Is there any substitution possible to this eval call ?</p>

<p>Any Help will be valuable .</p>

<p>Thanks in advance.<br>
Tazim.</p>
