function ff_die($message='', $action='stop', $target='', $params='', $label='Continue')
{
    global $ff_processor;
    if ($ff_processor->dying) return;

    ob_end_clean();
    $form =& $ff_processor->formrow;
    if (!$message) 
        $message = 
            "<strong>Fatal error in $form->name, form processing halted.</strong>";
    switch ($action) {
        case 'self': $url = ff_makeSelfUrl($params); break;
        case 'form': $url = ff_makeFormUrl($target, $params); break;
        case 'page': $url = ff_makePageUrl($target); break;
        case 'home': $url = "{mossite}"; break;
        case 'url' : $url = $target; break;
        default    : $url = '';
    } // switch
    if ($form->class1 != '') echo '<div class="'.$form->class1.'">'.nl();
    echo($message.'<br/><br/><br/>'.nl());
    if ($url) {
        if (!$ff_processor->inline) echo '<form action="#redirect">'.nl();
        if ($ff_processor->inframe) $t = 'parent'; else $t = 'document';
        echo '<input type="button" class="button" value="'.$label.'"'.
             ' onClick="'.$t.'.location.href=\''.htmlentities($url,ENT_QUOTES).'\';"'.
             '/>'.nl();
        if (!$ff_processor->inline) echo '</form>'.nl();
    } // if
    if ($form->class1 != '') echo '</div>'.nl();
    unset($form);
    ob_start();
    $ff_processor->suicide();
} // ff_die