@NedalsMar 10.2003 — #for(var i=1;i<=24;i++){ 'xxx'+i = .... } A few points on your snippet of code.
You are not really creating [i]variables on the fly[/i]. You are attempting to use an array and it's a good idea to declare the array
var xxx = new Array(); ( ;'s are optional in javascript but with other languages they are not. So get into the habit of including them.)
Note that the first item in the array is always 'xxx[0]' so the 'for' loop is better written.. var xxx = new Array(); for (var i=0; i<24; i++) { xxx[i] = ....; }