} else {
             $persona = $xSoc->getCodigo();
             $sucess = true;
         }
     } else {
         $persona = $xSoc->getCodigo();
         $sucess = true;
     }
 }
 if ($importar == false) {
     if ($xSoc->existe($persona) == false) {
         //$sucess	= false;
         //$msg	.= "ERROR\tLa persona $persona NO EXISTE\r\n";
         if (PERSONAS_COMPARTIR_CON_ASOCIADA == true) {
             //Intentar cargar desde servidor externo
             $cargar = $xSoc->getImportarDesdeAsociada(TPERSONAS_GENERALES);
             if ($cargar == true) {
                 $xSoc->getImportarDesdeAsociada(TPERSONAS_DIRECCIONES);
                 $xSoc->getImportarDesdeAsociada(TPERSONAS_ACTIVIDAD_ECONOMICA);
             }
             $xSoc = new cSocio($persona);
             if ($xSoc->existe($persona) == false) {
                 $sucess = false;
                 $msg .= "ERROR\tLa persona {$persona} NO EXISTE en ASOCIADA\r\n";
             } else {
                 $sucess = true;
                 $msg .= "OK\tLa persona {$persona} ha sido importada\r\n";
             }
         }
         if ($sucess == false) {
         }
function jsaImportarDeAsociada($persona)
{
    $xSoc = new cSocio($persona);
    $xSoc->getImportarDesdeAsociada(TPERSONAS_ACTIVIDAD_ECONOMICA);
}
function jsaImportarDeAsociada($persona)
{
    $xSoc = new cSocio($persona);
    $xSoc->getImportarDesdeAsociada(TPERSONAS_DIRECCIONES);
}