<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() {
	var nMonto	= flotante($("#idmontosol").val());
	if (nMonto < mMonto) {
		alert("El Monto capturado " + mMonto + "  ha sido Cambiado a " + nMonto + "\npor el sistema en base a Politicas de la Institucion.\Consulte a su Administrador." );
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 {
    display:block;
$jxc->exportFunction('jsaReRelaciones', array('idsocio'), "#tab-2");
$jxc->exportFunction('jsaCumplimiento', array('idsocio'), "#tab-6");
$jxc->exportFunction('jsaReVivienda', array('idsocio'), "#tab-1");
$jxc->exportFunction('jsaValidarDocumentacion', array('idsocio'), "#fb_extrasocios");
$jxc->exportFunction('jsaValidarRiesgo', array('idsocio'), "#fb_extrasocios");
$jxc->exportFunction('jsaValidarPerfilTransaccional', array('idsocio'), "#fb_extrasocios");
$jxc->exportFunction('jsaAddDescuento', array('idsocio', 'iddescuento'), "#fb_extrasocios");
$jxc->exportFunction('jsaAddDescuentoDesdeEmpresa', array('idmodificado', 'idcantidad'), "#fb_extrasocios");
$jxc->exportFunction('jsaSetEnviarParaAsociada', array('idsocio'), "#fb_extrasocios");
$jxc->exportFunction('jsaActualizarEmpresa', array('idempresa'), "#fb_extrasocios");
$jxc->exportFunction('jsaActualizarSucursal', array('idsucursal'), "#fb_extrasocios");
$jxc->exportFunction('jsaActualizarUsuario', array('idusuario'), "#fb_extrasocios");
$jxc->process();
$xHP->addJsFile("../jsrsClient.js");
echo $xHP->getHeader();
echo $xJsB->setIncludeJQuery();
//$xJsB	= new jsBasicForm("extrasocios");
?>
<body>
<?php 
if (setNoMenorQueCero($idsocio) <= DEFAULT_SOCIO) {
    $xFRM = new cHForm("extrasocios", "socios.panel.frm.php");
    $xBtn = new cHButton();
    $xTxt = new cHText();
    $xFRM->setTitle($xHP->getTitle());
    $xFRM->addPersonaBasico();
    $xFRM->addSubmit();
    echo $xFRM->get();
} else {
    $xSoc = new cSocio($idsocio, true);
    $xHTabs = new cHTabs();
    $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("");
$props = array(1 => array("id" => "divparcialidad"));
}
$jxc->exportFunction('jsaSetPago', array('iRecibo', 'iNumeroCheque1', 'iCuenta1', 'iMontoCheque1', 'iNumeroCheque2', 'iCuenta2', 'iMontoCheque2'));
$jxc->exportFunction('jsaGetCheque1', array('iNumeroCheque1', 'iCuenta1'), '#iMontoCheque1');
$jxc->exportFunction('jsaGetCheque2', array('iNumeroCheque2', 'iCuenta2'), '#iMontoCheque2');
//ejecuta el script
$jxc->process();
//=========================== HTML
$recibo = isset($_GET["r"]) ? $_GET["r"] : false;
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);
}
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));
            $oFrm->addToolbar($xhBtn->getBasic("TR.PAGO COMPLETO", "jsGetPago('pc')", "dinero", "pc1", false));