$xHT = new cHTMLObject();
    echo $xHT->setInHTML($xP->setCambiar($per));
}
?>
</fieldset>
</body>
<script  >
	function setPeriodo(Id){
		document.frmupdateperiodo.cPeriodo.value = Id;
	}
	function setTerminar(){
		window.location = "../utils/clssalir.php";
	}
	function jsToAction(){
		if ( document.getElementById("idPeriodo").value == "nuevo" ){
			jsGenericWindow("./frmperiodos.php");
		}
			
	}
	function addPeriodo(){
		jsGenericWindow("./frmperiodos.php");
	}
</script>
<?php 
$jsb = new jsBasicForm("frmupdateperiodo");
$jsb->setIncludeCaptacion(false);
//$jsb->setInputProp("descripcion_de_la_cuenta", "name", "nombrecuenta" );
$jsb->show();
?>
</html>
$jxc = new TinyAjax();
//$jxc ->exportFunction('datos_del_pago', array('idsolicitud', 'idparcialidad'), "#iddatos_pago");
$jxc->process();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="<?php 
echo CSS_GENERAL_FILE;
?>
" rel="stylesheet" type="text/css">
</head>
<?php 
$jsb = new jsBasicForm("frm_division_montos", iDE_GRUPO);
$jsb->setNCtrlGrupo("cGrupo");
$jsb->mIncludeCaptacion = false;
$jsb->mIncludeCommon = false;
$jsb->mIncludeSocio = false;
$jsb->mIncludeCreditos = false;
$jsb->mIncludeRecibos = false;
$jsb->mSubPath = ".";
//$jxc ->drawJavaScript(false, true);
?>
<body>
<?php 
$action = $_GET["a"];
if (!isset($action)) {
    ?>
<form name="frm_division_montos" method="POST" action="./frmgrupossolidarioscreditos.php?a=1">
//$jxc ->exportFunction('datos_del_pago', array('idsolicitud', 'idparcialidad'), "#iddatos_pago");
//$jxc ->process();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Registro de Pagos del IDE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="<?php 
echo CSS_GENERAL_FILE;
?>
" rel="stylesheet" type="text/css">
</head>
<?php 
$action = isset($_GET["a"]) ? $_GET["a"] : false;
$jsb = new jsBasicForm("frmRegistroDeIde");
$jsb->show();
if ($action == false) {
    //$jxc ->drawJavaScript(false, true);
    ?>
<body>
<form name="frmRegistroDeIde" method="POST" action="./ide_registro_de_pago.frm.php?a=ok">
<fieldset>
	<legend><script> document.write(document.title); </script></legend>
	<table border='0'   >
		<tbody>
		<tr>
			<td>Fecha de Pago</td>
			<td><?php 
    $xF1 = new cFecha(0);
    echo $xF1->show();
			<th colspan='2'><input type='button' value='Compra de Acciones' onclick="setGoForm('compra')" /></th>
			<th colspan='2'><input type='button' value='Venta de Acciones' onclick="setGoForm('venta')" /></th>
                </tr>
		</tbody>
	</table>
	<p class='aviso'><?php 
if ($msg != false) {
    echo $msg;
}
?>
</p>
</form>
</fieldset>
</body>
<?php 
$jsb = new jsBasicForm("OperacionesEnAcciones", iDE_CAPTACION);
//$jsb->setIncludeCaptacion(true);
$jsb->setInputProp("codigo_de_cuenta", "name", "c");
$jsb->setInputProp("codigo_de_socio", "name", "s");
$jsb->setTypeCaptacion(20);
$jsb->setSubproducto(70);
$jsb->show();
?>
<script  >
function setGoForm(mAction){
	if ( mAction =='venta' ){
		jsWorkForm.action	= 'venta.acciones.frm.php';
	} else {
		jsWorkForm.action	= 'compra.acciones.frm.php';
	}
	jsWorkForm.submit();
//<=====	FIN_H
$iduser = $_SESSION["log_id"];
//=====================================================================================================
$xHP = new cHPage("TR.Panel de Control de personas", HP_FORM);
$jxc = new TinyAjax();
$xql = new cSQLListas();
$ql = new MQL();
$xImg = new cHImg();
$xF = new cFecha();
$jsTabs = "";
$idempresa = 0;
$oficial = elusuario($iduser);
$idsocio = parametro("idsocio", false, MQL_INT);
$idsocio = parametro("persona", $idsocio, MQL_INT);
$idsocio = parametro("socio", $idsocio, MQL_INT);
$xJsB = new jsBasicForm("extrasocios");
function jsaReVivienda($idsocio)
{
    $ql = new cSQLListas();
    $sqlvv = "SELECT socios_vivienda.idsocios_vivienda AS 'num',\n\t\t\n\t\t\t\t\tCONCAT('Calle ', socios_vivienda.calle, ' Num. ',\n\t\t\t\t\tsocios_vivienda.numero_exterior, '-', socios_vivienda.numero_interior, ' Col. ',\n\t\t\t\t  \tsocios_vivienda.colonia, ', ', socios_vivienda.localidad, ', ', estado)\n\t\t\t\t\tAS 'domicilio_completo',\n\t\t\t\t\tgetBooleanMX(socios_vivienda.principal) AS 'es_principal'\n\t\t\t\t    FROM socios_vivienda WHERE socio_numero={$idsocio}  LIMIT 0,10";
    $cTbl = new cTabla($sqlvv);
    $cTbl->setWidth();
    //$cTbl->addTool(1);
    $cTbl->addTool(2);
    $cTbl->OButton("TR.Verificar", "jsVerificar(_REPLACE_ID_)", $cTbl->ODicIcons()->SALUD);
    $cTbl->setKeyField("idsocios_vivienda");
    return $cTbl->Show();
}
function jsaReActividadE($idsocio)
{
    $ql = new cSQLListas();
?>
</td>
		<td >Tipo de Movimiento</td>
		<td><?php 
echo ctrl_select("operaciones_tipos", " name='tipo_operacion' ");
?>
</td>
		</tr>

	</table>
	<input type='button' name='btsend' value='EJECUTAR / VER REPORTE'onClick='execreport();' />
</form>
</fieldset>
</body>
<?php 
$xJs = new jsBasicForm("frmreports");
echo $xJs->get();
?>
<script>
var workform = document.frmreports;
	function execreport() {
	idsol 			= document.frmreports.idsolicitud.value;
	mostrar_uno 	= document.frmreports.mostrar.value;
	tipo_mostrar 	= document.frmreports.tipo_operacion.value;
	elsoc			= document.frmreports.idsocio.value;
	//=====================================================================
		anno0 = document.frmreports.elanno0.value;
		mes0 = document.frmreports.elmes0.value;
		dia0 = document.frmreports.eldia0.value;
		var fi = new Date(anno0, mes0, dia0);
		//
$cEFis = new cSelect("estadofisico", "", $gssql);
$cEFis->setEsSql();
$cEFis->show(false);
?>
	</td>
	<td>Observaciones</td>
	<td colspan="1"><input name="observaciones" type="text" size="30" maxlength="100" /></td>
	</tr>
	<tr>
		<th colspan="4"><input type="button" value="GUARDAR REGISTRO" onclick="frmSubmit();" /></th>
	</tr>
</tbody>
</table>
<?php 
//jsbasic("frmagarantias", "", ".");
$js = new jsBasicForm("frmagarantias");
echo $js->get();
$nkey = getRndKey();
/* ------------------------------------------------------------------------------------------------*/
if ($montovaluado > TOLERANCIA_SALDOS and $action != $nkey) {
    $tipogarantia = $_POST["tipogarantia"];
    $fecharecibo = fechasys();
    if (PERMITIR_EXTEMPORANEO == true) {
        if (isset($_POST["elanno98"])) {
            $fecharecibo = $_POST["elanno98"] . "-" . $_POST["elmes98"] . "-" . $_POST["eldia98"];
        }
    }
    $fechaadquisicion = $_POST["elanno0"] . "-" . $_POST["elmes0"] . "-" . $_POST["eldia0"];
    $tipovaluacion = $_POST["tipoval"];
    $observaciones = $_POST["observaciones"];
    $sociopropietario = $_POST["idsocio"];
include_once "../core/core.html.inc.php";
include_once "../core/core.init.inc.php";
$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("TR.Reportes de Inversion");
$oficial = elusuario($iduser);
$xHP->init();
//jsbasic("frmreports", "", ".");
$jsB = new jsBasicForm("frmreports", iDE_CINVERSION);
?>
<body>
<fieldset>
	<legend>Estados de Cuenta de Inversiones a Plazo</legend>

<form name="frmreports" action="frmreportsxcuenta.php" method="post">
	<table >
		<tr>
			<td>Clave de Persona</td>
			<td><input type='text' name='idsocio' value='' onchange="envsoc(20,0);" class='mny' size='10' maxlength='20' /></td>
			<td>Nombre Completo</td>
			<td><input disabled name='nombresocio' type='text' size="60"></td>
		</tr>
		<tr>
			<td>Numero de cuenta de Inversi&oacute;n</td>
//=====>	INICIO_H
include_once "../core/go.login.inc.php";
include_once "../core/core.error.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.init.inc.php";
$theFile = __FILE__;
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//<=====	FIN_H
//=====================================================================================================
$xP = new cHPage("Cobranza.- Cheques Internos", HP_FORM);
$xP->setIncludes();
$xJS = new jsBasicForm("frmCobrosEnCheque");
//=========================== AJAX
$jxc = new TinyAjax();
function jsaSetPago($Recibo, $cheque1, $Cuenta1, $monto1, $cheque2, $Cuenta2, $monto2)
{
    $sucess = true;
    $tab = new TinyAjaxBehavior();
    $xCtaBanc = new cCuentaBancaria($Cuenta1);
    $xCaja = new cCaja();
    //$recibo, $MontoRecibido, $banco, $cheque
    if (floatval($monto1) > 0) {
        $s1 = $xCtaBanc->getVerificarCheque($cheque1, $monto1);
        $sucess = $s1;
        if ($s1 == false) {
            $tab->add(TabSetValue::getBehavior("iNumeroCheque1", "0"));
        }
    //$operacion	= BANCOS_OPERACION_DEPOSITO;
    $cheque = $xRec->getNumeroDeCheque();
    $observaciones = $xRec->getObservaciones();
    //$xBanc		= new cCuentaBancaria("");
    $xBanc = $xRec->getBancoPorOperacion();
    if ($xBanc != null) {
        $banco = $xBanc->getClaveDeBanco();
        $CuentaBancaria = $xBanc->getNumeroDeCuenta();
    }
    $msg .= $xRec->getMessages(OUT_TXT);
}
//$jxc = new TinyAjax();
//$jxc ->exportFunction('datos_del_pago', array('idsolicitud', 'idparcialidad'), "#iddatos_pago");
//$jxc ->process();
echo $xHP->getHeader();
$jsb = new jsBasicForm("tesoreria_operaciones", iDE_OPERACION);
$jsb->setIncludeOnlyCommons();
//$jxc ->drawJavaScript(false, true);
echo $xHP->setBodyinit();
$xFRM = new cHForm("tesoreria_operaciones", "./tesoreria_operaciones.frm.php");
$xBtn = new cHButton();
$xTxt = new cHText();
$xTest = new cCaja();
//$xTest->addOperacion($recibo, )
$xHCob = new cHCobros();
$xHSel = new cHSelect();
$xHSel->addOptions(array(1 => "INGRESO", 0 => "NINGUNO", -1 => "EGRESO"));
$xHSel->setDefault(SYS_UNO);
//$selOperacion		= $xHSel->get("idoperacion", "operacion", $operacion);
$xSel = new cSelect("idbanco", "idbanco", TBANCOS_ENTIDADES);
$xSel->setOptionSelect($banco);
 function addJsBasico($tipo = iDE_CREDITO, $subtipo = false)
 {
     $xJs = new jsBasicForm($this->getName(), $tipo);
     if ($subtipo == false) {
     } else {
         $xJs->setTypeCaptacion($subtipo);
     }
     $this->mJS .= $xJs->get();
 }
    $xs->setDivClass("");
    $sql = $xL->getListadoDeCreditos($persona);
    $rs = $ql->getDataRecord($sql);
    $aOpts = array();
    //setLog($sql);
    foreach ($rs as $row) {
        $aOpts[$row["credito"]] = $row["credito"] . "-" . $row["producto"] . "-" . $row["periocidad"] . "-" . $row["saldo"];
    }
    $xs->addOptions($aOpts);
    return $xs->get("idcreditodescontado", "TR.CLAVE_de_credito");
}
$jxc->exportFunction('jsaSetUltimoCheque', array('idsocio', 'idsolicitud', 'idcodigodecuenta'));
$jxc->exportFunction('jsaCargaDeCreditos', array('idsocio'), "#iddivcreditos");
$jxc->process();
echo $xHP->getHeader();
$jxB = new jsBasicForm("frmministracion");
$jxB->setEstatusDeCreditos(CREDITO_ESTADO_AUTORIZADO);
$xFRM = new cHForm("frmministracion", "clscreditosministracion.php");
$xSel = new cHSelect();
$xTxM = new cHText();
$xTxM->setDivClass("");
$xTxtMC = new cHText();
$xTxM->addEvent("jsUpdateCheque()", "onfocus");
$msg = "";
$xFRM->addDataTag("role", "ministracion");
$xFRM->addCreditBasico();
$xFRM->addSubmit();
//descuento //comisiones
$xFRM->addHElem("<h3>" . $xFRM->lang("Descuentos") . "</h3>");
$xFRM->addDivSolo(" ", $xTxM->getDeMoneda("idmontocreditodescontado", "TR.Descuento"), "tx2", "tx2", array(1 => array("id" => "iddivcreditos")));
$xFRM->addDivSolo(" ", $xTxM->getDeMoneda("idmontocomisiondescontado", "TR.Comision"), "tx2", "tx2");
    //$Fecha				= $_SESSION[FECHA_OPERATIVA];
}
if (isset($_REQUEST["fecha"])) {
    $_SESSION[FECHA_OPERATIVA] = $_REQUEST["fecha"];
    $Fecha = $_SESSION[FECHA_OPERATIVA];
}
$xCred = new cCredito($solicitud);
$xCred->init();
$socio = $xCred->getClaveDePersona();
$FechaInicial = $xCred->getFechaDeMinistracion();
if (CREDITO_GENERAR_DEVENGADOS_ONFLY == true) {
    $msg .= $xCred->setReestructurarIntereses(false, $Fecha, true);
}
//$dcreds 			= $xCred->getDatosDeCredito() ;
$periocidad = $xCred->getPeriocidadDePago();
$xJsBasic = new jsBasicForm("frmProcesarPago");
$xHP->addHSnip($xJsBasic->setIncludeJQuery());
echo $xHP->setBodyinit();
if ($xCred->isPagable() == false) {
    exit($jsNoValido);
} else {
    $oFrm = new cHForm("frmProcesarPago", "./", "frmProcesarPago");
    //selector de Cobros
    $xHCob = new cHCobros();
    $xSelP = new cHSelect();
    $xhBtn = new cHButton();
    $btns = "";
    $defaultPago = OPERACION_PAGO_COMPLETO;
    switch ($periocidad) {
        case CREDITO_TIPO_PERIOCIDAD_FINAL_DE_PLAZO:
            $oFrm->addToolbar($xhBtn->getBasic("TR.ABONO ORDINARIO", "jsGetPago('ao')", "dinero", "pc2", false));
    $xAP->setGuardarPerfilTransaccional($tipo, $pais, $monto, $numero, $observaciones);
    $QL = new cSQLListas();
    $xT = new cTabla($QL->getListadoDePerfil($persona));
    $xT->addTool(SYS_DOS);
    return $xT->Show() . $xAP->getMessages(OUT_HTML);
}
$jxc->exportFunction('jsaGuardarPerfil', array('idpersona', 'idtipotransaccion', 'idpais', 'idmonto', 'idnumero', 'idobservaciones'), "#idperfil");
$jxc->process();
$persona = isset($DDATA["persona"]) ? $DDATA["persona"] : DEFAULT_SOCIO;
$persona = isset($DDATA["socio"]) ? $DDATA["socio"] : $persona;
$credito = isset($DDATA["credito"]) ? $DDATA["credito"] : DEFAULT_CREDITO;
$jscallback = isset($DDATA["callback"]) ? $DDATA["callback"] : "";
$tiny = isset($DDATA["tiny"]) ? $DDATA["tiny"] : "";
$form = isset($DDATA["form"]) ? $DDATA["form"] : "";
echo $xHP->getHeader();
$jsb = new jsBasicForm("", iDE_CAPTACION);
echo $xHP->setBodyinit();
$xFRM = new cHForm("frmperfiltransaccional", "perfil_transaccional.frm.php");
$xBtn = new cHButton();
$xTxt = new cHText();
$xTxt2 = new cHText();
$xDate = new cHDate();
$xSel = new cHSelect();
$jsb->setNameForm($xFRM->getName());
$xFRM->addHElem($xSel->getListaDePerfilTransaccional()->get("TR.tipo de perfil", true));
$xFRM->addHElem($xSel->getListaDePaises()->get("TR.pais de origen", true));
$xFRM->addHElem($xTxt->getDeMoneda("idmonto", "TR.monto maximo de operaciones mensuales"));
$xFRM->addHElem($xTxt->getDeMoneda("idnumero", "TR.numero maximo de operaciones mensuales"));
//$xFRM->addHElem(  );
$arr = array_merge($xTxt->getIDs(), $xTxt2->getIDs(), $xSel->getIDs());
$xFRM->addHElem($xTxt2->get("idobservaciones", "", "TR.observaciones"));
        $msg = "El Registro se ha Guardado Exitosamente";
    }
}
if ($cargar != "" and $origen = "recibo") {
    $xRec = new cReciboDeOperacion(false, true, $cargar);
    $xRec->init();
    $monto = $xRec->getTotal();
    $documento = $xRec->getCodigoDeDocumento();
    $recibo = $cargar;
    $fecha = $xRec->getFechaDeRecibo();
    $operacion = BANCOS_OPERACION_DEPOSITO;
    $socio = $xRec->getCodigoDeSocio();
    $xSoc = new cSocio($socio, true);
    $beneficiario = $xSoc->getNombreCompleto();
}
$jsb = new jsBasicForm("bancos_operaciones", iDE_OPERACION);
$jsb->setIncludeOnlyCommons();
//$jsb->show();
//$jxc ->drawJavaScript(false, true);
echo $jsb->setIncludeJQuery();
echo $xHP->setBodyinit();
$xTxt = new cHText();
$xBtn = new cHButton();
$xFRM = new cHForm("bancos_operaciones", "movimientos_bancarios.frm.php");
//id,	label value, size,	class,	options[])
$xSel = new cSelect("idcuenta", "idcuenta", TBANCOS_CUENTAS);
$xSel->setOptionSelect($numero_de_cuenta);
$xHSel = new cHSelect();
$xHSel->addOptions(array("cheque" => "Cheque", "deposito" => "Deposito", "retiro" => "Retiro"));
$selOperacion = $xHSel->get("idoperacion", "operacion", $operacion);
$xHSel->setClearOptions();
    $xFec = new cFecha(0, $d);
    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) {
include_once "../core/go.login.inc.php";
include_once "../core/core.error.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.init.inc.php";
$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(){
            echo $xC->getMessages("html");
            echo $msg;
        }
        echo "<input type='button' name='btsend' value='IMPRIMIR RECIBO DE DEPOSITO' onClick='jsPrintDeposito()' /> ";
        echo "<input type='button' name='btsend' value='IMPRIMIR/VER CONSTANCIA DE INVERSION' onClick='jsPrintReporto();' />";
        if ($ReciboIDE != false) {
            echo "<input type='button' name='btsend' value='IMPRIMIR/VER RECIBO DE RETENCION IDE' onClick='jsPrintIDE();'>";
        }
    }
}
?>
</body>

<?php 
$jxc->drawJavaScript(false, true);
$jsb = new jsBasicForm("OperacionesEnAcciones", iDE_CAPTACION);
//$jsb->setIncludeCaptacion(true);
//$jsb->setInputProp("descripcion_de_la_cuenta", "name", "nombrecuenta" );
$jsb->setTypeCaptacion(20);
$jsb->setSubproducto(70);
$jsb->show();
?>
<script   >
/* Imprime el Recibo de Reinversion */
	function jsPrintReporto() {
	<?php 
if (isset($RInversion)) {
    echo "\t\tvar elUrl\t\t\t= \"../rpt_formatos/frmreciboinversion.php?recibo={$RInversion}\";\n\t\t\tjsGenericWindow(elUrl);\n\t\t";
}
if (isset($RInversion2)) {
    echo "\t\tvar elUrl\t\t\t= \"../rpt_formatos/frmreciboinversion.php?recibo={$RInversion2}\";\n\t\t\tjsGenericWindow(elUrl); ";
    //$xFRM->OText("idpagos", "", "TR.Pagos Autorizados");
    $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;
?>
";
//=====================================================================================================
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;
}
ul.tabs li {
$_SESSION["current_file"] = addslashes($theFile);
//<=====	FIN_H
$xHP = new cHPage("TR.Gastos en Efectivo");
$xF = new cFecha();
$xCaja = new cCaja();
if ($xCaja->getEstatus() == TESORERIA_CAJA_CERRADA) {
    header("location:../404.php?i=200");
}
echo $xHP->getHeader();
$jscallback = parametro("callback");
$tiny = parametro("tiny");
$form = parametro("form");
$action = parametro("action", SYS_NINGUNO);
$monto = parametro("monto", 0, MQL_FLOAT);
$tipo_de_recibo = parametro("tiporecibo", 0, MQL_INT);
$xJS = new jsBasicForm("frmgtosefvo");
$lowdate = $xF->setSumarDias(DIAS_PAGO_UNICOS);
$ndia = $xF->dia();
$nmes = $xF->mes();
$nano = $xF->anno();
$xFRM = new cHForm("frm", "./");
$xBtn = new cHButton();
$xTxt = new cHText();
$xDate = new cHDate();
$xSel = new cHSelect();
?>
<script>
	function fechaminima() {
			document.frmgtosefvo.eldia0.value = <?php 
echo $ndia;
?>
		<th class='warn' id="swFechaMin" colspan='2'></th>
	</tr>
</table>
<p class="aviso" id='idfrmval'><input type="button" name="cmdSubmit" onclick="jsPrevalidarCredito();" value="<?php 
echo $xL->getT("TR.VALIDAR CREDITO");
?>
"></p>
<div id="informacion"></div>
<input type="hidden" id="idalertas" />
</form>
<!-- Datos del Socio, si existe -->
<div id="vcodev"></div>
</fieldset>
</body>
<?php 
$xJs = new jsBasicForm("frmsolicitud", iDE_CREDITO, ".");
$xJs->setIncludeCreditos(false);
$xJs->setIncludeCaptacion(true);
$xJs->setIncludeJQuery();
$xJs->show();
$jxc->drawJavaScript(false, true);
?>
<script>
var wFrm 	= document.frmsolicitud;
var mMonto	= 0;
function jsValidarMonto(){
	mMonto	= flotante($("#idmontosol").val());
	jsaValidarMontoDeCredito();
	setTimeout("jsNotificarValidacion()", 1000);
}
function jsNotificarValidacion() {
    $xT = new cTabla($sql, 2);
    $xT->setWithMetaData(true);
    //$xT->setClassT("")
    $xT->setEventKey("jsCargarCredito");
    return $xT->Show();
}
//$jxc ->exportFunction('setSwToolbar', array('solicitud'), "#space-to-toolbar");
$jxc->exportFunction('jsaGetVerifyPlan', array("idsolicitud"), "#aviso");
$jxc->exportFunction('jsaGetLetrasAVencerTodas', array("idfecha-0"), "#lst");
$jxc->exportFunction('jsaGetVerifyPlan', array("idsolicitud"), "#aviso");
$jxc->exportFunction('jsaGetLetras', array("idsolicitud"), "#divparcialidad");
//$jxc ->exportFunction('setPagoCompleto', array("solicitud", "idsocio"), "#parseValueX");
$jxc->process();
echo $xHP->getHeader();
echo $xHP->setBodyinit("initComponents()");
$jbf = new jsBasicForm("frmPreRecibo");
$jbf->setIncludeJQuery();
$jbf->mIncludeCreditos = true;
$jxc->drawJavaScript(false, true);
$xFRM = new cHForm("frmPreRecibo", "frmcobrosdecreditos2.php");
$xBtn = new cHButton();
$xTxt = new cHText();
$xDate = new cHDate();
$xSel = new cHSelect();
$msel = $xSel->getListaDeProductosDeCredito();
$msel->addEvent("onchange", "initComponents()");
$xDate->setDivClass("");
$xFRM->addDivSolo($xDate->get("TR.Fecha"), "<div id='mscom'></div>", "tx14", "tx34");
$xFRM->addCreditBasico();
$xTxt->addEvent("jsaGetLetras();jsaGetVerifyPlan();", "onfocus");
$xTxt->setDivClass("");
    $fecha_inicial = $xF->getFechaISO($fecha_inicial);
    $fecha_final = $xF->getFechaISO($fecha_final);
    $sql = $xlistas->getListadoDeAlertas(false, false, false, false, $ByEstado);
    $xT = new cTabla($sql);
    $xT->setWithMetaData();
    $xT->OButton("TR.Dictaminar", "jsModificarEstatus(_REPLACE_ID_)", $xT->ODicIcons()->REPORTE);
    $xT->OButton("TR.Panel", "jsToPanel(_REPLACE_ID_)", $xT->ODicIcons()->EJECUTAR);
    $xT->setKeyField($xAl->getKey());
    $xT->setKeyTable($xAl->get());
    return $xT->Show();
}
$jxc->exportFunction('jsaGetListadoDeAvisos', array('idtipoderiesgoaml', 'idfecha-1', 'idfecha-2', 'idactivas'), "#lstalertas");
$jxc->process();
$clave = parametro("id", SYS_TODAS);
$xHP->init("jsGetListadoAvisos()");
$jsb = new jsBasicForm("");
$xFRM = new cHForm("frm_alertas", "./");
$xBtn = new cHButton();
$xTxt = new cHText();
$xDate = new cHDate();
$xSel = new cHSelect();
$jsb->setNameForm($xFRM->getName());
$selcat = $xSel->getListaDeTipoDeRiesgoEnAML();
$selcat->addEvent("onblur", "jsGetListadoAvisos()");
$selcat->addEvent("onchange", "jsGetListadoAvisos()");
$selcat->addEspOption(SYS_TODAS);
$selcat->setOptionSelect(SYS_TODAS);
$xFRM->OHidden("idfecha-1", "", "");
$xFRM->OHidden("idfecha-2", "", "");
//$xFRM->addHElem( $xDate->get( $xFRM->lang("fecha inicial"), $xF->getDiaInicial(), 1 ));
//$xFRM->addHElem( $xDate->get( $xFRM->lang("fecha final"), $xF->getDiaFinal(), 2 ));
    $xFRM->addHTML("<input type='hidden' name='cNumeroRecibo' id='idNumeroRecibo' value='{$idrecibo}'>\n\t<input type='hidden' name='cFechaRecibo' id='idFechaRecibo' value='{$fechaRecibo}'>\n\t<input type='hidden' name='cTotalRecibo' id='idTotalRecibo' value='{$totalRecibo}'>\n\t<input type='hidden' name='cOperacion' id='idOperacion' value=''>\n\t");
    $xFRM->addFooterBar("<br/>");
    echo $xFRM->get();
    $recAct = $cEdit->getJSActions();
    $xFRM2 = new cHForm("frmajustarparc");
    //$xFRM2->addHElem( $xTxt->getNumero("idnuevototal", $totalRecibo, "TR.Nuevo Monto") );
    $xFRM2->addHElem($xDate->get("TR.Nueva fecha", $fechaRecibo, 100));
    $xFRM2->addHElem($xTxt->getNumero("idnuevoperiodo", $xRec->getPeriodo(), "TR.Nueva periodo"));
    $xFRM2->addSubmit("", "jsActualizarFecha()");
    echo "<div class=\"inv\" id=\"ajustarparc\">" . $xFRM2->get() . "</div>";
}
?>
</body>
<?php 
$jxc->drawJavaScript(false, true);
$xc = new jsBasicForm("frmrecibospanel");
//$xc->setIncludeJQuery();
$xc->setNombreCtrlRecibo("cNumeroRecibo");
$xc->show();
?>
<script>
<?php 
echo $recAct;
?>
var	idRecibo	= <?php 
echo $idrecibo;
?>
;
var xGen		= new Gen();
var xRec		= new RecGen();
var mobj 		= $("#ficharecibo");