if (obj.employees[i].Title == Petr) { if (obj.employees[i].Highlight == true) {newcell.className = 'shadow';}