Using a number array?

Hi, I’m using FindGameObjectsWithTag to create an array of GameObjects. I move all these GameObjects to a certain position along the Z axis. This works perfectly, but this is where I get stuck.

I want the GameObjects in that array to return to their original Z positions. I was thinking of using another Array to store the Number/Float of the Z position. But I don’t have a clue how to do this. I’m using JavaScript.

var temp:GameObject = GameObject.FindGameObjectsWithTag(“so and so tag”);
var originalZ:int;
originalZ=new int[temp.Length];
for(var i=0;i<temp.Length;i++)