}
        }
    }
}
if ($_POST['loeschen'] == 'Liste löschen') {
    $bts_handler->reset_processlist();
}
if (isset($_POST['scheduler']) && !is_array($_POST['scheduler'])) {
    if (count($bts_ProcessHandler->getProcessArray()) == 0) {
        $fehlerScheduler = '<a>Bitte f&uuml;gen Sie zuerst in Schritt 1 einen Prozess hinzu.</a>';
        $openTab = 2;
    } else {
        if ($_POST['scheduler'] == 'Round Robing RR') {
            if (ueberpruefung('quantum') && $_POST['quantum'] + 0 > 0 && $_POST['quantum'] + 0 < 41) {
                $bts_ProcessHandler->resetHandler();
                $bts_ProcessHandler = $bts_scheduler->RoundRobing($bts_ProcessHandler, $_POST['quantum'] + 0);
            } else {
                $fehlerRR = '<a>Das Quantum muss zwischen 1 ms und 40 ms sein.</a><br />';
                $openTab = 2;
            }
            schedulingFehlerCheck($bts_ProcessHandler);
        } else {
            if ($_POST['scheduler'] == 'First Come First Served FCFS') {
                $bts_ProcessHandler->resetHandler();
                $bts_ProcessHandler = $bts_scheduler->verfahren($bts_ProcessHandler, 'FCFS', 0);
                schedulingFehlerCheck($bts_ProcessHandler);
            } else {
                if ($_POST['scheduler'] == 'Last Come First Served LCFS') {
                    $bts_ProcessHandler->resetHandler();
                    $bts_ProcessHandler = $bts_scheduler->verfahren($bts_ProcessHandler, 'LCFS', 0);
                    schedulingFehlerCheck($bts_ProcessHandler);