public function __construct($x, $y)
 {
     $db_handle = DBConnect::getInstance();
     $jaarJongeren = new aantalJongeren($db_handle);
     $jaar = $jaarJongeren->showJaren();
     // $laatsteDrieJaren = array_slice($jaar, 2,3);
     $this->xAx_Points = $jaar;
     $aantalJongeren = new JeugdVG($db_handle);
     $percentageJongeren = $aantalJongeren->showPercentageNieuweClienten();
     //       $percentageLaatsteDrieJaren = array_slice($percentageJongeren, 2,3);
     $this->yAx_Points = $percentageJongeren;
 }
        $yPercentageNieuweClientenGGZf = '0';
    }
    $htmlFormulier3 .= "<td class=tabelfooter align=right>{$yPercentageNieuweClientenGGZf} </td>";
    $htmlFormulier3 .= "</tfoot>";
    $htmlFormulier3 .= "</table>";
    $htmlFormulier3 .= "<input type='submit' value='' class='submit_button' id='subm'>";
    $htmlFormulier3 .= "</fieldset>";
    $htmlFormulier3 .= "</form></div>";
    echo $htmlFormulier3;
}
//Jeugd-VG nieuwe clienten 2006-2012
require_once '../PrognoseCreatorGemeenten/JeugdVG.php';
//haal het aantal nieuwe clienten uit de database
$jeugdVG = new JeugdVG($db_handle);
$totaalnieuweClientenVG = $jeugdVG->showAantalNieuweClienten();
$jeugdVG = new JeugdVG($db_handle);
$percentageNieuweClientenVG = $jeugdVG->showPercentageNieuweClienten();
$y = end($jongeren);
require_once '../PrognoseCreatorGemeenten/RegressionJeugdVG.php';
$x = (int) $_POST['PrognoseJaar4'];
$prognosepercentageNieuweCLientenVG = new RegressionPercentageNieuweClientenJeugdVG($x, $y);
$yPercentageNieuweClientenVG = $prognosepercentageNieuweCLientenVG->calculateY() . '<br>';
$yNieuweClientenVG = $yPercentageNieuweClientenVG / 100 * $y;
$yNieuweClientenVGf = number_format($yNieuweClientenVG, 0, '.', ',');
$colsToDisplay4 = count($jaar);
$htmlOutput4 = array();
$result4 = $aantalJongeren->showInstroomByZorgaanbiederRegio();
foreach ($result4 as $row4) {
    $htmlOutput4[] = "<th class=\"{sorter: 'thousands'}\" align=right width=10%>" . $row4[jaar] . "</th>";
}
//BREAK THE COLUMNS INTO GROUPS