function read_rows() {
    //alert("reading the rows, length = " + (preftable.rows.length - 1));
    for (var i = 0; i < num_choices; i++) {
        var row = rows[i] = preftable.rows[i+1];
        var s = row.getElementsByTagName("select")[0];
        rank[i] = s.selectedIndex + 1;
    }
}
// Recompute the arrays "rows" and "rank" from the rows of the table.
Recompute the arrays "rows" and "rank" from the rows of the table.
Recompute the arrays " rows " and " rank " from the rows of the table .
function read_rows() {
    for (var i = 0; i < num_choices; i++) {
        var row = rows[i] = preftable.rows[i+1];
        var s = row.getElementsByTagName("select")[0];
        rank[i] = s.selectedIndex + 1;
    }
}
function read_rows ( ) { for ( var i = 0 ; i < num_choices ; i ++ ) { var row = rows [ i ] = preftable . rows [ i + 1 ] ; var s = row . getElementsByTagName ( "select" ) [ 0 ] ; rank [ i ] = s . selectedIndex + 1 ; } }
Recompute the arrays "rows" and "rank" from the rows of the table.
Recompute the arrays " rows " and " rank " from the rows of the table .
//alert("reading the rows, length = " + (preftable.rows.length - 1));