this post will show you how you can loop through an object.

its very simple, i was making it more complicated, so this is how i learn it, by example.

i will give you an example.

nameObj = {"first":"John","last":"smith"}
for
(var key in nameObj) { var value =
nameObj[key];
alert('key='+key+' | value='+value);
}