<% /*
     $Revision$
     $Id$

    // This file contains the default Facilitor settings, and is included in any file.
    // To override these settings you must add the same setting to the appropriate
    // cust.inc file, using your own valid value.
    // THIS FILE MAY NOT BE CHANGED TO USE DIFFERENT SETTINGS
    // Invalid changes to this file may lead to unexpected results.
    // (c) 2000-2011 SG|facilitor bv. All rights reserved.

    Definieert gegarandeerd variabele customerId

*/

var FCLTVersion="5.1.2"; // software versie
var FCLTMinDatabaseSchema="13";

if (typeof DOCTYPE_Disable == "undefined")
{
    Response.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"');
    Response.write(' "http://www.w3.org/TR/html4/strict.dtd">');
}

if (typeof rooturl == "undefined")
    rooturl = ""; /* when installed in Virtual folder define in ../install.inc rooturl="/VirtualFaciltor"; */

// Diverse andere variabelen zijn afhankelijk van customerId. Héél vroeg bepalen dus!
if ( typeof Session("customerId") == "undefined" )
{   // ASP-Sessie verlopen.
    if (Request.QueryString("fac_id").Count>0) // doen API's nog wel eens
    {
        if (Request.QueryString("api").Count>0)
        {
            Session.Abandon(); // Voorkom dat een session ontstaat doordat we een API-call doen.
            // When the Abandon method is called, the current Session object is queued for deletion
            // but is not actually deleted until all of the script commands on the current page have
            // been processed. This means that you can access variables stored in the Session object
            // on the same page as the call to the Abandon method but not in any subsequent Web pages.
        }
        Session("customerId") = getQParam("fac_id", "").toUpperCase();
    }
    else
        Response.Redirect("../shared/expired.asp");
}

customerId = Session("customerId");

  if (typeof custpath == "undefined")
      custpath = rooturl + "/cust/" + customerId;  // path to customer files

  logoff_return_url = "../../";     // Return url to go to after log off
  checkBrowser = 0;                 // Check for IE6/7/8 at login (1) or not. Default toggled to 0 since 5.1.2
  ProxyServerIPAddress = null;      // For webserver to reach outside world

  language_toggles = ["NL"];        // Allow language toggle for alternate languages
  multi_language_option = 0;        // Enable multi language

  debug=false;                      // DEPRECATED: internal use only {true | false}
  hiresTimer=null;                  // internal use only
  image_path_local = 'nodefault';   // path used by LAN for flexproperties of type X (fclt.ini:Documentdir)
  image_path_local_regexp = null;   // Reguliere expressie, bijvoorbeed /^G:/i
  image_path_virtual = custpath;    // path used by WEB for flexproperties of type X
  flexFilesPath = Server.MapPath(custpath + "/flexfiles"); // Path for Flexbestanden type 'F' en 'M', zonder eindslash

  flexForbiddenExt = ".*\\.(asp|aspx|inc|bat|exe|com|scr|dll|hta|js|vbs|wsh|lnk|udl)$"; // Regexp forbidden extensions

  flexExtensionFilter = null;       // All files can be uploaded. "PDF DOC TIFF XLS" would filter
  flexFilesOrdering = 0;            // Ordering for list of flexfilenames {0=ascending | 1=descending};
  BijlagenStreamPath = "../shared/BijlagenStream.asp";
  flex_X_is_URL = 0;                // 0=browse-knop 1=gewoon input field

  menu_start_collapsed = 1;         // Show collapsed (1) or expanded menu at startup
  menu_collapse_threshold = 5;      // Max number menugroups in a tab before we will collapse
  menu_tab_toggles_portalmenu = 1;  // Also activate corresponding portal_menu in body (1) or not (0)
  menu_image_path = custpath+"/flexfiles/menu/";  // relative! path to folder storing menu pictures

  view_dwf_with_slnkdwf = false;    // View DWF document files using SLNKDWF
  ins_history = '1';                // historymode for flexproperties {0 | 1}
  os_logon=false;                   // enable NT domain logon {true | false}
  helppage_url = "http://wiki.facilitor.nl/fac_wrapper.php";   // Helppage
  timepickercolumns = 4;            // Nr of columns for timepicker (increase for long days or short intervals)

  fo_may_edit_kostenplaats=0;       // company setting whether the FrontOffice may change the kostenplaats
                                    // free format (1) or kostenplaats is fixed dependent on organisation (0).
  man_kenmerk_hidden=0;             // kenmerken met (PRS)MAN rechten zijn hidden in profiel. {0:USE rechten hidden | 1:MAN rechten hidden}
  prs_max_dep_level = 2;            // number of levels between prs_bedijf and prs_perslid (max = 5)
  max_result_in_filtered_listbox = -1; // maximum number of items allowed in a filtered listbox (-1 = old fashioned listbox)
  qp_maxrows = 100;                 // Maximum number of rows to show, displays 'L("lcl_qp_maxrows")' if exceeded (was: 1000)
  qp_maxrows2 = 1000;               // Maximum number of rows to show, displays 'L("lcl_qp_maxrows")' if exceeded (was: 5000)
  rs_maxchar = 150;                 // vanaf hier afgekapt en 'Meer...' tonen.
  kosten_klant_default = 1;         // initial status of kosten klant checkbox { 0 - unchecked | 1 - checked }
  prs_password_validation = -1;     // regular expression for password to be accepted as valid, {-1 = no check | RegExp }
  iconcolumns = 6;                  // number of columns in an iconmenu page.

  BackgrounderInterval = 0;         // time (seconds) between Backgrounder.asp [=Check for new messages] refreshes (min = 300)
  NotifyMessageInterval = 0;        // time (seconds) between NotifyMessage.asp [=Check for popups] refreshes. 0=disable
  usrrap_refreshrate=60             // time between auto refresh of selected usrraps (seconds)
  PerformInterval = 0;              // time (seconds) between shared/performancetester.asp refreshes 0=disable
  perfmon_threshold = -1;           // time threshold for statements to be monitored for performance {milliseconds | -1}

  login_use_email = 0;              // use email to check user authentication { 0 - use oslogin | 1 - use email }
  mobile_password = 0;              // get the login password on your mobile
  mobile_password_exp = 15;         // time to enter the login code received on the mobile in minutes.
  email_password = 0;               // Show 'wachtwoord vergeten' optie
  SmsUrl = "";                      // SMS service URL
  SmsUid = "";                      // User id for SMS service
  SmsPwd = "";                      // Password for SMS service
  SmsReplyPhone = ""                // Reply id for SMS service, this can be either a phonenumber or a string
  auto_https = 0;                   // 0=not https, 1=http redirects to https, (2=error when not http, not supported yet)
  qrc_enable = 1;                   // Enable QRC-authentication feature (1) or not (0)

  prs_dep_all = false;      // allow attaching persons on all department level { true | false }

  // defines the format for display of departments. Options are:
  // D.PRS_AFDELING_NAAM : the bare description (used for searches)
  // D.PRS_AFDELING_NAAM1: parent code-child description
  // D.PRS_AFDELING_NAAM2: parent code-child code
  // D.PRS_AFDELING_NAAM3: the bare code
  // D.PRS_AFDELING_NAAM4: parent description-child description
  // D.PRS_AFDELING_NAAM5: child description [parent codes]
  // D.PRS_AFDELING_NAAM6: code-description
  prs_dep_string =  "d.prs_afdeling_naam";

  prs_pers_string = " p.prs_perslid_naam"
                  + "|| NVL2( p.prs_perslid_voorletters, ', ' ||  p.prs_perslid_voorletters, '')"
                  + "|| NVL2( p.prs_perslid_tussenvoegsel, ' ' || p.prs_perslid_tussenvoegsel, '')"
                  + "|| NVL2( p.prs_perslid_voornaam, ' (' || p.prs_perslid_voornaam || ')', '')";

  prs_contactpers_string = "cp.prs_contactpersoon_naam "
                         + "|| NVL2(cp.prs_contactpersoon_voorletters, ', ' || cp.prs_contactpersoon_voorletters, '')"
                         + "|| NVL2(cp.prs_contactpersoon_tussenv, ' ' || cp.prs_contactpersoon_tussenv, '')"
                         + "|| NVL2(cp.prs_contactpersoon_voornaam, '( ' || cp.prs_contactpersoon_voornaam || ')', '')";

  prs_kpn_string = " k.prs_kostenplaats_nr || ' ' || k.prs_kostenplaats_omschrijving";

  alg_loc_string = " l.alg_locatie_omschrijving || ' (' || l.alg_locatie_code || ')' ";

  EnableMailService = 0;            // Enable email notifications {0 | 1} [requires "SMTP Service" on server]
  email_regexp = "^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$"; // kan geavanceerder...
  FromAddress  = "nodefault";       // must be defined if EnableMailService
  ReplyAddress = "nodefault";       // ReplyTo Address

//GENERAL SETTINGS //////////////////////////////////////////////////////////////////////
  widgetportal = 0;                 // Use a widgetpage as startpage (1) or the standard page (0)
  portalteaser="";                  // Message to be shown always at the portal (string)
  portalnewslength=72;              // Max. length of a line in statusinfo frame for hyperlinked messages {0..512}
  portalnewsmax=25;                 // Max. number of messages in statusinfo frame {-1=unlimited | n=limit to n most recent messages}
  portalmsgmax=5;                   // Max. number of messages in messages frame {-1=unlimited | n=limit to n most recent messages | 0=no messages}
  portalmenucols=2;                 // Nr cols in portal menu
  portalmenulines=5;                // Max lines in protalmenu (incl. "More..."
  facilitiespast = 2;               // Number of days in the past to show (my) facilities
  facilitiesfuture = 31;            // Number of days in the future to show (my) facilities
  currency_pref = 'EUR ';           // Currency prefix
  currency_suff = '';               // Currency suffix
  cal_showOn = 'button';            // or 'focus' or 'both'

  show_ordernr = 0;                 // 0=never,>0=always
  can_selfapprove = 1;              // I can approve myself below my limits (1) or someone else must approve always (0)
  prs_approvemethod = 1;            // Approval tree: 1 = kp.budgethouder, kpngroep.verantwoordelijke,
                                    // 2 = first traverse up the departments for a kp.budgethouder
  use_simple_sso = 0;               // Use user id decoding UID_DEC (Simple Single Signon uit of aan zetten) {0=no | 1=yes}
  mobile_guest_user = null;         // QRCode only for now, set to "_GAST" and assign rights to _GAST.

//MODULE SETTINGS ///////////////////////////////////////////////////////////////////////

//Graphics II
  fg_dwf_path = Server.MapPath(custpath + "/" + "dwf/") + "\\";       // full filepath to facilitor graphics DWF files
  fg_dwf_path_concept = fg_dwf_path + "concept/";
  fg_vlucht_path = fg_dwf_path + "vlucht" + "\\";       // full filepath to facilitor graphics vlucht DWF files
  fg_symbols_path = fg_dwf_path + "symbols" + "\\"; // full filepath to facilitor graphics symbol files
  fg_dwf_path_prj = fg_dwf_path + "prj" + "\\"; // full filepath to facilitor graphics DWF files for scenarios

  // content of the FG Tab pages, empty string denotes 'tab not available'
  // inside
  fg_rap_alg   = '../CAD/rap_alg.asp';
  fg_rap_algc  = '../CAD/rap_algc.asp'; // concept
  fg_rap_bez   = '../CAD/rap_bez.asp';
  fg_rap_cnt   = '../CAD/rap_cnt.asp';
  fg_rap_ins   = '../CAD/rap_ins.asp';
  fg_rap_mld   = '../CAD/rap_mld.asp';
  fg_rap_prs   = '../CAD/rap_prs.asp';
  fg_rap_sch   = '../CAD/rap_sch.asp';
  fg_rap_sle   = '../CAD/rap_sle.asp';
  fg_rap_mov   = '../CAD/rap_move.asp';
  fg_rap_cust  = '';
  // outside
  fg_rap_alg2   = '../CAD/rap_alg2.asp';
  fg_rap_bez2   = '../CAD/rap_bez.asp';
  fg_rap_cnt2   = '../CAD/rap_cnt.asp';
  fg_rap_ins2   = '../CAD/rap_ins2.asp';
  fg_rap_mld2   = '../CAD/rap_mld.asp';
  fg_rap_prs2   = '../CAD/rap_prs.asp';
  fg_rap_sch2   = '../CAD/rap_sch.asp';
  fg_rap_sle2   = '../CAD/rap_sle.asp';
  fg_rap_cust2  = '';

  fg_paperColor = 0xEAEBEC;     // paper background or -1 for 'as published'
  fg_contourColor = 0x00FF00;   // Default roomcontour coloring
  fg_contourAlpha = 0;          // Default roomcontour transparancy. 0==invisible!
  fg_paperColorCpt = 0xd0d0d0;  // paper background concept
  fg_contourColorCpt = 0xffff00;// Default roomcontour coloring concept new rooms
  fg_contourAlpha = 0;          // Default roomcontour transparancy. 0==invisible!
  fg_ThemaAlpha = 224;          // Default roomcontour transparancy. 255==solid!
  fg_inLabelSize = 800;         // Binnen ruimtelabels grootte (mm)
  fg_inWPLabelSize = 400;       // Binnen wekrpleklabels grootte
  fg_inINSLabelSize = 250;      // Binnen objectlabels grootte
  fg_outLabelSize = 16000;      // Buiten terreinsectorlabels grootte
  fg_outINSLabelSize = 8000;    // Buiten objectlabels grootte
  fg_labelPosition = 1;         // 1=default, 2=center, 3=topleft
  fg_startBuiten = false;       // Bij binnenkomst van FGII buiten/terrein-situatie tonen
  fg_translateprintcolor = [];  // Kleur vertalingen bij printen
  fg_dobbelScale= 0.5;          // Schaal voor de dobbelsymbolen versus normale grootte
  fg_dobbelDist= 1400;          // Afstand dobbel symbolen
  fg_WPScale= 1.0;              // Schaal voor werkplek symbolen tov 1.0
  fg_ins_symbols = false;       // Objecten als symbolen in de tekening plaatsen.
  fg_show_all_help = false;     // Activering help wanneer bij klik op uitklapschermpje {false=no | true=yes}

  /* mapping van labels in tekening met ruimtenr in database */
  fg_syncruimteview  = 'cad_v_sync_alg_ruimte';
  fg_syncterreinview = 'cad_v_sync_alg_terrein';

  fg_contourlayers      = "{CONT!.}|{CONT\\|.*}";
  fg_labellayers        = "{CONT!.}|{CONT\\|.*}";
  fg_contourlayers_alt1 = "";
  fg_labellayers_alt1   = "";
  fg_contourlayers_alt2 = "";
  fg_labellayers_alt2   = "";
  fg_contour_minArea    = 0.2e6; // minimale mm2 om herkend te worden als ruimte (millimeter! dus)
                                 // PAS OP: Geldt wel globaal *alle* websites die dezelfde SLNKDWF.DLL gebruiken!
  fg_werkpleksymbool    = "WERKPLEK"; // Moet in fg_symbols_path staan

  var fg_PrintStyles = new Array();
  fg_PrintStyles["FG0"] = "A4 normaal";
  fg_PrintStyles["FG1"] = "A4 met legenda";
  fg_PrintStyles["FG2"] = "A3 normaal";
  fg_PrintStyles["FG3"] = "A3 met legenda";
  fg_PrintStyles["SLNKDWF"] = "Volgens SLNKDWF methode";

//ALG
  alg_ruimtenr_aut_use = 0;         // WEB_ALGUSE may change alg_ruimte_nr/omschrijving {0=WEB_ALGMAN required | 1=WEB_ALGUSE allowed too}
  alg_ruimte_comm_opp_key = -1;     // Key to be used for commercial ruimte oppervlakte
  alg_terrein_comm_opp_key = -1;    // Key to be used for commercial terrein oppervlakte
  alg_ruimte_extra_key = -1;        // ALG_KENMERK_KEY representing additional column (after ruimte_nr) in overview room
  alg_fg_remote_maps = "";          // URL. if not "" use Google Maps for locations en buildings in Facilitor Grafics

//BES
  var BES_img_dir = "nodefault";    // images directory is relative to <root>/BES
  bes_show_RFO_price = 2;           // show prices {0=no support | 1=FO support | 2=FE&FO support}
  bes_show_local_adr = true;        // show local address (workplace) in bestelling forms
  bes_lower_bo_only = 0;            // button 'Lower' present {0=FO and BO | 1=only BO}
  rfo_order_limit_kkey = -1;        // PRS_KENMERK_KEY of property Order Limit
  rfo_approval_person_kkey = -1;    // PRS_KENMERK_KEY of property Approver
  cust_bes_checkrfo_function = "";  // customer specific check function to restrict RFOs
  bes_datum_limiet = 90;            // max days in the future
  bes_bestelling_prefix = "";       // prefix voor het aanvraagnummer van de bestelling
  bes_bestelopdr_prefix = "";       // prefix voor het opdrachtnummer van de bestelling
  bes_afleverruimte_verplicht = 0;  // Afleverruimte required {0=no (default) | 1=yes}
  bes_retour_need_approval = 0;     // retourbestelaanvraag wel(=1)/niet(=0) langs de BO laten gaan voor fiattering
  bes_exact_nr_search = 1;          // use filtervalue as start-with (1) or contains (0)
  bes_show_inkprijs = 0;            // show inkoopprijs column with BES management info {0=no | 1=yes}
  bes_pgb_fiattering = 0;           // Algemene fiatteringsproces noodzakelijk naast PGB fiatering? {0=no | 1=yes}
  bes_allow_for_others = 0;         // Can i make orders for others ? {0=no | 1=yes}

//CNT
  cnt_srttype_maintenance    = 1;    // cnt_srtcontract_type of maintenance contract type
  cnt_srttype_rental         = 2;    // cnt_srtcontract_type of room rental contract type
  cnt_srttype_support        = 3;    // cnt_srtcontract_type of supporting contracts (loc / bld and obj sort)
  cnt_srttype_generic        = 4;    // cnt_srtcontract_type of generic contracts without a scope
  cnt_srttype_loc_lev_rel    = 5;    // cnt_srtcontract_type to maintain location supplier relations.
                                     // these contracts are not shown in the MLD BO order window.
  cnt_srttype_default        = cnt_srttype_maintenance;    // default type for new contracts(?)
  cnt_internnr_readonly      = 0;    // intern contract number may be edited or is read only (0=changeble | 1=read only)

  mld_huurmut_vakgroep_key   = -1;   // mld_discipline waaronder meldingen voor huurmutaties worden gemaakt
  cnt_minhuurmut_level       = "L";  // "L", "G", "V": Mimaal te kiezen niveau (Locatie/Gebouw/Verdieping) voor zoeken huurmutaties
  cnt_edit_by_button         = 0;    // edit contractdata normally (0) or only after pressing an extra Edit button (1)
  cnt_all_kostenplaats       = 0;    // show all (1) active kostenplaats values or only the one i have mandate for (0) in list

// FAQ
  faq_enabled = 0;                  // Is kennisbank available {0 | 1} licensed separately
  faq_max_results = 10;             // Limit the result to this number
// FAC
  iLearning_enabled = 0;            // Is iLearning available {0 | 1} licensed separately
  kto_srtdiscipline_key = -1;       // key van KTO (klanttevredenheidsonderzoek) vakgroeptype
  fac_graph_pie_colors = "['red', 'grey', 'green', 'orange', 'blue', 'yellow', 'purple']"; // Colors being used for pie charts
  fac_graph_colors1 = "['blue']";         // Color used for single bar /line graphs
  fac_graph_colors2 = "['red', 'green']"; // Colors used for stacked bar /line graphs

//FIN
  // deprecated: fin_requires_approval = 0;        // approval needed for invoices of bes_bestelling (0=automatic 1=yes)
  // deprecated: mld_factuur_marge = 0;            // How many % the invoice sum may exceed the mld_opdr_kosten before showing red line in invoice list
  fin_btw_default = 3;              // Standaard btw tarief (1=NL|Nul, 2=NL|Laag, 3=NL|Hoog, enz.)
  fin_defaultboekmaand = 1;         // How to determine default "boekmaand" for entered invoice: 1=sysdate, 2=orderdate
  fin_new_after_save = 0;           // Na het opslaan terugkomen met de factuur in de showmode of met nieuw leeg invulformulier (0=showmode || 1=nieuw formulier)
  fin_import_app_key = -1;          // fac_import_app_key of customer 'FACTUUR' import: -1=Facilitor standard
  fin_enable_kostensoort = 1;       // can factuur kostensoort be changed?
  fin_kostensoort_verplicht = 0;    // Is kostensoort required? {0=not required | 1=required}
  fin_bof_mag_editen = 1;           // Users/Approvers with FINBOF rights have edit possibilities {0=no edit (only approve) | 1=edit (default)}
  fin_enable_afwijzen = 1;          // Is it possible to reject an invoice or not {0=Afwijzen unavailable | 1=Afwijzen available}

//MLD
  mld_meldbron_key = 5;             // MLD_MELDBRON_KEY of meldbron 'intranet'
  mld_melding_uitvoertijd = 2;      // default if not defined with stdmelding (in days)
  mld_same_mld_days = -1;           // in days
  mld_melding_autoprint = 0;        // auto print melding form after insert by FO
                                    // { 2= unconditionally print complain | 1= print if ask_for_orders=0 | 0= no print}
  mld_ask_for_orders = true;        // ask for immediate order input after call entry { true | false }
  mld_rejected_is_open = 0;         // show rejected meldingen as Open FE/FO {1=Open | 0=Closed}.
  mld_ord_input_company_list = 1;   // select table to fill executive list {0=external | 1=external and internal}
  mld_fe_force_vakgroep = 0;        // vakgroep is required first for FE {1=required | 0=<All> present}
  mld_fo_force_vakgroep = 0;        // vakgroep is required first for FO {1=required | 0=<All> present}
  mld_typeopdr_key = 5;             // Default order type or -1 to select default (at order-creation) from most to least specific per vakgroep
  mld_fo_default_user = false;      // user current user a default caller, { true=user default | false=empty default }
  mld_order_autoprint = 1;          // orders will be printed {0=print only at insert for extern and intern | 1=print with any save | 2=print only at insert for extern | 3=never print}
  mld_ord_show_cost = 1;            // use standard cost fields for orders {0=don't use | 1=use}
  mld_ord_show_ordernr = show_ordernr; // show ordernr field for orders {0=don't show(&use mld_melding_ordernr) | 1=show}
  mld_ord_show_kostenplaats = 1;    // show kostenplaats field for orders {0=don't show | 1=editable | 2=show}
  mld_ord_change_type = 1;          // Can change opdr_type (0=no, 1=yes, 2=undefined)
  mld_order_in_mail_body = 0;       // include order information in the body of the mail (1) or as attachment (0) (default = 0)
  mld_order_on_behalf_of = 1;       // bo sends orders on behalf of the company of the caller. {0:use caller's company stylesheet | 1: use backoffice company stylesheet}
  mld_contract_startdate_key = -1;  // key of flex prop in rental contract mutation call
  mld_enable_workflow = 0;          // enable workflow in call handling {0=workflow disabled | 1=workflow enabled }
  mld_close_mld_auto = 0;           // Close call automatically (no question) when last order is closed (0=question 1=auto)
  mld_close_opdr_auto = 0;          // Show popup with question to close all orders (0=no closing of orders 1=question)
  mld_contract_no_renter_key = -1;  // Key of company to indicate that the contract - room relation (CNT_CONTRACT_ONRGOED) can be removed
  mld_bo_sort_descending = 0;       // Sort ordering of mld_melding for BO (0 = most urgent first | 1 = last made first );
  mld_show_exec_time_always = 0;    // Show exec time in details of complain (0 = only BO and existing complains | 1 = always);
  mld_max_history = 0;              // Show calls and orders not longer then mld_max_history days ago (FE/FO/BO) ((mld_max_history <= 0) : show all finished calls and orders (default))
  mld_melding_close = 0;            // Can close complain with orders in complain overview window without seeing complain details? {0=yes default | 1=no}
  mld_opdr_close = 0;               // Can close orders in order overview window without seeing order details? {0=yes default | 1=no}
  mld_opdr_ask_mail_if_unknown = 0; // Workaround for sending order by e-mail to 'externe relatie' if address unknown (0=disabled default | 1=enabled)
  mld_opdr_confirm_for_send = 0;    // Ask confirmation before sending an e-Order to a supplier (0=do not ask| 1=ask)
  mld_behandeling_fo = 1;           // FO can see the 'Note' button (0=No, 1=Yes)
  mld_note_sort_ascending = 0;      // Sort (of time) ordering of melding notes for FO and BO {0 = descending | 1 = ascending }
  mld_close_mobile = 0;             // Close melding or opdracht using mobile device (0=melding | 1=opdracht)
  mld_mobile_close_own_call_only = 0; // Only close own orders or close orders in scope ORDBO2 (0=own calls | 1=ORDBO2 scope)
  mld_bo_logboek_mode = 2;          // Determine what is/can be logged in 'Logboek' (0=disabled | 1=automatic log enabled | 2=manual log enabled | 3=both enabled; see also FBTI#12870)
  mld_afmelden_extern = 0;          // Are external orders visible and/or changeble by ORDBO2 (0=not visible | 1=visible for ORDBO2 | 2=visible and changeble by ORDBO2)
  mld_max_kosten_extern = 9999999;  // limit order amount to be entered by external handlers
  mld_melding_start_empty = 0;      // Melding selectbox starts with empty selection instead of first one (0=select first | 1=select empty)
  mld_use_order_approval = 1;       // Approval mechanism is used for mld orders (0=disabled | 1=enabled)
  mld_ord_flexsummary = 1;          // User summary of melding-flexprop in initial order description {0=no | 1=yes}
  mld_print_order_details = 1;      // Print order details in backoffice overview orders {0=no | 1=yes}
  mld_show_order_details = 1;       // Show remark in backoffice Orders Management {0=no | 1=yes}
  mld_forward_all = 1;              // Forward a complain 0= to a complain with the same srtdiscipline 1= (default) to a complain for all srtdisciplines
  mld_fe_show_statusnames = 1;      // Show name to FE of the users who changed the status of a melding {0=no | 1=yes}
  mld_uren_weeks_back = 8;          // Show this number of weeks in the overview, endig at the selected date
  mld_stdmelding_startdatum = 0;    // Bij een melding de startdatum tonen {0=no | 1=yes}
  mld_plaats_is_locatie_only = 0;   // Bij de plaats van een melding tot en met ruimte (0) opgeven of alleen locatie(1), ongeacht de stdmelding
  mld_enforce_orderdates = 0;       // Enforce order start/ending dates to be within call start/ending dates
  mld_afhandeling_required_for_close = 0; // Het veld afhandeling verplicht bij het afmelden van een melding (0=no, 1=yes)
  mld_suppress_directklaar_notification = 0; // Suppress de notificatie bij DirectKlaar {0=no (default) | 1=yes}
  mld_restrict_mobile_to_me = 0;    // For mobile, show calls within scope (0) or only list calls assigned to me (1) with scope
  mld_forward_if_active = 0;        // A melding can be forwarded until status accept (0) of until afgemeld (1).
  mld_allow_for_others = 0;         // Can i make calls for others ? {0=no | 1=yes}
  mld_allow_parentmelding = 0;      // Allow attaching a call to another manually (0=not | 1=allow)

//PRS
  prs_perslid_datums = 0;           // show contract dates with perslid details {0=don't show| 1=show}
  prs_telefoonnr_aut_use = 0;       // WEB_PRSUSE may change prs_perslid_telefoonnr {0=WEB_PRSMAN required | 1=WEB_PRSUSE allowed too}
  prs_use_edit_werkplek = 9;        // enduser can change own location (9=no, 2=within location, 3=within building etc.)
  prs_use_edit_photo = 0;           // enduser can upload own photo?
  prs_use_mld_wijzigkey = -1;       // enduser can create this 'melding' to request change in information
  prs_bedrijf_leveranciernr_unique = 0; // leveranciernr or prs_bedrijf unique (1) or not unique (0)
  prs_hide_fixed_fields = 0;        // Do not (1) display phonenumber/tarif fields with person details
  prs_dep_default_kpn = 1;          // A user can make costs for his own department by default {0=no | 1=yes}
  prs_werkplek_implicit = 0;        // Are workplaces treated as separate entitities (0) or implicitly/invisible used in person-room relations(1)
  prs_ruimteafdeling_explicit = 1;  // Manage the room departments explicit (=1) or room occupation follows from prs_perslidwerkplek (=0)
  prs_collegas_used = 0;            // Can FE users indicate collegues for replacement (1) or not (0)
  prs_dep_default_kpn_voor = 0;     // Gebruik de kostenplaatsen van de prs_perslid_voor indien gezet samen met mld_allow_for_others/bes_allow_for_others

//PHONEBOOK
  prs_phonebook_info = "";          // Message to be shown at the top of the phonebook
  //phone_2_key = -1;                 // PRS_KENMERK_KEY of property internal cellphone number
  //phone_3_key = -1;                 // PRS_KENMERK_KEY of property external phonenumber
  //phone_4_key = -1;                 // PRS_KENMERK_KEY of property external cellphone number
  //phone_locatie_key = -1;           // PRS_KENMERK_KEY of property Location
  photo_kenmerk_key = -1;           // ALG_KENMERK_KEY of property Room picture
  prs_photo_kenmerk_key = -1;       // PRS_KENMERK_KEY of property Person picture tonen Ja/Nee
  prs_photo_kenmerk_showval = "-1"; // PRS_KENMERK_WAARDE indicating 'Yes'
  ph_export_advanced = false;       // do not show advanced export button
  locphone_kenmerk_key = -1;
  locfax_kenmerk_key = -1;
  phone_usrrap_key = -1;            // userrap key for custom phonebook
  phone_show_functie =  true;       // Toon Functie filter veld
  prs_plaats_key = -1;              // PRS_KENMERK_KEY of property location, if -1, the workplace is used for the location
  prs_image_path = custpath+"/flexfiles/prs/";  // path to folder storing person pictures
  flex_wrkplace_building = -1;      // ALG_GEBOUW_KEY of pseudo building storing all flexible workplaces
  editworkplace = false;            // allow editing of workplace with personel data behind phonebook {false}
  ph_loc_search = true;             // provide search on locations in phonebook (true) or not (false)
  ph_bedr_search = true;            // provide search on companies in phonebook (true) or not (false)
  // Settings
  ph_rowdetails = 1;                // Show phonebook details when click-on-row
  ph_placeFG = 0;                   // Show FG popup when click on place
  ph_showparentafdeling = 0;        // Show parent afdeling
  ph_showfunctie = 0;               // Toon functie van de persoon {0=no (default)| 1=yes}
  prs_mandaterequiresprofiel = 0;   // Alleen personen met een profiel kunnen worden (onder)gemandateerd (1) of iedereen (0)
  ph_persliddetails_page = 'appl/fac/fac_user_info_phone.asp';
  prs_ph_bedrijf = 1;               // Bedrijven selectbox aanwezig in informatiegids overzichtscherm {0=no | 1=yes (default)}
  ph_cust_flexsearch_key = -1;      // custom flexsearchfield for phonebook. Must be 'Suggest' type!

//PRJ
  prj_fg_paperColor = 0xFFFFFF;     // paper background for projects {nn=color | -1='as published'}
  fg_prj_syncruimteview = 'cad_v_sync_prj_ruimte';
  prj_discipline_key = -1;          // mld_discipline_key of discipline for moves

//OBJ
  ins_excel_obj_report = "ins_v_srtdeel_kenmerkdeel"; // query for excel-report overview object window
  ins_fg_remote_maps = "";          // URL. if not "" use Google Maps instead of FG if x,y coordinates of an object are available
  ins_inspect_soon_days = 30;       // Days margin for needs inspection 'soon'
  ins_inspect_late_days = -7;       // Days margin for needs inspection 'late'
  ins_inspect_allow_past = 1;       // May we register inspections for the past or not {0=no | 1=yes}
  ins_flex_uitgifte_empty = 0;      // Flexvelden die geen meetwaarden zijn leeg maken bij uitgifte {0=no (default) | 1=yes}

//PRSAAN
  fac_usrtab_badge_key  = -1;       // FAC_USRTAB_KEY of Badges list
  fac_usrdata_key_titel = -1;       // FAC_USRTAB_KEY of Titles list
  prs_werkplek_key_rooms_yes = -1;  // ALG_RUIMTE_KEY of default room for people requiring wp
  prs_werkplek_key_rooms_no = -1;   // ALG_RUIMTE_KEY of default room for people not requiring wp
  contract_type_kenmerk_key = -1;   // PRS_KENMERK_KEY of property person contract type
  badgenum_kenmerk_key  = -1;       // PRS_KENMERK_KEY of property badge number

// QVW
  qvw_enabled = 0;                   // Is qlikview available {0 | 1}
  qvw_ajaxzfcpath = ((Request.ServerVariables("SERVER_PORT") == "443")?"https":"http")
                  + '://qv.facilitor.nl/QvAjaxZfc/';  // Root prefix to QlikView Analyzer Zero Footprint Client (must end with /)

//RES
  reduced_obj_info = true;          // suppress place details of reservable object {true | false}
  res_descript_required = false;    // require description field for reservation
  res_default_alg_ruimte_key = -1;  // Standard roomkey for catering
  res_default_room_disc_key = -1;   // Standard room category
  bes_catering = -1;                // Button "Take/Deliver" not visible in Planboard window
  res_block = 1;                    // Minimal reservation duration (hours)
  res_bo_status_key = 5;            // status of reservations to be considered as Closed
  res_dur = 2;                      // initial reserving duration (hours)
  res_reservering_limiet = -1;      // max number of days from now that reservations are allowed, in past or future {-1 = no limit}
  res_fe_reservering_limiet = -1;   // possible overrule of res_reservering_limiet for fe users

  res_h = 0.5;                      // reservation interval (hours)
  res_default_fe_status_key = 2;    // (5i)Default reservation status for FE (1=optie, 2=definitief)
  res_default_fo_status_key = 2;    // Default reservation status for FO (1=optie, 2=definitief)
  res_t1 = 8;                       // reservation day start (hour)
  res_t2 = 18;                      // reservation day end (hour)
  res_cat_t1 = -1;                  // Catering day start (hour), -1 is take res_t1
  res_cat_t2 = -1;                  // Catering day start (hour), -1 is take res_t2
  res_t1_c = 8;                     // Standard catering take/deliver time (hour)
  res_t_middag = -1;                // Start time for afternoon tarif for rooms (hour), -1 is one price over the day
  res_t_avond = -1;                 // Start time for evening tarif for rooms (hour),   -1 is one price over the day
  res_fo_default_user = true;       // user current user a default caller, { true=user default | false=empty default }
  res_hide_remark = 0;              // Hide remark field in reservation screen ( 0=show | 1=hide | 2=hide only at add)
  res_copy_to_bez = 3;              // Duplicate properties to visitors {0=none | 1=remark | 2=flex | 3=remark and flex | &4=at all changes}
  res_bo_show_telnr = 1;            // Show telephonenumber column in res bo list (0=no show | 1=show)
  res_bo_show_kpn = 1;              // Show account number column in res bo list (0=no show | 1=show)
  res_bo_show_host = 1;             // Show host column in res bo list (0=no show | 1=show)
  res_fe_edit_option_only=0;        // FE can only edit 'Optional' reservations (0=opties+definitieve (default) 1=alleen opties)
  res_fo_list_days = 0;             // Default number of days in FO overview (working days)
  res_fe_list_days = 5;             // Default number of days in FE overview
  res_fe_init_host_empty = false;   // Define how FE reservation host is set initially { false=same as user/caller | true=empty }
  res_247organisation = 0;          // 24/7 organisation (1= weekends are working days 0= weekends are holidays)
  res_fe_show_plantooltip = 0;      // FE can(1) or cannot (0) see who has reserved a room in the planboard
  res_fe_anotherroom = 0;           // Show anotherroom button for FE in new reservations (0=no button | 1=button)
  res_fe_nextroom = 0;              // Show nextroom button for FE (0=no button | 1=button)
  res_fe_discs_only_in_res = -1;    // List of disciplines that can only be reserved in RES_ROOMS
  res_search_require_locatie = 0;   // (5i)Require selection of a location (for large users) for res_search or not (1=require | 0=dont require)
  res_default_CVAB_mode = 1;        // 0 (00)=Te kiezen&default Afhalen, 1 (01)=Te kiezen, default Bezorgen (default),
                                    // 2 (10)=Vast     &default Afhalen  3 (11)=Vast,      default Bezorgen
  res_fe_allow_dirty = 1;           // 0=fe kan niets opslaan wat iets dirty zou maken, 1=het mag wel
  res_noshow_detailed = 1;          // No-show is a checkbox (0) or a number (1)
  res_vcalendar_link = 1;           // Download naar 'Outlook'
  res_room_order = 0;               // Planbord sorted by capacity or description (0=capacity (default) | 1=description)
  res_image_path = custpath+"/photos/";  // path to folder storing res_ruimte pictures

//BEZ
  vis_dur = 0;                      // default visitors duration
  vis_h = 0.25;                     // time stepsize
  vis_t1 = 8;                       // visitors day start (hour)
  vis_t2 = 18;                      // visitors day end (hour)
  vis_t1_std = 8;                   // standard visiting begin time of visitors (hour)
  vis_t2_std = 18;                  // standard visiting end time of visitors (hour)
  vis_afspraak_limiet = -1;         // max number of days from now that visitors are allowed, in past or future {-1 = no limit}
  vis_fe_afspraak_limiet = 180;     // max number of days from now that visitors are allowed by FE, in past or future {-1 = no limit}
  vis_checkout_enable = 1;          // register checkout of visitors by BO {0=no | 1=yes}
  vis_badgeprint_enable = 1;        // print {0=no | 1=print at check in | 2=show print button | 3=both 1 and 2}
  vis_user_history = 7;             // number of days in the past the FE can see his vistors
  vis_expire = 0;                   // number of days in the future from which the FE can delete de visitors
  vis_afspraak_onrgoed_uses_keys = 0;// listboxes location until room instead of only a room text field; INITIEEL INRICHTEN (BEZ-tabellen leeg)!
  vis_mandatory_alg_level = 'L';    // alg level 'L' (location), 'G' (building, 'V' (floor) or 'R' (room)
  vis_afspraak_host_uses_keys = 0;  // the field "Bezoek voor" is a listbox (1 = true) otherwise a textfield; INITIEEL INRICHTEN (BEZ-tabellen leeg)!
  vis_park_pretime = 0;             // extra park time before an appointment
  vis_park_posttime = 0;            // extra park time after an appointment
  vis_bo_end_interval = 12;         // standard bo end time interval
  vis_bez_autoprint = 0;            // appointment will be printed each time it is saved { 0=never | 1=only at insert | 2=always at save }
  vis_bo_uses_badgenrs = 0;         // the BO enters and uses badgenr registration { 0=no | 1=yes }
  bez_sel_contactpersoon = 1;       // can I select contactpersonen
  bez_sel_internpersoon = 0;        // can I select internal persons { 0=no | 1=yes }
  bez_closeafteradd = 0;            // 0=not, 1=bo, 2=fo, 3=bo&fo
  vis_allow_check_all = 1;          // multiple-checkin visitors { 0=no | 1=yes }
  vis_allow_uncheck = 0;            // allow uncheck visitors { 0=no | 1=yes }
  bez_multiday = 0;                 // Can user enter an end-date for an appointment
  vis_bo_show_all = 0;              // On entry: Are all checkboxes selected
  vis_bo_search_host = 0;           // Show field 'Host' for VIS BO to search on
  vis_warning_limit = -1;           // After this time, show alert when visitor reservation is for the next day after this day, which is actually too late (-1 = geen tijdswaarde, format = 16:00)
  vis_park_image = "../Pictures/vis_park.gif";       // location and filename of visitors parking image.
  vis_park_text  = "";              // Text to replace image in register_input
  vis_future_checkin = 0;           // How many days before visit can a visitor be checked in (days)
  vis_default_number = 4;           // Default number of visitors (= nr of lines to be filled out) for new appointment
  vis_increment_number = 1;         // Number of visitors (= nr of lines to be filled out) to be added with one click
  bez_bo_orderby = 0;               // Bezoekersbalie na datumtijd sorteren op { 0=Naam van de bezoeker | 1=Naam van de gastheer}
  bez_uitleen_toestaan = 0;         // Het uitlenen van objecten aan bezoekers { 0=no | 1=yes }

//SLE
  cil_ins_srt_groep_key = -1;       // INS_SRTDEEL_KEY of object type Cylinders
  sle_ins_srt_groep_key = -1;       // INS_SRTDEEL_KEY of object type Keys
  ins_dummy_ruimte = -1;            // ALG_RUIMTE_KEY of room holding unused cylinders(??)

//SCH
  sch_alg_ruimte_opp_column = 0;    // Determine what ALG_RUIMTE-column to use as surface for cleaning (0=bruto | 1=alt1 | 2=alt2)
  sch_alt_v_locatiegeg      = "";   // Alternative view to use instead of sch_v_locatiegegevens for location cleaning data (in sch_search.asp)
  sch_alt_v_ruimtegeg       = "";   // Alternative view to use instead of sch_v_ruimtegegevens for room cleaning data (in sch_search.asp)

//MRK
  mrk_message_expire_days  = 30;                            // Message automatically expires after <mrk_message_expire_days>
  mrk_message_image_path   = "/"+custpath + "/images_mrk/"; // Directory for Images marketplace

//MES
  msg_reply_enabled = 1;            // Only show answer button if msg_reply_enabled=1 (default).
  msg_afzender = "";                // ReplyTo Address for messages (module berichten)

//API
  FCLTAPIS = [];                    // default no API's
%>
<!-- #include file="../shared/common.inc" -->
