+ // prepare alphabet lookup table
+ cols = [ row.cells[0] ];
+ for (var col = 1; col <= samplecol.cellIndex; col++) {
+ var next = cols[col - 1].nextSibling;
+ if (next == samplecol) break;
+ cols[col] = next;
+ for (var span = 1; span < cols[col].colSpan; span++) {
+ var same = cols[col];
+ cols[++col] = same;
+ }
+ }
+ for (var col = 0; col < cols.length; col++) {
+ cols[col] = cols[col].innerHTML.trimRight();
+ }
+
+ // copy letters into sample