function getGrid()
{
    $Contrato = $_SESSION["idUsuario"];
    $idCheque = "0";
    if (isset($_REQUEST["idCheque"])) {
        $idCheque = $_REQUEST["idCheque"];
    }
    //echo "<br> cont ".$Contrato."<br> che ".$idCheque."<br>";
    $pagina = 1;
    if (isset($_REQUEST["pagina"])) {
        $pagina = $_REQUEST["pagina"];
    }
    $showProcessMsg = false;
    $params = array();
    $where = "";
    $sql = ObtenerChequeDetalle($idCheque);
    $grilla = new GridDos(10, 15);
    $grilla->addColumn(new Column("tipo", 0, true, false, -1, "", "", "", -1, false));
    $grilla->addColumn(new Column("numero", 0, true, false, -1, "", "", "", -1, false));
    $grilla->addColumn(new Column("conpago", 0, true, false, -1, "", "", "", -1, false));
    $grilla->addColumn(new Column("demandante", 0, true, false, -1, "", "", "", -1, false));
    $grilla->addColumn(new Column("demandado", 0, true, false, -1, "", "", "", -1, false));
    $grilla->addColumn(new Column("importe", 0, true, false, -1, "", "", "", -1, false));
    $grilla->setColsSeparator(false);
    $grilla->setPageNumber($pagina);
    $grilla->setParams($params);
    $grilla->setRowsSeparator(true);
    $grilla->setRowsSeparatorColor("#c0c0c0");
    $grilla->setShowTotalRegistros(true);
    $grilla->setSql($sql);
    $grilla->setUseTmpIframe(true);
    return $grilla->Draw(false);
}
function getGridChequeDetalle()
{
    $Contrato = $_SESSION["idUsuario"];
    $idCheque = paramIdCheque("0");
    $pagina = 1;
    if (isset($_REQUEST["pagina"])) {
        $pagina = $_REQUEST["pagina"];
    }
    $showProcessMsg = false;
    $params = array();
    $where = "";
    $sql = ObtenerChequeDetalle($idCheque);
    $grilla = new GridDos(10, 10);
    $grilla->addColumn(new Column("Tipo", 0, true, false, -1, "", "", "", -1, false));
    $grilla->addColumn(new Column("Número ", 0, true, false, -1, "", "", "", -1, false));
    $grilla->addColumn(new Column("Conpago", 0, true, false, -1, "", "", "", -1, false));
    $grilla->addColumn(new Column("Demandante", 0, true, false, -1, "", "", "", -1, false));
    $grilla->addColumn(new Column("Demandado", 0, true, false, -1, "", "", "", -1, false));
    $grilla->addColumn(new Column("NroFactura", 0, true, false, -1, "", "", "", -1, false));
    $grilla->addColumn(new Column("Liquidacion", 0, true, false, -1, "", "", "", -1, false));
    $grilla->addColumn(new Column("Importe", 0, true, false, -1, "", "", "alineaIzq", -1, false));
    $grilla->DefaultConfiguration();
    $grilla->setPageNumber($pagina);
    $grilla->setParams($params);
    $grilla->setSql($sql);
    return $grilla->Draw(false);
}