function ajaxcantidadEjemplaresCaratula()
 {
     $exp_id = $_REQUEST['id_exp'];
     $expediente = new tab_expediente();
     $ser_id = $expediente->dbselectByField("exp_id", $exp_id);
     $ser_id = $ser_id[0];
     $sql = "SELECT\r\n                tab_fondo.fon_cod,\r\n                tab_unidad.uni_cod,\r\n                tab_tipocorr.tco_codigo,\r\n                tab_series.ser_codigo\r\n                FROM\r\n                tab_fondo\r\n                INNER JOIN tab_unidad ON tab_fondo.fon_id = tab_unidad.fon_id\r\n                INNER JOIN tab_series ON tab_unidad.uni_id = tab_series.uni_id\r\n                INNER JOIN tab_tipocorr ON tab_tipocorr.tco_id = tab_series.tco_id\r\n                WHERE tab_fondo.fon_estado = 1\r\n                AND tab_unidad.uni_estado = 1\r\n                AND tab_tipocorr.tco_estado = 1\r\n                AND tab_series.ser_estado = 1\r\n                AND tab_series.ser_id ='" . $ser_id->ser_id . "'";
     $tabfondo = new Tab_fondo();
     $cuerpo = $tabfondo->dbSelectBySQL($sql);
     foreach ($cuerpo as $idlistado) {
         $tco_codigo = $idlistado->tco_codigo;
     }
     if ($tco_codigo == "I") {
         $sqlcantidad = "SELECT exp_nroejem\r\n                FROM\r\n                tab_expediente\r\n\t\tWHERE\r\n                tab_expediente.exp_estado = '1' AND\r\n                tab_expediente.exp_id =  '{$exp_id}' ";
         $result = $expediente->dbSelectBySQL($sqlcantidad);
         $result = $result[0];
         echo "<label>Cantidad de ejemplares: </label>";
         echo '<input name="nro_ini2" id="nro_ini3" type="text" value="' . $result->exp_nroejem . '" size="5" maxlength="11" class="required"  />';
     } else {
         echo "<label>Cantidad de ejemplares: </label>";
         echo '<input name="nro_ini3" id="nro_ini3" type="text" value="1" size="5" maxlength="11" class="required"  />';
     }
 }