call a javascript function using string name
<p>It is a bit complicated for to explain properly what I mean, so please try to understand me :)</p>

<p>I want to be able in javascript to call a element method/function using text sent as parameter. For example:</p>

<pre><code>function CallAFunction(function_name){
 document.getElementById('some_id').function_name();
}
</code></pre>

<p>As you see in the above example, I want to send function_name as parameter, and it is type of string or a simple text. So how I can use this function name to call it like that ?</p>

<p>Or, please suggest me something which may help me get the same as I need.</p>
