Apart from everything that was mentioned before ID attributes must begin with a letter A-Z or a-z . That might crash your browser. 

Also if you are only storing colors in your array why not use just a normal array? (as James suggests)

Adding elements into associative array in javascript
I have multiple mobile devices (2x iPhone, 2x iPad) in my home, all which share the same iTunes account between them.  When iMessage is used to exchange messages between two of the devices (e.g. the two iPhones), the messages appear to be sent from and received by the same identity.  The only way I have found to correct this by turning off iMessage on one of the devices and only using SMS.

Is there a way to associate iMessage with a different iTunes account than other apps on the same device?
