function ff_submit_action(element, action)
{
    var flds = ff_getElementByName('fldsel').value;
    var info = 'You have entered this:\n\n';
    for (var i = 1; i <= flds; i++) {
        var e = ff_getElementByName('text'+i);
        if (e.value == '') {
            alert('Please enter something into Text '+i);
            e.focus();
            return;
        } // if
        info += 'Text '+i+': '+e.value+'\n';
    } // for
    info += 'Do you want to submit now?';
    if (confirm(info)) ff_validate_submit();
} // ff_submit_action