Call javascript Function Using Variable for its Name

What is the javascript equivalent of PHP call-user-func?

To call a user-defined javascript function, for example DoReload(), you have just to write its name:


In case you want to call this function using a variable holding its name, for example

var function_to_call = 'DoReload';

just write: