<td height="20" bgcolor="#FFFFFF" class="toolbar"><a href="javascript:ue_nuevo();"><img src="../shared/imagebank/tools20/nuevo.gif" alt="Nuevo" width="20" height="20" border="0"></a><a href="sigespwindow_blank.php"><img src="../shared/imagebank/tools20/salir.gif" alt="Salir" width="20" height="20" border="0"></a><img src="../shared/imagebank/tools20/ayuda.gif" alt="Ayuda" width="20" height="20"></td>
  </tr>
</table>
<?Php
require_once("../shared/class_folder/grid_param.php");
require_once("../shared/class_folder/sigesp_include.php");
require_once("../shared/class_folder/class_funciones.php");
require_once("../shared/class_folder/ddlb_meses.php");
require_once("sigesp_scb_c_cmp_ret_mcp.php");
require_once("../shared/class_folder/class_mensajes.php");

$io_grid		  = new grid_param();
$sig_inc		  = new sigesp_include();
$con			  = $sig_inc->uf_conectar();
$fun			  = new class_funciones();
$ddlb_mes		  = new ddlb_meses();
$in_class_cmp_ret = new sigesp_scb_c_cmp_ret('0000000003');
$io_msg			  = new class_mensajes();

	$arre       = $_SESSION["la_empresa"];
	$ls_empresa = $arre["codemp"];
    $la_emp     = $_SESSION["la_empresa"];

if(array_key_exists("operacion",$_POST))
{
	$ls_operacion= $_POST["operacion"];
	$ls_tipo     = $_POST["rb_provbene"];
	$ls_mes      = $_POST["mes"];
	$ls_agno     = $_POST["agno"];
	$ls_provbenedesde = $_POST["txtprovbendesde"];
	$ls_provbenehasta = $_POST["txtprovbenhasta"];
<head>
<title>Libro de Compras Resumido</title>

<meta http-equiv="" content="text/html; charset=iso-8859-1">
<script type="text/javascript" language="JavaScript1.2" src="js/stm31.js"></script>
<script type="text/javascript" language="JavaScript1.2" src="../shared/js/valida_tecla.js"></script>
<link href="../shared/css/cabecera.css" rel="stylesheet" type="text/css">
<link href="../shared/css/general.css" rel="stylesheet" type="text/css">
<link href="../shared/css/tablas.css" rel="stylesheet" type="text/css">
<link href="../shared/css/ventanas.css" rel="stylesheet" type="text/css">
<link href="css/cxp.css" rel="stylesheet" type="text/css">
</head>
<body link="#006699" vlink="#006699" alink="#006699">
<?php 
require_once "../shared/class_folder/ddlb_meses.php";
$ddlb_mes = new ddlb_meses();
if (array_key_exists("txtcodigo1", $_POST)) {
    $ls_codprov1 = $_POST["txtcodigo1"];
} else {
    $ls_codprov1 = "";
}
if (array_key_exists("txtcodigo2", $_POST)) {
    $ls_codprov2 = $_POST["txtcodigo2"];
} else {
    $ls_codprov2 = "";
}
if (array_key_exists("radiocategoria", $_POST)) {
    $ls_tipo = $_POST["radiocategoria"];
} else {
    $ls_tipo = "P";
}
  </tr>
  <tr>
    <td height="20" colspan="11" bgcolor="#E7E7E7" class="cd-menu"><script type="text/javascript" language="JavaScript1.2" src="js/menu.js"></script></td>
  </tr>
  <tr>
    <td height="13" bgcolor="#FFFFFF" class="toolbar">&nbsp;</td>
  </tr>
  <tr> 
    <td height="20" bgcolor="#FFFFFF" class="toolbar"><a href="javascript:ue_nuevo();"><img src="../shared/imagebank/tools20/nuevo.gif" alt="Nuevo" title="Nuevo" width="20" height="20" border="0"></a><a href="sigespwindow_blank.php"><img src="../shared/imagebank/tools20/salir.gif" alt="Salir" title="Salir" width="20" height="20" border="0"></a></td>
  </tr>
</table>
<?php
require_once("../shared/class_folder/ddlb_meses.php");
require_once("../shared/class_folder/class_mensajes.php");
require_once("class_folder/sigesp_scb_c_cmp_retencion.php");
$io_cmbmes    = new ddlb_meses();
$io_retencion = new sigesp_scb_c_cmp_retencion("../");
$io_msg       = new class_mensajes();
$ls_conivaret = $_SESSION["la_empresa"]["estretiva"];
$lb_chepro    = "checked";
$lb_cheben    = "";
uf_limpiarvariables();

	switch($ls_operacion)
	{
		case "NEW":
			if($ls_conivaret=="C")
			{
				$io_msg->message("Los Comprobantes de Retenciones IVA se generan por el Módulo de Cuentas por Pagar !!!");	
			}
			else