After what has been ages, I have returned. Not that many are reading this, but I intend to use this for future reference in any case
Although, the Array() datatype, looks like a juicy candidate for building associative arrays, that is one of the most harmful things you can do. Particularly if you are using the prototype library. For more information read this post
The solution: use the Object datatype
** There are a couple of really kewl ways to iterate objects:
1. for .. in
2. for each .. in
Check out the object manipulation guide
Will add more as I go along.