function setCode(val, row, index) { return index + 1; } function states(val) { return '
'+getStateString(val)+'
'; }