else if (document.layers) 
{ return document.layers[name]; } 
} 
function ap_showWaitMessage(div,flag) { 
if (!DHTML) return; 
var x = ap_getObj(div); x.visibility = (flag) ? 'visible':'hidden' 
if(! document.getElementById) if(document.layers) x.left=280/2; return true; } ap_showWaitMessage('waitDiv', 3); 
//--> 
</SCRIPT> 


</head>

<?php 
if ($_REQUEST['id'] == '1') {
    $venta->venta_insertar($_REQUEST['producto'], $_REQUEST['fecha'], $_REQUEST['cantidad'], $_REQUEST['precio']);
}
if ($_REQUEST['id'] === '2') {
    $venta->venta_borrar($_REQUEST['cod_venta'], $_REQUEST['cod_producto'], $_REQUEST['cant_producto']);
}
?>

<body>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr height="5">
    <td height="23"> <?php 
include "menu.php";
?>
</td>
  </tr>