*  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA          
 *  02111-1307, USA.                                                  
 *  
 *  Copia da licenca no diretorio licenca/licenca_en.txt 
 *                                licenca/licenca_pt.txt 
 */
session_start();
include "libs/db_stdlib.php";
include "libs/db_sql.php";
include "dbforms/db_funcoes.php";
include "classes/db_itbiconstr_classe.php";
include "classes/db_itbiconstrespecie_classe.php";
include "classes/db_itbiconstrtipo_classe.php";
$cl_itbiconstr = new cl_itbiconstr();
$cl_itbiconstrespecie = new cl_itbiconstrespecie();
$cl_itbiconstrtipo = new cl_itbiconstrtipo();
parse_str($HTTP_SERVER_VARS["QUERY_STRING"]);
postmemory($HTTP_POST_VARS);
$cod = @$_SESSION["itbi"];
if (isset($incluir)) {
    if ($incluir == "Incluir") {
        db_inicio_transacao();
        $sqlerro = false;
        $cl_itbiconstr->it08_guia = $cod;
        $cl_itbiconstr->it08_area = $it08_area;
        $cl_itbiconstr->it08_areatrans = $it08_areatrans;
        $cl_itbiconstr->it08_ano = $it08_ano;
        $cl_itbiconstr->it08_obs = $it08_obs;
        $cl_itbiconstr->incluir(null);
        if ($cl_itbiconstr->erro_status == 0) {
            $sqlerro = true;
//db_postmemory($HTTP_SERVER_VARS,2);
$clitbiavalia = new cl_itbiavalia();
$clitbi = new cl_itbi();
$clitbirural = new cl_itbirural();
$clitbiruralcaract = new cl_itbiruralcaract();
$clitbimatric = new cl_itbimatric();
$clitbilogin = new cl_itbilogin();
$clitburbano = new cl_itburbano();
$clitbinumpre = new cl_itbinumpre();
$clitbinome = new cl_itbinome();
$clitbinomecgm = new cl_itbinomecgm();
$clitbicgm = new cl_itbicgm();
$clitbiconstr = new cl_itbiconstr();
$clitbipropriold = new cl_itbipropriold();
$clitbiconstrespecie = new cl_itbiconstrespecie();
$clitbiconstrtipo = new cl_itbiconstrtipo();
$clnumpref = new cl_numpref();
$clparreciboitbi = new cl_parreciboitbi();
$clrecibo = new cl_recibo();
$clarrenumcgm = new cl_arrenumcgm();
$compradoresm = 0;
$compradoresf = 0;
$transmitentesm = 0;
$transmitentesf = 0;
$outroscompradores = "";
$outrostransmitentes = "";
$it14_valoravalterfinanc = 0;
$it14_valoravalconstrfinanc = 0;
$it14_valoravalfinanc = 0;
$it04_aliquotafinanc = 0;
$p = 0;