I have tried the following but they don't work.
I want a result like [[[arr1],[arr2],[arr3]],[[arr4],[arr5],[arr6]]].
array3[counter].push(array2[e+f]);
//Uncaught TypeError: Cannot call method 'push' of undefined
array3.splice(counter,0,array2[e+f]);
//[Array[2], Array[3], Array[4], Array[4], Array[2], Array[3]]
Here is my source code if it helps: http://jsfiddle.net/yUXPz/
array3[counter]is the value at index counter, not an array - hence you can't call.pushon it.