var maxblocks = 5; function saveBlockStatusToCookie() { var status = new Array(maxblocks); for (i=0; i