function formatCells(newCell, i, j) {
    newCell.setAttribute('height', cellSize);
    newCell.setAttribute('width', cellSize);
    newCell.setAttribute('align', 'center');
    newCell.setAttribute('valign', 'center');

    if ((j == 0 || j == 1 || j == 2) && i == 0) {
        newCell.className = "borderless-top";
    }
    if ((j == 0 || j == 1 || j == 2) && i == 2) {
        newCell.className = "borderless-bottom";
    }
    if ((j == 0 && (i == 1 || i == 0))) {
        newCell.className = "borderless-top-left";
    }
    if ((j == 2 && (i == 1 || i == 0))) {
        newCell.className = "borderless-top-right";
    }
    if ((j == 0 && (i == 1 || i == 2))) {
        newCell.className = "borderless-bottom-left";
    }
    if ((j == 2 && (i == 1 || i == 2))) {
        newCell.className = "borderless-bottom-right";
    }
}
/*
* used in conjunction with loadBoard() to dynamically add cells
*/
used in conjunction with loadBoard() to dynamically add cells
used in conjunction with loadBoard () to dynamically add cells
function formatCells(newCell, i, j) {
    newCell.setAttribute('height', cellSize);
    newCell.setAttribute('width', cellSize);
    newCell.setAttribute('align', 'center');
    newCell.setAttribute('valign', 'center');
    if ((j == 0 || j == 1 || j == 2) && i == 0) {
        newCell.className = "borderless-top";
    }
    if ((j == 0 || j == 1 || j == 2) && i == 2) {
        newCell.className = "borderless-bottom";
    }
    if ((j == 0 && (i == 1 || i == 0))) {
        newCell.className = "borderless-top-left";
    }
    if ((j == 2 && (i == 1 || i == 0))) {
        newCell.className = "borderless-top-right";
    }
    if ((j == 0 && (i == 1 || i == 2))) {
        newCell.className = "borderless-bottom-left";
    }
    if ((j == 2 && (i == 1 || i == 2))) {
        newCell.className = "borderless-bottom-right";
    }
}
function formatCells ( newCell , i , j ) { newCell . setAttribute ( 'height' , cellSize ) ; newCell . setAttribute ( 'width' , cellSize ) ; newCell . setAttribute ( 'align' , 'center' ) ; newCell . setAttribute ( 'valign' , 'center' ) ; if ( ( j == 0 || j == 1 || j == 2 ) && i == 0 ) { newCell . className = "borderless-top" ; } if ( ( j == 0 || j == 1 || j == 2 ) && i == 2 ) { newCell . className = "borderless-bottom" ; } if ( ( j == 0 && ( i == 1 || i == 0 ) ) ) { newCell . className = "borderless-top-left" ; } if ( ( j == 2 && ( i == 1 || i == 0 ) ) ) { newCell . className = "borderless-top-right" ; } if ( ( j == 0 && ( i == 1 || i == 2 ) ) ) { newCell . className = "borderless-bottom-left" ; } if ( ( j == 2 && ( i == 1 || i == 2 ) ) ) { newCell . className = "borderless-bottom-right" ; } }
used in conjunction with loadBoard() to dynamically add cells
used in conjunction with loadBoard () to dynamically add cells