return $xFec->getDayName();
}
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) {
    ?>
$theFile = __FILE__;
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//<=====	FIN_H
$iduser = $_SESSION["log_id"];
//=====================================================================================================
$xHP = new cHPage();
//jsbasic("frmgtoscbza", "1", ".");
$xF = new jsBasicForm("frmgtoscbza");
//$xF->setIncludeJQuery();
$xF->setConCommon();
$xF->setConSocios();
$xF->setConCreditos();
echo $xHP->getHeader();
?>
<script  >
var jsrFile		= "../clsfunctions.inc.php";
var miform 		= document.frmgtoscbza;
var TasaIVA		= "<?php 
echo TASA_IVA;
?>
";

	function jsGetIVA(){
		var iva = document.getElementById("id_monto_cargado").value * TasaIVA;
		document.getElementById("id_iva_cargado").value		= redondear(iva);
		jsGetTotal();
	}