If your declaring the function, use eval(). Just type a string representation of the argument your trying to execute for example:
eval("function name(){alert('a');}");
You can then call that method by normal convention, name();.
If you already have the function name and want to call that function with a string representation you can use the eval() method, although its not always optimal for performance. You will have this:
var fnName = "functionName";
var params = "param1";
var fnNameWithParams = "functionName("+params+")";
eval(fnNameWithParams);
A better approach may be:
var fnName = "functionName";
var params = "param1";
var fnToCall = window[fnName];
fnToCall(params);
arguments.callee.name?removeChildjavascript method ofElement's prototypearguments.calleeis deprecated, and throws a syntax error in strict mode.