}
function getNombre_FechaDeAbono($dia, $mes, $anno)
{
    $d = date("Y-m-d", strtotime($anno . "-" . $mes . "-" . $dia));
    $xFec = new cFecha(0, $d);
    return $xFec->getDayName();
}
$jxc->exportFunction("jsaGetControlDias", array("idtipo_plan_pagos", "iidsolicitud"), "#exCtrl");
$jxc->exportFunction('jsa_getDatosDeCredito', array("iidsolicitud"));
$jxc->exportFunction('getNombre_FechaDeMinistracion', array("ideldia1", "idelmes1", "idelanno1"), "#swFechaMin");
$jxc->exportFunction('getNombre_FechaDeAbono', array("ideldia0", "idelmes0", "idelanno0"), "#swFechaAb");
$jxc->process();
echo $xHP->getHeader();
$xJs = new jsBasicForm("frmplanpagos");
$xJs->setConCreditos();
$xJs->setEstatusDeCreditos(CREDITO_ESTADO_AUTORIZADO);
if ($rmt == SYS_UNO) {
    $xJs->setLoadDefaults();
}
$xFRM = new cHForm("frmplanpagos", "frmcreditosplandepagos.php?cmd=10");
$xBtn = new cHButton();
$xTxt = new cHText();
$xDate = new cHDate();
$xSel = new cHSelect();
$xJs->setNameForm($xFRM->getName());
?>
<body>
<?php 
if ($cmd == SYS_NINGUNO) {
    ?>
<fieldset>
    $xFRM->addHElem($xSel->getListaDePeriocidadDePago()->get(true));
    $xFRM->addHElem($xSel->getListaDeTipoDePago()->get(true));
    $xFRM->ODate("idfecha1", false, "TR.Fecha de Autorizacion");
    $xFRM->ODate("idfecha2", false, "TR.Fecha de Ministracion");
    $xFRM->OTextArea("idautorizacion", "", "TR.Docto de Autorizacion");
    //$xFRM->addSubmit();
    $xFRM->addGuardar("jsGuardarAutorizacion()");
    $xFRM->addHTML('<form name="frmOthersProcess"><div id="informacion"></div></form>');
    //2011-02-01
    $idsolicitud = 0;
    $urlsend = "";
    $urctr = "";
    $cedula_grupal = 0;
}
$xJs = new jsBasicForm("frmcreditoautorizado");
$xJs->setEstatusDeCreditos(CREDITO_ESTADO_SOLICITADO);
//$xJs->setLoadDefaults(false);
echo $xFRM->get();
if ($remoto == false) {
    echo $xJs->get();
}
$jxc->drawJavaScript(false, true);
?>
</body>
<script  >
var jsrCreditosCommon			= "../js/creditos.common.js.php";
var divLiteral				= "<?php 
echo STD_LITERAL_DIVISOR;
?>
";
function jsInit(){ autoEjecutar = false; jsaGetDatos(); $("#idtipodeautorizacion").focus();  }