<style>
body{
	margin:0;
}
</style>
<link rel="stylesheet" href="CMD2_PR.css?f" type="text/css"/>
<table  border="0" class="baseTable"  cellpadding="0" cellspacing="0">

  <tr>
	<td width="4"></td>
	<td colspan="4"><div id="divDetProd" class="divDetProd"><input name="articulos" id="arituclos" type="text" values=""/></div></td>
  </tr>
  
  <tr >
	<td></td>
	<td colspan="2" class="cellFootCanDesTit" style="<?php echo $display;?>">Aplicar Descuento</td>
        <td><div align="left"><span class="Sub"  align="rigth">Subtotal</span></div></td>
	<td>
  <input name="tot_ali" type="hidden" id="tot_ali" size="7" class="textTotVen" onfocus="return false" READONLY/>
  <input name="sub_ven" type="text" id="sub_ven" size="7" class="textTotVen" onfocus="return false" READONLY/> 
  </td>
  </tr>
  <tr >
	<td></td>
	<td colspan="2" style="<?php echo $display;?>" class="cellFootCanDes">%
	<input name="rad_tip_des" id="rad_tip_des"type="radio" value="P" class="radTipDes" checked="checked"/>
	Mon.
        <input name="rad_tip_des" id="rad_tip_des2" type="radio" value="M" class="radTipDes"/>  </td>
	<td class="cellFootCanCon"  align="rigth"><div class="Sub" align="left">Des:</div></td>
	<td>
	  <input name="des_ven" type="text" class="textTotVen" id="des_ven" size="7" READONLY 
	  <?php

				if(isset($_POST['des_ven'])){ //este es el truco
					echo 'value="' . $_POST['des_ven'] .  '"';
				}
			?>
	  />	</td>
  </tr>
   <tr >
<!--    <td colspan="1" ></td> -->
  <td  ></td>
  <td colspan="2"  style="<?php echo $display;?>" rowspan="2" class="cellFootCanDes">
    <input name="por_desp"  style="<?php echo $display;?>" type="text" id="por_desp" size="6" class="textTipDes" onkeyup="aplDes()" style="border-color:#FF0000; border:double"
	<?php

				if(isset($_POST['por_desp'])){ //este es el truco
					echo 'value="' . $_POST['por_desp'] .  '"';
				}
			?>/>    </td>
   <td width="105" align="rigth"><span class="Sub">Servicio:</span></td>
	<td width="81">
	<input name="servi" type="hidden" id="servipor" size="7" class="textTotVen" onFocus="return false" value="<?php echo $porSer;?>">
	<input name="servi" type="text" id="servi" size="7" class="textTotVen" onFocus="return false" value="0"></td>
 
    
    <td style="display:none"><input name="tot_det_cob" type="hidden" id="tot_det_cob" size="7" class="totDetCob"/>
    <input name="tot_sal_ven" type="hidden" id="tot_sal_ven" size="7" class="totDetCob"/></td>
  </tr>
  <tr >
	<td>&nbsp;</td>
	    <td width="105" align="rigth"><span class="Sub">Total</span></td>
	<td width="81"><input name="tot_ven" type="text" id="tot_ven" size="7" class="textTotVen" onFocus="return false"></td>
  </tr>
 
  <tr>
    <td>&nbsp;</td>
    <td width="75"></td>
    <td width="80"></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
