function obtenerProvincias()
 {
     $provincia = new provincia();
     $res = $provincia->obtenerSelect(0, $_REQUEST['Dep_id']);
     echo $res;
 }
 function view()
 {
     //Edificios
     if (!VAR3) {
         die("Error del sistema 404");
     }
     $this->ubicacion = new tab_ubicacion();
     $tab_provincia = new tab_provincia();
     $tab_localidad = new tab_localidad();
     $this->ubicacion->setRequest2Object($_REQUEST);
     $ubi = new ubicacion();
     $row = $this->ubicacion->dbselectByField("ubi_id", VAR3);
     if (!$row) {
         die("Error del sistema 404");
     }
     $row = $row[0];
     $row_loc = $tab_localidad->dbselectByField("loc_id", $row->loc_id);
     $row_pro = $tab_provincia->dbselectByField("pro_id", $row_loc[0]->pro_id);
     $departamento = new departamento();
     $provincia = new provincia();
     $localidad = new localidad();
     $this->registry->template->dep_id = $departamento->obtenerSelect($row_pro[0]->dep_id);
     $this->registry->template->pro_id = $provincia->obtenerSelect($row_loc[0]->pro_id, $row_pro[0]->dep_id);
     $this->registry->template->loc_id = $localidad->obtenerSelect($row->loc_id, $row_loc[0]->pro_id);
     $this->registry->template->ubi_id = $row->ubi_id;
     $this->registry->template->ubi_par = $row->ubi_par;
     $this->registry->template->ubi_codigo = $row->ubi_codigo;
     $this->registry->template->ubi_descripcion = $row->ubi_descripcion;
     $this->registry->template->ubi_direccion = $row->ubi_direccion;
     $this->registry->template->titulo_ubi = "EDITAR EDIFICIO";
     $this->registry->template->PATH_WEB = PATH_WEB;
     $this->registry->template->PATH_DOMAIN = PATH_DOMAIN;
     $this->registry->template->PATH_EVENT = "update";
     $this->registry->template->GRID_SW = "true";
     $this->registry->template->PATH_J = "jquery-1.4.1";
     $this->menu = new menu();
     $this->liMenu = $this->menu->imprimirMenu(VAR1, $_SESSION['USU_ID']);
     $this->registry->template->men_titulo = $this->liMenu;
     $this->registry->template->show('headerG');
     $this->registry->template->show('ubicacion/tab_ubicacion.tpl');
     $this->registry->template->show('footer');
 }