JavaScript callback function
<p>please help 
I have a simple example here
    </p>

<pre><code>&lt;script type="text/javascript" language="javascript"&gt;
    function test(callback1) {
        callback1();
    }
    var f1 = function () {
        alert(1);
    }
&lt;/script&gt;
</code></pre>

<p>Currently, parameter of the test function is a function, when abc button is clicked, test function will be called and then test will call f1. Everything okie with me.</p>

<p>However, I'd like a small change like this: parameter of the test function will be a string, I mean it should be a function name, test('f1') instead of test(f1).
Is it possible?How can I implement this?</p>

<p>Thanks</p>
