<%@ LANGUAGE = JavaScript %>

<% /*
     $Revision$
     $Id$

    File:               cnt_xml.asp
    Description:        XML converter for contracts
    Parameters:
        cnt_key         required, key of the contract to convert into XML

    Context:            Called from: anywhere where cnt print icon is available
    Note:
*/ %>

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

<%
    var cnt_key = getQParamInt("cnt_key", -1);

    var this_cnt = cnt.func_enabled_contract(cnt_key);
    user.auth_required_or_abort(this_cnt.canReadAny);

    FCLT2XMLResponse( {xmlnode:'contract', key: cnt_key });
%>
<% ASPPAGE_END(); %> 
