Is it possible to use a variable in the name of a function?

I’d like to have a number of different functions named something like:
“function1”, “function2”, “function3”, all the way up to function100.

I’d like to be able to call them by adding the the number as a variable. For example:

type = 2;
function+type();

Which would call function2. I’m trying to avoid a huge if/else statement by only calling the functions I need.

Is this even possible? Can a function be called if part of the function name is a variable? Is there another way to join “function” with the variable and then call it? Thanks!

-John

see
http://www.kirupaforum.com/forums/showthread.php?t=12082

Or simply:

type = 2;
_root"function"+type;