global $ff_seccode;
if (!isset($this->record_id)) $ff_seccode = null;

function ff_securityImage()
{
    global $ff_comsite, $ff_seccode;
    if (!isset($ff_seccode)) { 
        mt_srand((double)microtime()*1000000);
        $ff_seccode = mt_rand(10000, 99999);
        $_SESSION['ff_seccode'] = $ff_seccode;
    } // if
    return '<img src="'.$ff_comsite.'/secimage.php?sessid='.session_id().'" title="" alt="" />';
} // ff_securityImage