Can I put similar methods in an associative aray like this?
var function_hold = { function1: function(){} function2: function (){} };
I
Yes, that will work fine. You can call the functions with function_hold.function1().
function_hold.function1()
Note that normally you'll want to associate data with the functions as well:
var function_hold = { x: 0, function1: function(){ this.x++; } function2: function(){ alert(this.x); } };