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

    File:               get_bez_info_ajax.asp
    Description:        Ophalen van allerlei info om client-side data te hebben
    Parameters:         req_info:   "bez_freeprk"    --> requires "loc_key", "date_from" en "date_to"

    Context:
    Note:
    Sample:             appl/ALG/get_bez_info_ajax.asp?req_info=bez_freeprk&loc_key=1&date_from=1300168800000&date_to=57600000

*/ %>

<%
var JSON_Result = true;
%>

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

<%
var req_info = getQParam("req_info");
var result = {};
switch (req_info)
{
    case "bez_freeprk":
    {
        var loc_key = getQParamInt("loc_key");
        var date_from = getQParamDate("date_from");
        var date_to = getQParamDate("date_to");
        result = bez.bez_prkinfo(loc_key, date_from, date_to);
        break;
    }
}

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