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

     File:        mld_stdmsrtruimte_delete.asp
*/ %>

<%
var JSON_Result = true;
%>

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

<%
protectRequest.validateToken();
/***** Get webform parameters *****/

var stdmsrtruimte_key = getFParamInt("mld_stdmsrtruimte_key");
/***** End get webform parameters *****/

var result = {};
var authparams = user.checkAutorisation("WEB_MLDMGT");

var sql = "DELETE FROM mld_stdmsrtruimte"
        + " WHERE mld_stdmsrtruimte_key = " + stdmsrtruimte_key;
var err = Oracle.Execute(sql, true);

if (err.friendlyMsg)
  abort_with_warning(err.friendlyMsg);

var result = {success: true, stdmsrtruimte_key: stdmsrtruimte_key, message: ""};
Response.Write(JSON.stringify(result));
%>
