$userid = $eve->VarCleanFromInput('userid');
        $args['apikey'] = $eve->VarCleanFromInput('apikey');
        $args['userID'] = $eve->VarCleanFromInput('userid');
        $args['characterID'] = $eve->VarCleanFromInput('characterID');
        $args['corporationName'] = $eve->VarCleanFromInput('corporationName');
        $args['corporationID'] = $eve->VarCleanFromInput('corporationID');
        $args['allianceName'] = $eve->VarCleanFromInput('allianceName');
        $args['allianceID'] = $eve->VarCleanFromInput('allianceID');
        $savekey = $posmgmt->API_SaveKey($args);
        if ($savekey) {
            $eve->SessionSetVar('statusmsg', 'API Key Saved!');
        }
        $eve->RedirectUrl('install.php?step=5');
    } elseif (!$action) {
        //Begin API KEy Mangager
        $keys = $posmgmt->API_GetKeyInfo();
        foreach ($keys as $index => $key) {
            $shortkey = substr($key['apikey'], 0, 5);
            $keys[$index]['shortkey'] = $shortkey;
        }
        $eveRender->Assign('keys', $keys);
        $eveRender->Assign('step', $step);
        $eveRender->Display('install/install.tpl');
        exit;
    }
} elseif ($step == 6) {
    $eve->SessionSetVar('statusmsg', 'Installation/Upgrade done. Please delete the install.php file.');
    $eve->RedirectUrl('index.php');
}
function Ajax_InstallRegion()
{