//this function is used for coloring the border of a field
function SetColor(theCell, clr) {
//colors the field...
if(clr) {
  theCell.style.borderColor = clr;
}
}

