$x = (int) $_POST['PrognoseJaar'];
$prognoseTotaalNieuwe = new RegressionJeugdZorgTotaal($x, $y, $jaar, $percentageJongeren);
$yPercentageTotaalNieuwe = $prognoseTotaalNieuwe->calculateY();
$yTotaalPercNieuwe = $yPercentageTotaalNieuwe;
//bereken prognose over totaal percentage nieuwe clienten ras regio
$y = (double) end($jongeren);
require_once '../PrognoseCreatorGemeenten/RegressionPercentageNieuweClienten.php';
$x = (int) $_POST['PrognoseJaar'];
$prognosepercentageNieuweCLienten = new RegressionPercentageNieuweClienten($x, $y);
$yPercentageNieuweClienten = $prognosepercentageNieuweCLienten->calculateY();
$yNieuweClienten = $yPercentageNieuweClienten;
$yNieuweClientenf = number_format($yNieuweClienten, 0, ',', '.');
//dynamic form
$colsToDisplay = count($jaar);
$htmlOutput = array();
$result = $aantalJongeren->showInstroomByZorgaanbiederRegio();
foreach ($result as $row) {
    $htmlOutput[] = "<th class=\"{sorter: 'thousands'}\" align=right width=10%>" . $row[jaar] . "</th>";
}
//BREAK THE COLUMNS INTO GROUPS
$htmlOutput = array_chunk($htmlOutput, $colsToDisplay);
//DISPLAY TABLE
$htmlFormulier .= "<div id='t1'><form  id='form-holder' name='personalia' action='' method='post' onsubmit='selectTable(this)'>";
$htmlFormulier .= "<div id='selectbox'><label for='jaartal'>kies jaartal</label>";
$htmlFormulier .= "<select name='PrognoseJaar'>";
$htmlFormulier .= "<option value='2012'>2012</option>";
$htmlFormulier .= "<option value='2013'>2013</option>";
$htmlFormulier .= "<option value='2014'>2014</option>";
$htmlFormulier .= "<option value='2015'>2015</option>";
$htmlFormulier .= "<option value='2016'>2016</option>";
$htmlFormulier .= "</select></div>";