<%@ language = "JavaScript" %>
<%
/*
    $Revision$
    $Id$

    File:               get_bes_info_ajax.asp
    Description:        Ophalen van allerlei info om client-side data te hebben
    Parameters:         req_info:   "bes_bestelling"    --> requires "bes_bestelling_key"

    Context:
    Note:
    Sample:             appl/bes/get_bes_info_ajax.asp?req_info=bes_bestelling&bes_key=1

*/ %>

<%
var JSON_Result = true;
%>

<!-- #include file="../Shared/common.inc"-->
<!-- #include file="../Shared/json2.js" -->
<!-- #include file="./bes.inc" -->

<%
var req_info = getQParam("req_info");
var result = {};
switch (req_info)
{
    case "func_enabled_bestelling":
    {
        var bes_key = getQParamInt("bes_key");
        var bes_bestelling = bes.bestelling_info(bes_key); // Globale variabele met alle bes_bestelling informatie
        //var bes_disc_info = bes.disc_info(bes_bestelling.dis_key); // alle discipline informatie
        var result = bes.func_enabled_bestelling(bes_bestelling);
        result.bes_key = bes_key;
        break;
    }
}

Response.Write(JSON.stringify(result));
%>
