<?php 
}
?>
      
      <input name="button4" type="button" class="btn" id="button4" onclick="validar_checkbox_seleccionados(1)" value="Quitar Seleccionados" /></td>
    </tr>
    <tr class="fondonegro">
      <td colspan="2" align="center">Descripci&oacute;n</td>
      <td width="16%" align="center">Cantidad</td>
      <td width="19%" align="center">Importe</td>
      <td width="12%" align="center"><input name="grupo" type="checkbox" id="grupo" value="1" onclick="marcar_todos(this.form,this.checked)" /></td>
    </tr>
    <?php 
$j = '1';
$suma_importe = 0;
$rs = $venta->detalleventa_listar($_REQUEST['codigo']);
while ($campo = mysql_fetch_array($rs)) {
    ?>
    <tr bgcolor="#FFFFFF" style="cursor: hand" onmouseover="bgColor='#FFDBB7'" onmouseout ="bgColor='#FFFFFF'">
      <td width="3%" align="center"><?php 
    echo $j;
    ?>
</td>
      <td width="50%" align="center">
	  
	  <?php 
    echo $campo['detv_descripcion'];
    ?>
	  <input name="dcompra[<?php 
    echo $j;
    ?>