$iduser = $_SESSION["log_id"];
//=====================================================================================================
require_once "." . TINYAJAX_PATH . "/TinyAjax.php";
$cuenta = isset($_POST["NumeroDeCuenta"]) ? $_POST["NumeroDeCuenta"] : false;
$xP = new cHPage("Guia Contable");
$xP->setIncludes();
echo $xP->getHeader();
$oficial = elusuario($iduser);
$jxc = new TinyAjax();
function jsaSaveOperacion($cuenta, $operacion, $descripcion)
{
}
$jxc->exportFunction('jsaSaveOperacion', array('idCuenta', 'idOperacion', 'idDescripcion'));
$jxc->process();
$xHTxt = new cHText("id");
$xHTxt->setIncludeLabel();
$jsb = new jsBasicForm("frmGuia");
$jsb->setIncludeJQuery();
$jsb->show();
$jxc->drawJavaScript(false, true);
?>
<style>

#wrapper {
    width:600px;
}
ul.tabs {
    width:600px;
    margin:0;
    padding:0;
}
if ($recibo != false) {
    $xRec = new cReciboDeOperacion(false, false, $recibo);
    $xRec->init();
    $DRec = $xRec->getDatosInArray();
    $MontoOperacion = $DRec["total_operacion"];
    //=========================== HTML
    echo $xP->getHeader();
    echo $xJS->setIncludeJQuery();
    $jxc->drawJavaScript(false, true);
    echo $xP->setBodyinit();
    $xFrm = new cHForm("frmCobrosEnCheque", "cobro-cheques.frm.php");
    //agrega en un hidden el idrecibo
    $xTxt = new cHText("id");
    $xTxt->setIncludeLabel(false);
    $xTxt2 = new cHText("id");
    $xTxt2->setIncludeLabel(false);
    $xTxt2->setProperty("size", "10");
    $xTxt2->setProperty("maxlength", "12");
    $xTxt2->setProperty("class", "requiredfield");
    //
    $xTxt0 = new cHText("id");
    $xTxt0->setProperty("disabled", "true");
    $xSel1 = new cSelect("iCuenta1", "iCuenta1", TBANCOS_CUENTAS);
    $xSel2 = new cSelect("iCuenta2", "iCuenta2", TBANCOS_CUENTAS);
    $xFrm->addHElem(array("", "<div class='title'>IMPORTE :</div>", $xTxt0->getDeMoneda("iMontoOperacion", "", $MontoOperacion)));
    $xTxt->setDropProperty("disabled");
    $xFrm->addHElem(array("<div class='title'>Banco</div>", "<div class='title'>Num. Cheque</div>", "<div class='title'>Monto</div>"));
    $xTxt2->addEvent("onblur", "jsaGetCheque1");
    $xFrm->addHElem(array($xSel1->get(), $xTxt2->getBasic("iNumeroCheque1", 8, "required", "0"), $xTxt->getDeMoneda("iMontoCheque1", "", 0.0)));
    $xTxt->addEvent("jsActualizarPago", "onblur");
    //	$xTxt->addEvent("jsActualizarPago", "onchange");