$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();
    $xBtn = new cHButton("");
    $oFrm = new cHForm("extrasocios", "");
    $xHSel = new cHSelect();
    $oFrm->OButton("TR.Recargar", "jsRecargar()", $oFrm->ic()->RECARGAR);
    $oFrm->addHTML($xSoc->getFicha(true));
    $oFrm->addPersonaComandos($idsocio);
    if (getEsModuloMostrado(USUARIO_TIPO_OFICIAL_CAPT) == true or getEsModuloMostrado(USUARIO_TIPO_OFICIAL_CRED) == true) {
        //Agregar otra opciones
        $oFrm->addToolbar($xBtn->getBasic("TR.Actualizar Datos", "updateDat()", "editar", "edit-socio", false));
        $oFrm->addToolbar($xBtn->getBasic("TR.Agregar Descuento Solicitado", "jsAddDescuento()", "dinero", "edit-descuento", false));
        $oFrm->OButton("TR.Reporte SIC", "jsGetCirculoDeCredito()", $xBtn->ic()->REPORTE);
        $oFrm->addToolbar($xBtn->getBasic("TR.Enviar a Empresa Asociada", "jsaSetEnviarParaAsociada()", $xBtn->ic()->EXPORTAR, "edit-aasoc", false));
    }
    //===============================================================================
    $setSql4 = $xql->getListadoDeNotas($idsocio);
    $c4Tbl = new cTabla($setSql4);
    $c4Tbl->setKeyField("idsocios_memo");
    $c4Tbl->addTool(2);
    $xHTabs->addTab($oFrm->lang("NOTAS"), $c4Tbl->Show());
    //1
    $xHTabs->addTab("TR.DOMICILIO", "");
         $integrantes[] = parametro("idsocio9", false, MQL_INT);
         foreach ($integrantes as $key => $idpersona) {
             if (setNoMenorQueCero($idpersona) > DEFAULT_SOCIO) {
                 $xGrupo->addIntegrante($idpersona);
             }
         }
         if (MODO_DEBUG == true) {
             $msg .= $xGrupo->getMessages();
         }
     }
 }
 //Agregar Domicilio si existe
 $persona = $xSoc->getCodigo();
 $xFRM->addHTML($xSoc->getFicha());
 $lastpersona = $xCL->getUltimoSocioRegistrado(true);
 $xFRM->addPersonaComandos($persona);
 $xFRM->addAvisoRegistroOK();
 //==================================== Nuevas Relaciones
 if ($origen_relacion == false) {
     $xTbl = new cHTabla("idtblrels");
     $xHSel = new cHSelect();
     $xChk = new cHCheckBox();
     $xText = new cHText();
     $xText->setDivClass("");
     $xChk->setDivClass("");
     $xBtn = new cHButton();
     $xUl = new cHUl();
     $li = $xUl->getO();
     $li->setT("ul");
     $li->setClass("tags blue");
     $li->add($xBtn->getBasic("TR.Guadar", "jsGuardarReferencia()", $xBtn->ic()->GUARDAR, "idguardar", false, true), "");