function ff_getQuerySelectedRows(name)
{
    var id = ff_getIdByName(name);
    var rcnt = ff_queryRows[id].length;
    var cnt = rcnt;
    var pagesize = ff_queryPageSize[id];
    if (pagesize>0) {
        var currpage = ff_queryCurrPage[id];
        var p;
        for (p = 1; p < currpage; p++) cnt -= pagesize;
        if (cnt > pagesize) cnt = pagesize;
    } // if
    var curr, r;
    var selcnt = 0;
    var sels = new Array;
    for (curr = 0; curr < cnt; curr++) {
        var elem = document.getElementById('ff_cb'+id+'_'+curr);
        if (elem.checked) {
            var ident = elem.value;
            for (r = 0; r < rcnt; r++)
                if (ff_queryRows[id][r][0] == ident) {
                    sels[selcnt++] = ff_queryRows[id][r];
                    break;
                } // if
        } // if
    } // for
    return sels;
} // ff_getQuerySelectedRows