if (!isset($saved) || !$saved) {
        $mode = 'search';
        $searchkey = $nr;
    }
    $breakfile = $root_path . 'modules/personell_admin/personell_register_show.php' . URL_APPEND . '&target=personell_reg&personell_nr=' . $nr;
} else {
    $local_user = '******';
    $breakfile = 'javascript:history.back()';
    $bShowSearchEntry = TRUE;
}
require_once $root_path . 'include/inc_front_chain_lang.php';
$thisfile = basename($_SERVER['PHP_SELF']);
# Load the dept doctors
require_once $root_path . 'include/care_api_classes/class_personell.php';
$pers_obj = new Personell();
$doctors =& $pers_obj->_getAllPersonellAllDepts(1, 17);
# Load global values
$GLOBAL_CONFIG = array();
require_once $root_path . 'include/care_api_classes/class_globalconfig.php';
$glob_obj = new GlobalConfig($GLOBAL_CONFIG);
$glob_obj->getConfig('personell_%');
if (!isset($searchkey)) {
    $searchkey = '';
}
if (!isset($mode)) {
    $mode = '';
}
if (!empty($ipath)) {
    switch ($ipath) {
        case 'menu':
            $breakfile = "doctors.php" . URL_APPEND;