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