function add()
 {
     // Code
     $ser_id = $_SESSION['SER_ID'];
     $series = new series();
     if ($_SESSION['SER_ID']) {
         $this->registry->template->ser_codigo = $series->obtenerCodigoSerie($_SESSION['SER_ID']);
         $this->registry->template->exp_codigo = "";
         $this->registry->template->exp_codigoSigla = $series->validarCodigoSerie($_SESSION['SER_ID']);
         $this->registry->template->ser_corr = $series->obtenerTipoCorrSerie($_SESSION['SER_ID']);
         $this->registry->template->uni_descripcion = $series->obtenerSeccionSerie($_SESSION['SER_ID']);
         $uni_id = $series->obtenerSeccionIdSerie($_SESSION['SER_ID']);
         $this->registry->template->series = $series->obtenerSelectSeccionDefault($_SESSION['USU_ID'], $uni_id, $_SESSION['SER_ID']);
     } else {
         $this->registry->template->ser_codigo = "";
         $this->registry->template->exp_codigo = "";
         $this->registry->template->exp_codigoSigla = "";
         $this->registry->template->ser_corr = "";
         $this->registry->template->uni_descripcion = "";
         $uni_id = 0;
         $this->registry->template->series = $series->obtenerSelectDefault($_SESSION['USU_ID'], $_SESSION['SER_ID']);
     }
     // Dynamic fields
     $expcampo = new expcampo();
     $this->registry->template->expcampo = $expcampo->obtenerSelectCampos($ser_id);
     $sopfisico = new sopfisico();
     $this->registry->template->sof_id = $sopfisico->obtenerSelect();
     $this->registry->template->exp_nrofoj = "(SIN PAG.)";
     $this->registry->template->exp_tomovol = "";
     $this->registry->template->exp_nroejem = "1";
     $this->registry->template->exp_nrocaj = "0";
     $this->registry->template->exp_sala = "";
     $expediente = new expediente();
     $this->registry->template->exp_estante = $expediente->obtenerSelectEstante();
     $this->registry->template->exp_cuerpo = "";
     $this->registry->template->exp_balda = "";
     $this->registry->template->exp_obs = "";
     $this->registry->template->exp_ori = "1";
     $this->registry->template->exp_cop = "0";
     $this->registry->template->exp_fot = "0";
     $this->registry->template->exp_lugar = "";
     $this->registry->template->exp_corr = "<OPTION>AUTO</OPTION><OPTION>MANUAL</OPTION>";
     // isadg
     $this->registry->template->exp_id = "";
     $this->registry->template->exp_titulo = "";
     $this->registry->template->exp_mesi = $expediente->obtenerSelectMes();
     $this->registry->template->exp_anioi = $expediente->obtenerSelectAnio();
     $this->registry->template->exp_fecha_exi = date("Y-m-d");
     $this->registry->template->exp_mesf = $expediente->obtenerSelectMes();
     $this->registry->template->exp_aniof = $expediente->obtenerSelectAnio();
     $this->registry->template->exp_fecha_exf = date("Y-m-d");
     //        $this->registry->template->exp_nivdes = $expediente->obtenerSelectNivelDescripcion();
     $this->registry->template->exp_volsop = "";
     $this->registry->template->exp_nomprod = "MPD.";
     $this->registry->template->exp_hisins = "";
     $this->registry->template->exp_hisarc = "";
     $this->registry->template->exp_foring = "TRANSFERENCIA";
     $this->registry->template->exp_alccon = "";
     $this->registry->template->exp_vaseel = "";
     $this->registry->template->exp_nueing = "";
     $this->registry->template->exp_org = "LOS DOCUMENTOS FUERON IDENTIFICADOS, CLASIFICADOS Y ORDENADOS EN CAJAS DE ACUERDO A CHECK LIST (SI TUVIERA) DE LA SERIE CORRESPONDIENTE .";
     $this->registry->template->exp_conacc = "EL ACCESO ESTA SUJETO A LO QUE ESTABLECE LA CONSTITUCION POLITICA DEL ESTADO Y EL ARTICULO 18 DE LA LEY 2341 SOBRE PROCESOS ADMINISTRATIVOS.";
     $this->registry->template->exp_conrep = "";
     $idioma = new idioma();
     $this->registry->template->idi_id = $idioma->obtenerSelect();
     $this->registry->template->exp_carfis = $expediente->obtenerSelectEstado();
     $this->registry->template->exp_insdes = "";
     $this->registry->template->exp_exloor = "";
     $this->registry->template->exp_exloco = "";
     $this->registry->template->exp_underel = "";
     $this->registry->template->exp_notpub = "";
     $this->registry->template->exp_notas = "";
     $this->registry->template->exp_notarc = "";
     $this->registry->template->exp_regnor = "ISAD-G, ISAAR(CPF), RCAA";
     $this->registry->template->exp_fecdes = date("Y-m-d");
     $this->registry->template->exp_descripcion = "";
     // Keywords
     //        $palclave = new palclave();
     //        $this->registry->template->pac_nombre = $palclave->listaPC('Expediente');
     $this->registry->template->pac_nombre = "";
     $this->menu = new menu();
     $this->liMenu = $this->menu->imprimirMenu(VAR1, $_SESSION['USU_ID']);
     $this->registry->template->men_titulo = $this->liMenu;
     $this->registry->template->titulo = "HOJA DE TRABAJO - Nuevo";
     $this->registry->template->PATH_WEB = PATH_WEB;
     $this->registry->template->PATH_DOMAIN = PATH_DOMAIN;
     $this->registry->template->PATH_EVENT = "save";
     $this->registry->template->GRID_SW = "true";
     $this->registry->template->PATH_J = "jquery-1.4.1";
     $this->registry->template->show('headerG');
     $this->registry->template->show('expediente/tab_expediente.tpl');
     $this->registry->template->show('footer');
 }