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

    File:               get_cnt_info_ajax.asp
    Description:        Ophalen van allerlei info om client-side data te hebben
    Parameters:         req_info:   "afdeling"    --> requires "afd_key"

    Context:
    Note:
    Sample:             appl/mld/get_cnt_info_ajax.asp?req_info=afdeling&afd_key=1
*/ %>

<%
var JSON_Result = true;
%>

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

<%
var req_info = getQParam("req_info");
var result = {};
switch (req_info)
{
    case "afdeling":
    {
        var afd_key = getQParamInt("afd_key");
        result = cnt.cnt_get_afdeling(afd_key);
        break;
    }
}

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