function ff_selectedValues(name)
{
    vals = '';
    opts = ff_getElementByName(name).options;
    for (o = 0; o < opts.length; o++)
        if (opts[o].selected) {
            if (vals != '') vals += ',';
            vals += opts[o].value;
        } // if
    return vals;
} // ff_selectedValues