<%@ LANGUAGE = JavaScript %>
<% /*
     $Revision$
     $Id$
*/ %>
<%
DOCTYPE_Disable = true;
%>

<!--#include file="../Shared/common.inc"-->
<!--#include file="../Shared/json2.js" -->
<%
    var scenario_key = getQParamInt("scenario_key");
    var floor_key = getQParamInt("floor_key");
    var my_prjrechten = user.func_enabled("PRJ", null, floor_key);
    if (my_prjrechten.canWrite('WEB_PRJBOF'))
    {
        var sql = "BEGIN prj.prj_initiate_scenario ("+ scenario_key+", "+ floor_key + "); END;"
        var oRs = Oracle.Execute( sql );
        var data = { success: true, warning: L("lcl_prj_floor_added") };
    }
    else
    {
        var data = { success: false, warning: L("lcl_no_auth") };
    }
    Response.Write(JSON.stringify(data));
%>
