function ff_getQuerySelections(name)
{
    var id = ff_getIdByName(name);
    var cnt = ff_queryRows[id].length;
    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;
    var selcnt = 0;
    var sels = new Array;
    for (curr = 0; curr < cnt; curr++) {
        var elem = document.getElementById('ff_cb'+id+'_'+curr);
        if (elem.checked) 
            sels[selcnt++] = elem.value;
    } // for
    return sels;
} // ff_getQuerySelections