save_gridx = 0; //reset before each new row
save_gridwidth = 0; //reset before each new row
calendarCellArray[row] = new KCell[calArray[row].length];
for (col=0; col < calArray[row].length; col++) { //ID=FOR_BLOCK1
//Create the calendar cell
calendarCellArray[row][col] = new KCell(calArray[row][col][0], calArray[row][col][1]);
for (par=4; par<calArray[row][col].length; par++) {
switch (par) {
case 4: calendarCellArray[row][col].setBorderColor(Color.decode(calArray[row][col][par])); break;
case 5: calendarCellArray[row][col].setOffBackgroundColor(Color.decode(calArray[row][col][par])); break;