var s_title_name="WJ-NUSeries",s_model_name="WJ-NU301",s_pre_model_name="WJ-NU301",s_app_name="PoE budget calculator for PoE Ethernet switch",s_app_ver="Ver 1.4.0.0 ENG (2025/06/26)",s_app_reqspec="Operating Environment : Windows 11 / 10, Microsoft Edge, Google Chrome, Mozilla Firefox",s_toolversion="1.4.0.0",s_dataversion="1.1.0.0",s_LANG="ENG",s_app_reqspec_notenough="Browser does not meet required operating environment",s_app_dst_ja="ja",s_app_dst_ipro_ja="ipro_ja",s_app_dst_ipro_eu_ja="ipro_eu_ja",
s_app_dst_ipro_eu_en="ipro_eu_en",s_app_dst_en_g="en_g",s_app_dst_en_p="en_p",s_app_dst_ch="ch",s_app_dst_fr="fr",s_app_dst_sp="sp",s_app_dst_ge="ge",s_app_dst_it="it",s_app_dst_ru="ru",s_app_dst_vet="vet",s_app_dst=s_app_dst_en_p,s_note_cap="NOTE:",s_note_txt1='<ul><li>The target PoE Ethernet switch are the following i-PRO recommended PoE Ethernet switch.<br><font color="blue">We will not be held responsible if you use a PoE Ethernet switch that is not recommended.</font><ul><li> WJ-PU201 / WJ-PU201F / WJ-PC200</li></ul></li><li><font color="blue">We are not responsible for the results calculated using this tool or the purchase of equipment based on the calculation results.</font></li><li><font color="blue">The calculation results of this tool are estimates of the maximum power supplied by the PoE Ethernet switch based on the rated power consumption of each camera, and may differ depending on the actual installation environment and operating conditions.</font></li><li>Assuming the use of CAT5E cable(0.125\u03a9/m)</li><li>[PoE budget settings] ->[AC adapter] Please check "\u2713" if you use an AC adapter.<br>Please select the power supply method(PoE/AC adapter) for WJ-PR201 / WJ-PR204 from the PoE switch model list.</li><li>[PoE budget settings] -> [cable length (1-100m/3-328ft)] Please enter 1-100(3-328) integer manually.</li><li>[PoE budget settings] -> [PSE power] "PSE power" = "Camera power" + "Cable loss"</li><br></ul>',
s_blank="--",s_comment='Enter <span class="tooltipitem_style" data-tooltip-content="#tooltip_recstream">camera stream numbers</span>, it automatically calculates the necessary number of items, and the number of recordable days.',s_comment2='* More than 16 cameras can be set by increasing the number of "Number of Cameras (Streams)".',s_comment3="* Enter [Recording condition], the necessary device configuration is displayed in [Result].",s_comment4="* Select [HDMI output: On], the number of cameras will be limited to 64 standard streams.",
s_comment5="* Select the target recorder or VMS.",s_comment6="* To set [Recording Days(Recording Group: 02)], set the target camera to [02] in [Recording Group] of [Extra function].",s_comment7="",s_reccond_title_poehub="PoE switch settings",s_reccond_title="PoE budget settings",s_precomp_title="Precomputation",s_precomp_desc="(Option) You can calculate the total power supply for the camera you plan to use in advance. (Not applicable for save settings to file)",s_precomp_button_openwindow="Precomputation",
s_precomp_savefile_title="Save settings / Load settings",s_precomp_savefile_filename="Filename prefix",s_precomp_button_save="Save",s_precomp_load_title="Load settings",s_precomp_totalpower="Total Budeget Power",s_precomp_precond_numberofunits="Budeget Power Classification",s_precomp_numberofunits="Number of units",s_reccond_filnename_head="PoeBudgetCalculator",s_reccomp_load_error="Invalid data was detected while reading the configuration file. Cancel loading.",s_reccond_group_schedule="Schedules",
s_reccond_group_recdetail="Advanced recording setup",s_reccond_group_poe="PoE budget settings",s_reccond_group_recadvance="Extra function",s_reccond_group_recaiprivacy="AI privacy guard recording settings",s_reccond_group_recorderconfig="Recorder configuration",s_reccond_group_estcondition="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Estimate condition",s_reccond_schedule_recweek="Days to record",s_reccond_schedule_week="",s_reccond_schedule_week_mon="Mon",s_reccond_schedule_week_tue="Tue",s_reccond_schedule_week_wed=
"Wed",s_reccond_schedule_week_thu="Thu",s_reccond_schedule_week_fri="Fri",s_reccond_schedule_week_sat="Sat",s_reccond_schedule_week_sun="Sun",s_reccond_schedule_timetable0="Off",s_reccond_schedule_timetable1="Time table1",s_reccond_schedule_timetable2="Time table2",s_reccond_schedule_rectime="Schedule to record",s_reccond_shcedule_rectime_separator1=":",s_reccond_shcedule_rectime_separator2="-",s_reccond_detail_no="Group",s_reccond_detail_num="Number of<br>Cameras<br>(Streams)",s_reccond_detail_model=
"Model",s_reccond_detail_comp="Compression",s_reccond_detail_reso="Image capture size",s_reccond_detail_fps="Rate",s_reccond_detail_qual="Quality",s_reccond_detail_audio="Audio",s_reccond_detail_schedule="Schedule",s_reccond_detail_bitrate="Bit rate per one camera",s_poecond_cfg="Cfg",s_poecond_no="No",s_poecond_model="Model Number of Camera",s_poecond_modeltype="Camera Type",s_poecond_powertype="Power Supply Type",s_poecond_powertype_2lines="Power Supply Type",s_poecond_modelpower="Camera Power",
s_poecond_externalpower="External power source",s_poecond_acadapter="AC adapter",s_poecond_poeswitch="PoE Hub",s_poecond_class="Class",s_poecond_cablelength="Cable length<br>(1-100m)",s_poecond_cablelength_feet="Cable length<br>(3-328ft)",s_poecond_psepower="PSE Power",s_poecond_sumpsepower="<b>PSE Power (total)</b>",s_poecond_sumpsepower2="PSE Power<br>(total)",s_poecond_sw_no="No",s_poecond_sw_compcfg="Configured",s_poecond_sw_model="PoE switch model",s_poecond_sw_customer_desc="Customer description",
s_poecond_sw_psepower="PSE Power<br>(Max)",s_poecond_sw_portnum="Number of ports",s_poecond_sw_powergroup="PSE Power group",s_poecond_sw_connectedportnum="Connected port<br>number",s_poecond_sw_connectedcamnum="Number of cameras",s_poecond_sw_othername="PoE switch (Other)",s_poecond_message_notsupported="No power supply",s_poecond_result_power="Required total power",s_poecond_result_power_recorder="Required recorder PoE power",s_poecond_result_power_switch="Required PoE switch PoE power",s_poecond_unit_title=
"",s_poecond_unit_m="m",s_poecond_unit_ft="ft",s_poecond_result_recorder_title="Target recorder",s_poecond_result_recorder_result="Result",s_poecond_result_poeswitch_title="Target PoE switch",s_poecond_result_modeldesc_nu101="WJ-NU101 ( up to ",s_poecond_result_modeldesc_nu201="WJ-NU201 ( up to ",s_poecond_result_modeldesc_nu300="WJ-NU300 ( up to ",s_poecond_result_modeldesc_nu301="WJ-NU301 ( up to ",s_poecond_result_modeldesc2="W with",s_poecond_result_modeldesc3=" ports total )",s_poecond_result_modeldesc_eu101=
"WJ-EU101 (",s_poecond_result_modeldesc_eu201="WJ-EU201 (",s_poecond_result_modeldesc_eu301="WJ-EU300 (",s_poecond_result_ok="OK",s_poecond_result_ok2_part1="OK (Please connect to an external power supply from the ",s_poecond_result_ok2_part2="th camera onwards.)",s_poecond_result_camnumover_part1="Camera number exceeds upper limit(",s_poecond_result_camnumover_part2=").",s_poecond_result_overpowerupperlimit="Power budjet exceeded, please add exteral power source.",s_poecond_disclaimer="<b>&lt;Disclaimer&gt;</b><br>We are not responsible for the results calculated using this tool or the purchase of equipment based on the calculation results.",
s_btn_result="Result Page",s_btn_goback="Back",s_btn_print="printing PDF",s_btn_print_desc="We will guide you through the PDF printing process.",s_tooltip_externalpower='<ul><li>Please select "\u2713" if you use an external power supply.</li></ul>',s_tooltip_cablelength="<ul><li>In case of CAT5E cable(0.125\u03a9/m)</li><li>Please enter 1-100(m) or 3-328(ft) integer manually.</li></ul>",s_tooltip_psepower='<ul><li>In case of CAT5E cable(0.125\u03a9/m)</li><li>"PSE(NVR side) power" = "Camera side power" + "Cable loss"</li></ul>',
s_print_help='<u>To output PDF on Edge</u><br>1. click "Print" from right-click menu or menu<img src="menuicon_edge.png" align="middle">.<br>2. select "Save as PDF"<br>3. check "Background graphics".<br>4. click "Save".<br><p><u>To output PDF on Chrome</u><br>1. click "Print..." from right-click menu or menu<img src="menuicon_chrome.png" align="middle">.<br>2. select "Save as PDF"<br>3. check "Background graphics".<br>4. click "Save".<br><p><u>To output PDF on Firefox</u><br>1. click "Print..." from right-click menu or menu<img src="menuicon_firefox.png" align="middle">.<br>2. select "Save to PDF"<br>3. check "Print backgrounds".<br>4. click "Save".',
s_close="Close",s_reccond_advance_no="Group",s_reccond_advance_num="Number of<br>Cameras<br>(Streams)",s_reccond_advance_model="Model",s_reccond_advance_smartcoding="Smart coding",s_smartcoding_off="Off",s_smartcoding_framerate_advanced="On",s_reccond_advance_connect="Connection",s_reccond_advance_encrypt="Data encryption",s_reccond_advance_bitrate="Video Bitrate(per client)",s_reccond_advance_bitrate_unit="kbps",s_reccond_advance_facematch="Face Matching",s_reccond_advance_chgbitrate="Free Entry",
s_reccond_advance_recgroup="Recording group",s_reccond_advance_develop_bitrate="Bit rate",s_reccond_advance_develop_bitrate_rec="Rec Bit rate(kbps)",s_reccond_advance_develop_bitrate_net="Net Bit rate(kbps)",s_reccond_advance_develop_bitrate_video="Video:",s_reccond_advance_develop_bitrate_audio="Audio:",s_reccond_advance_develop_bitrate_vmdinfo="VMD:",s_reccond_advance_develop_bitrate_total="Total:",s_reccond_advance_develop_bitrate_encrypt="Encrypt:",s_reccond_aiprivacy_no="Group",s_reccond_aiprivacy_num=
"Number of<br>Cameras<br>(Streams)",s_reccond_aiprivacy_model="Model",s_reccond_aiprivacy_recgroup="Recording group",s_reccond_aiprivacy_onoff="AI privacy guard rec.",s_reccond_estcondition_hdmi="HDMI output",s_reccond_estcondition_hdmi_yes="Yes",s_reccond_estcondition_hdmi_no="No",s_reccond_recconfig_hddmode="HDD mode",s_reccond_recconfig_hddmode_single="Single",s_reccond_recconfig_hddmode_raid1="Mirroring",s_reccond_recconfig_hddmode_raid5="RAID5",s_reccond_recconfig_hddmode_raid6="RAID6",s_reccond_estcondition_hddcapa=
"HDD capacity",s_reccond_estcondition_hddcapa_1000GB="1TB",s_reccond_estcondition_hddcapa_2000GB="2TB",s_reccond_estcondition_hddcapa_3000GB="3TB",s_reccond_estcondition_hddcapa_4000GB="4TB",s_reccond_estcondition_hddcapa_5000GB="5TB",s_reccond_estcondition_hddcapa_6000GB="6TB",s_reccond_estcondition_hddcapa_8000GB="8TB",s_reccond_estcondition_hddcapa_18000GB="18TB",s_reccond_estcondition_hddcapa_20000GB="20TB",s_reccond_recconfig_substream="Sub-stream recording",s_reccond_recconfig_substream_off=
"Off",s_reccond_recconfig_substream_on="On",s_reccond_recconfig_substream_64="64 kbps",s_reccond_recconfig_substream_128="128 kbps",s_reccond_recconfig_substream_256="256 kbps",s_reccond_recconfig_substream_384="384 kbps",s_reccond_recconfig_substream_512="512 kbps",s_reccond_recconfig_substream_768="768 kbps",s_reccond_estcondition_recnum="Number of units",s_reccond_estcondition_recnum_auto="Automatic",s_reccond_estcondition_recnum_one="1Unit",s_reccond_estcondition_recdays="Recording days",s_reccond_estcondition_recdays_group1=
"Recording days<br>(Recording group:01)",s_reccond_estcondition_recdays_group2="Recording days<br>(Recording group:02)",s_reccond_estcondition_recgrp_term000="Unlimited",s_reccond_estcondition_recgrp_term001="1",s_reccond_estcondition_recgrp_term002="2",s_reccond_estcondition_recgrp_term003="3",s_reccond_estcondition_recgrp_term004="4",s_reccond_estcondition_recgrp_term005="5",s_reccond_estcondition_recgrp_term006="6",s_reccond_estcondition_recgrp_term007="7",s_reccond_estcondition_recgrp_term008=
"8",s_reccond_estcondition_recgrp_term009="9",s_reccond_estcondition_recgrp_term010="10",s_reccond_estcondition_recgrp_term014="14",s_reccond_estcondition_recgrp_term030="30",s_reccond_estcondition_recgrp_term031="31",s_reccond_estcondition_recgrp_term045="45",s_reccond_estcondition_recgrp_term060="60",s_reccond_estcondition_recgrp_term062="62",s_reccond_estcondition_recgrp_term090="90",s_reccond_estcondition_recgrp_term092="92",s_reccond_estcondition_recgrp_term120="120",s_reccond_estcondition_recgrp_term123=
"123",s_reccond_estcondition_recgrp_term150="150",s_reccond_estcondition_recgrp_term153="153",s_reccond_estcondition_recgrp_term180="180",s_reccond_estcondition_recgrp_term184="184",s_reccond_estcondition_systemconfig="Method of calculation",s_reccond_estcondition_systemconfig_mainunit="1 recorder",s_reccond_estcondition_systemconfig_calc="Recording days",s_reccond_recconfig_highresomode="High quality mode<br>(Face Matching)",s_reccond_recconfig_highresomode_off="Off",s_reccond_recconfig_highresomode_on=
"On",s_recresult_title="Result",s_recresult_bitrate="Bandwidth",s_recresult_bitrate_unit="Mbps",s_recresult_datasize="Data size",s_recresult_datasize_vms="Data size(VMS)",s_recresult_datasize_unit="TB",s_recresult_model="Model",s_recresult_model_nx400="WJ-NX400K",s_recresult_model_nx400_01="WJ-NX400K",s_recresult_model_nx300="WJ-NX300K",s_recresult_model_nx300_01="",s_recresult_model_nx300_02="",s_recresult_model_nx300_03="",s_recresult_model_nx300_04="",s_recresult_model_nx300_05="",s_recresult_model_nx300_06=
"",s_recresult_model_nx300_07="",s_recresult_model_nx300_08="",s_recresult_model_nx200="WJ-NX200KP",s_recresult_model_nx200_01="2TB<br>( 2TB * 1)",s_recresult_model_nx200_02="3TB<br>( 3TB * 1)",s_recresult_model_nx200_03="4TB<br>( 2TB * 2)",s_recresult_model_nx200_04="6TB<br>( 3TB * 2)",s_recresult_model_nx200_05="8TB<br>( 4TB * 2)",s_recresult_model_nx200_06="12TB<br>( 6TB * 2)",s_recresult_model_nx200_07="16TB<br>( 8TB * 2)",s_recresult_model_nx200_08="WJ-NX200/2UX<br>(2TB X 1)",s_recresult_model_nx200_09=
"WJ-NX200/4UX<br>(2TB X 2)",s_recresult_model_nx200_10="WJ-NX200/6UX<br>(3TB X 2)",s_recresult_model_nx100="WJ-NX100",s_recresult_model_nx100_01="WJ-NX100/05 (500GB X 1)",s_recresult_model_nx100_02="WJ-NX100/1 (1TB X 1)",s_recresult_model_nx100_03="WJ-NX100/2 (1TB X 2)",s_recresult_model_nx100_04="WJ-NX100/2E<br>(2TB X 1)",s_recresult_model_nx100_05="WJ-NX100/2E+2TB<br>(2TB X 2)",s_recresult_model_nx100_06="WJ-NX100/1UX<br>(1TB X1)",s_recresult_model_nx100_07="WJ-NX100/2UX<br>(1TB X2)",s_recresult_model_eu100=
"DG-EU100",s_recresult_model_eu100_01="DG-EU100/1<br>(1TB x 1)",s_recresult_model_eu100_02="DG-EU100/2<br>(2TB x 1)",s_recresult_model_eu100_03="DG-EU100/4<br>(2TB x 2)",s_recresult_model_nu101="WJ-NU101",s_recresult_model_nu101_01="WJ-NU101/1<br>(1TB x 1)",s_recresult_model_nu101_02="WJ-NU101/2<br>(2TB x 1)",s_recresult_model_nu101_03="WJ-NU101KP",s_recresult_model_nu101_04="WJ-NU101KG",s_recresult_model_nu201="WJ-NU201",s_recresult_model_nu201_01="WJ-NU201/1<br>(1TB x 1)",s_recresult_model_nu201_02=
"WJ-NU201/2<br>(2TB x 1)",s_recresult_model_nu201_03="WJ-NU201/4<br>(4TB x 1)",s_recresult_model_nu201_04="WJ-NU201KP",s_recresult_model_nu201_05="WJ-NU201KG",s_recresult_model_nu300="WJ-NU300",s_recresult_model_nu300_01="WJ-NU300/2<br>(2TB x 1)",s_recresult_model_nu300_02="WJ-NU300/4<br>(4TB x 1)",s_recresult_model_nu300_03="WJ-NU300/8<br>(8TB x 1)",s_recresult_model_nu300_04="WJ-NU300KP",s_recresult_model_nu300_05="WJ-NU300KG",s_recresult_model_nu301="WJ-NU301",s_recresult_model_nu301_01="WJ-NU301/2<br>(1TB x 2)",
s_recresult_model_nu301_02="WJ-NU301/4<br>(2TB x 2)",s_recresult_model_nu301_03="WJ-NU301/8<br>(4TB x 2)",s_recresult_model_nu301_04="WJ-NU301/12<br>(6TB x 2)",s_recresult_model_nu301_05="WJ-NU301KP<br>(HDD x 1)",s_recresult_model_nu301_06="WJ-NU301KP<br>(HDD x 2)",s_recresult_model_nu301_07="WJ-NU301KG<br>(HDD x 1)",s_recresult_model_nu301_08="WJ-NU301KG<br>(HDD x 2)",s_recresult_model_vms="VMS",s_recresult_mainunit="MAIN",s_recresult_extunit="EXT",s_recresult_extunit_nx400="WJ-HXE400",s_recresult_extunit_nx300=
"WJ-HXE400",s_recresult_hdd="HDD",s_recresult_hdd_nx400="HDD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(MAIN / EXT)",s_recresult_hddinfo_nx400="HDD(MAIN / EXT)<br>Total / Group1 / Group2",s_recresult_hdd_nx300="HDD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(MAIN / EXT)",s_recresult_hddinfo_nx300="HDD(MAIN / EXT)<br>Total / Group1 / Group2",s_recresult_hddinfo_nx200="<br> Group1 /<br> Group2",s_recresult_hdd_total="Total",s_recresult_hdd_recgroup1="Group:01",s_recresult_hdd_recgroup2="Group:02",s_recresult_license="License",
s_recresult_camnum="Stream numbers",s_recresult_days_unit="days",s_recresult_days_unit2="days<br>",s_recresult_license_camera="Camera Kits",s_recresult_license_camera_32="WJ-NXE40(W)",s_recresult_license_camera_64="WJ-NXE41(W)",s_recresult_license_camera_nx200_one="WJ-NXE20(W)",s_recresult_license_camera_nx200_max="WJ-NXE21(W)",s_recresult_license_camera_nx300_one="WJ-NXE30(W)",s_recresult_license_camera_nx300_max="",s_recresult_license_secure="Secure Communication Kits",s_recresult_license_secure_01=
"WJ-NXS01(W)",s_recresult_license_secure_04="WJ-NXS04(W)",s_recresult_license_secure_16="WJ-NXS16(W)",s_recresult_license_secure_32="WJ-NXS32(W)",s_recresult_license_face="Business Intelligence Kit",s_recresult_license_face_02="WJ-NXF02(W)",s_recresult_license_raid="RAID Kits",s_recresult_license_raid_nx300="WJ-NXR30(W)",s_recresult_maxrecdays="Maximum recordable days ( Same HDD / Same Unit / Max Config )",s_recresult_maxrecdays_nx400="Maximum recordable days",s_recresult_maxrecdays_mainunit_nx400=
"Maximum recordable days<br>1 recorder",s_recresult_maxrecdays_calc_nx400="Maximum recordable days<br>( Same HDD / Same Unit / Max Config )",s_recresult_text_maxrecdays_mainunit_nx400="Maximum recordable days<br>1 recorder",s_recresult_text_maxrecdays_calc_nx400="Maximum recordable days<br>( Same HDD / Same Unit / Max Config )",s_recresult_maxrecdays_nx300="Maximum recordable days",s_recresult_maxrecdays_mainunit_nx300="Maximum recordable days<br>1 recorder",s_recresult_maxrecdays_calc_nx300="Maximum recordable days<br>( Same HDD / Same Unit / Max Config )",
s_recresult_text_maxrecdays_mainunit_nx300="Maximum recordable days<br>1 recorder",s_recresult_text_maxrecdays_calc_nx300="Maximum recordable days<br>( Same HDD / Same Unit / Max Config )",s_recresult_maxrecdays_nx200="Maximum recordable days",s_recresult_maxrecdays_mainunit_calc_nx200="1 recorder",s_recresult_maxrecdays_unit="",s_recresult_estimaterecdays="Estimated recording days",s_recresult_detail="Detail",s_showdetail_label="Display detailed information",s_recdetail_mainunit="MAIN",s_recdetail_extunit=
"EXT",s_recdetail_hdd="HDD",s_recdetail_license_camera_32="NXE40",s_recdetail_license_camera_64="NXE41",s_recdetail_license_secure_01="NXS01",s_recdetail_license_secure_04="NXS04",s_recdetail_license_secure_16="NXS16",s_recdetail_license_secure_32="NXS32",s_recdetail_camnum="Stream numbers",s_recdetail_securenum="Secure numbers",s_recdetail_bitrate="Bandwidth(Mbps)",s_recdetail_datasize="Data size(TB)",s_recdetail_maxrecdays="Maximum recordable days",s_recdetail_stream="Detail",s_recdetail_aiprivacy=
"Privacy",s_textout_label="Text output",s_textout_comment="When you press the button, the setting and calculation result are displayed in text in a separate window.",s_textout_format_html="HTML",s_textout_format_csv="CSV",s_textout_format_model="All Model",s_textin_label="Text input",s_textin_comment="Import data output in CSV format into the tool.",s_textin_dlg_comment="Please paste the contents of the CSV outputted text into the input column.",s_textin_dlg_ok="OK",s_textin_dlg_cancel="Cancel",s_textin_dlg_errmsg=
"Whether the data is text output in CSV format, the tool currently in use is not up to date.",s_textout_appinfo="## Application information",s_textout_date="Date",s_textout_appname="Software",s_textout_ver="Version",s_textout_fname="nxcalc_",s_textout_scheduleinfo="## Schedules",s_textout_schedule_weekinfo="#Days to record",s_textout_schedule_weekchecked="*",s_textout_schedule_rectimeinfo="#Schedule to record",s_textout_caminfo="## Advanced recording setup",s_textout_aiprivacy="## AI privacy guard recording settings",
s_textout_recconfiginfo="## Recorder configuration",s_textout_estconditioninfo_nx400="## Estimate condition(NX400)",s_textout_estconditioninfo_nx300="## Estimate condition(NX300)",s_textout_estconditioninfo_nx200="## Estimate condition(NX200)",s_textout_estconditioninfo_nx100="## Estimate condition(NX100)",s_textout_estconditioninfo_nu301="## Estimate condition(NU301)",s_textout_estconditioninfo_nu300="## Estimate condition(NU300)",s_textout_estconditioninfo_nu201="## Estimate condition(NU201)",s_textout_estconditioninfo_nu101=
"## Estimate condition(NU101)",s_textout_estconditioninfo_vms="## Estimate condition(VMS)",s_textout_resultinfo_data="## Calculation result(Data)",s_textout_resultinfo_num="## Calculation result(Number)",s_textout_resultinfo_nx400="## Calculation result(NX400)",s_textout_resultinfo_nx300="## Calculation result(NX300)",s_textout_resultinfo_nx200="## Calculation result(NX200)",s_textout_resultinfo_nx100="## Calculation result(NX100)",s_textout_resultinfo_nu301="## Calculation result(NU301)",s_textout_resultinfo_nu300=
"## Calculation result(NU300)",s_textout_resultinfo_nu201="## Calculation result(NU201)",s_textout_resultinfo_nu101="## Calculation result(NU101)",s_textout_resultinfo_vms="## Calculation result(VMS)",s_textout_resultinfo_config="## Calculation result(Detail )",s_textout_resultinfo_days="## Calculation result(Estimated recording days)",s_textout_result_camnum="Stream&nbsp;&nbsp;<br>numbers",s_textout_result_securenum="Secure&nbsp;&nbsp;<br>numbers",s_textout_hddinfo_nx300="HDD(MAIN, EXT)<br>Total / Group1 / Group2",
s_textout_hddinfo_nx400="HDD(MAIN, EXT)<br>Total / Group1 / Group2",s_recresult_message_invalidrectime="Invalid time exists in schedule setting. (Start time > End time)",s_recresult_message_norectime="Schedule that doesn't have time table is used.",s_recresult_message_nwdrnumover="The specified recording condition exceeds the upper limit (999 units) of the number of recorders that can be calculated.",s_recresult_message_camrecsizeover="The recording capacity per camera required for the specified number of recording days exceeds the maximum recording capacity of the recorder.",
s_recresult_message_camnumover_NX400="Total cameras exceed (HDMI output Yes,Max:64&nbsp;/&nbsp;HDMIoutput No,Max:128)<br>- Total number of cameras exceeds the maximum number of recordable cameras of the recorder.",s_recresult_message_camnumover_NX300="Total cameras exceed (Max:32)<br>- Total number of cameras exceeds the maximum number of recordable cameras of the recorder.",s_recresult_message_camnumover_NX200_ja="Total cameras exceed (Max:24)<br>- Total number of cameras exceeds the maximum number of recordable cameras of the recorder.",
s_recresult_message_camnumover_NX200_p="Total cameras exceed (Max:16)<br>- Total number of cameras exceeds the maximum number of recordable cameras of the recorder.",s_recresult_message_camnumover_NX200_other="Total cameras exceed (Max:32)<br>- Total number of cameras exceeds the maximum number of recordable cameras of the recorder.",s_recresult_message_camnumover_NX100="Total cameras exceed (Max:4)<br>- Total number of cameras exceeds the maximum number of recordable cameras of the recorder.",s_recresult_message_camnumover_NU201=
"Total cameras exceed (Max:8)<br>- Total number of cameras exceeds the maximum number of recordable cameras of the recorder.",s_recresult_message_camnumover_NU30x="Total cameras exceed (Max:16)<br>- Total number of cameras exceeds the maximum number of recordable cameras of the recorder.",s_recresult_message_bitrateover_NX400="Since shortage network bandwidth, recording may fail.<br>&nbsp;&nbsp;-Upper limit: 320Mbps(Total number of cameras: 64 or less)<br>&nbsp;&nbsp;-Upper limit: 384Mbps(Total number of cameras: 65 or more)",
s_recresult_message_bitrateover_NX300="Since shortage network bandwidth, recording may fail.<br>(Upper limit: 256Mbps)",s_recresult_message_bitrateover_NX200="Since shortage network bandwidth, recording may fail.<br>(Upper limit: 192Mbps)",s_recresult_message_bitrateover_NX100="Since shortage network bandwidth, recording may fail.<br>(Upper limit: 128Mbps)",s_recresult_message_chnumover="Total channel exceed<br>(The total number of video, audio, and substream recording target images exceeds the performance limit of the recorder.)",
s_recresult_message_totaldatasizeover="Total datasize exceed<br>(The recording capacity required for the specified number of recording days exceeds the maximum recording capacity of the recorder.)",s_recresult_message_facenumover="Total face matching camera exceed<br>(The maximum number of face verification cameras is 2 per recorder.)",s_recresult_message_hddcapaover="Total Data size exceed the upper limit.",s_recresult_message_notsupportmodel="Selected model contains something not supported by the recorder.",
s_recresult_message_notsupportmultirec="Not support multi recorders + Ext calculation<br>(It doesn't support multi recorders + Ext calculation for selected recorder model.)",s_recresult_message_notsupportext="Not support Extention<br>(Selected recorder model doesn't support Extention.)",s_recresult_message_notsupportfacematch="[Face Matching:On] is not support for selected model.",s_recresult_message_notsupporthdmi="HDMI output is not support for selected model.",s_recresult_message_notsupporthddcapa=
"Selected HDD capacity is not support for selected model.",s_recresult_message_notsupporthddmode="[HDD mode:RAID5 / RAID6 mode] is not support for selected recorder model.",s_recresult_message_notsupporthddmode_raid1="[HDD mode: Mirroring] is not support for selected recorder model.",s_recresult_message_notsupportrecordingday="Recoding days calculation is not support for selected recorder model.",s_recresult_message_notsupporthighresomode="[High quality mode(Face Matching):On] is not support for selected model.",
s_recresult_message_notsupportrecgroup02_nx400='Recording group:02 can\'t be used when "Automatic" is set to "Number of units".<br>Set "1Unit" to use Recording group:02.',s_recresult_message_notsupportrecgroup02_nx300='Recording group:02 can\'t be used when "1 recorder" is set to "Method of calculation ".<br>Set "Recoding days" to use Recording group:02.',s_recresult_message_notsupportrecgroup="[Recording group:02] is not support for selected model.",s_recresult_message_notsupportmirroring='HDD mode "Mirroring" can\'t be used when "02" is set to "Recording group".<br>Set "01" to use HDD mode "Mirroring".',
s_recresult_message_notsupportsmr10="SMR10 (360-degree network microphone) is not support for selected recorder model.",s_recresult_message_notsupportg726="Audio On(G.726) is not support for selected recorder model.",s_recresult_message_nomodel="Select the model such as a camera.",s_recresult_message_ng="Other error",s_tooltip_recstream="<ul><li>Enter the number of streams. However, if you want to record the multiple stream by 360-degree network camera,<br>Multi-sensor camera or Network Video Encoder,please enter the number of recorded stream/CH.</li><br>(Example 1) VGA Quad streams of 360-degree network camera(One)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Only one stream recording : Select [****-1] for Model and enter [1].<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4 stream to record all : Select [****-1], [****-2], [****-3], [****-4] for Model and enter [1] for each.<br><br>(Example 2) 2mode of 360-degree network camera(One)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fisheys stream recording : Select [****(FE+**)] for Model and enter [1].<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Specifications of the recorder, 4PTZ is not recorded)<br><br>(Example 3) Network Video Encoder(GXE500:One)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CH1 only recording : Select [GXE500] for Model and enter [1].<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CH1 - 4 to record all : Select [GXE500], [GXE500-2], [GXE500-3], [GXE500-4] for Model and enter [1] for each.<br><br>(Example 4) Multi-sensor camera (S853* / X857*)(One)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Record only 1 image (-1) : Select [S853* / X857*] for Model and enter [1].<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Record all of 4 images (-1/2/3/4) : Select [S853* / X857*] for Model and enter [4].<br></ul>",
s_tooltip_aiprivacy_onoff="<ul><li>When AI privacy guard recording is turned on, the number of streams and bit rate value for AI privacy guard recording are added.</li><br><li>AI privacy guard rec can be turned on only when the following conditions are met.<br>&nbsp;&nbsp;&nbsp;&nbsp;1. AI camera WV-X2**** / X1*** is selected in [Advanced recording setups].<br>&nbsp;&nbsp;&nbsp;&nbsp;2. [H.265(1)] or [H.264 (1)] is selected in [Compression] of [Advanced recording setup].<br>&nbsp;&nbsp;&nbsp;&nbsp;3. The [Rate] of [Advanced recording setup] is 15 ips or less.</li><br></ul>",
s_tooltip_model='<ul><li>Select the part number of the camera etc. to connect to the recorder.<br>(In the case of "WV-S1111", the omitted product number is displayed like "S1111".)</li></ul>',s_tooltip_comp="The numbers in parentheses are subject to the following.<ul><li>(1) : Record stream 1</li><li>(3/4) : Record either stream 3 or stream 4.</li></ul>",s_tooltip_audio='<ul><li>Applicable model of 360-degree network microphone is selected, "SMR10" is displayed.</li><li>Applicable model of AAC-LC is selected, "AAC-LC" is displayed.</li></ul>',
s_tooltip_hddmode="<ul><li>[Mirroring] can't be used with WJ-NU300, WJ-NU201, WJ-NU101.</li></ul>",s_tooltip_smartcoding="To use smart coding, you need to change camera settings from the browser.<ul><li>Transmission priority : Frame rate</li><li>Max bit rate (per client) : FREE ENTRY(Extra function - Video Bitrate)</li><li>Smart Coding(GOP control) : On(Advanced)</li><li>Smart Facial Coding : Off</li></ul>",s_tooltip_smartcoding_2="<ul><li>The smart coding is supported and H.265(1) camera can be set for the image compression method.</li><li>Pre-recording will not work if the smart coding is set.</li></ul>",
s_tooltip_connect="<ul><li>When encrypting communication between the camera and recorder and performing secure communication, select HTTPS.<br>(Can select only cameras compatible with encryption)</li></ul>",s_tooltip_encrypt="<ul><li>Encrypt the video data itself delivered from the camera and select On to further improve the security.<br>(Only cameras that support encryption can be selected. The object of encryption is only video data, the audio data is non-target)</li></ul>",s_tooltip_facematch=
"* This function can't be used with WJ-NX400.<br>[Face matching 2CH mode] This function is supported with the following camera models.<br><ul><li>WV-SP305 (Ver.2.13 or later)</li><li>WV-SP306 (Ver.2.13 or later)</li><li>WV-SFV631LT (Ver.1.87 or later)</li><li>WV-SPN310 series (Ver.1.87 or later)</li><li>WV-SPN311 series (Ver.1.87 or later)</li><li>WV-SPN531 series (Ver.1.87 or later)</li><li>WV-SPN611 (Ver.1.87 or later)</li><li>WV-SPN631 (Ver.1.87 or later)</li><li>WV-S1111 (Ver.2.00 or later)</li><li>WV-S1112 (Ver.2.00 or later)</li><li>WV-S1131 (Ver.2.00 or later)</li><li>WV-S1132 (Ver.2.00 or later)</li><li>WV-S2531LTN (Ver.2.00 or later)</li></ul>* A megapixel compatible Vari-Focal lens with 8-fold or more magnification is recommended.<br>* WV-SFV631LT and WV-S2531LTN can be used indoor for this purpose.<br><ul><li>WV-SC385 (Ver.2.13 or later)</li><li>WV-S6130 (Ver.2.00 or later)</li></ul>* Use as fixed camera.<br>",
s_tooltip_videobitrate="<ul><li>The network band actually used includes video, audio, additional information, etc.</li></ul>",s_tooltip_hdmi='<ul><li>If you connect an HDMI compatible monitor to the main unit and display live images or playback images, please select "Yes".<br>In that case, camera kits can not be used. (Maximum stream number 64)</li><li>When "No" is selected The camera kits can be used (Maximum number of streams: 128),<br>but on the HDMI monitor only some device setting is possible.</li></ul>',
s_tooltip_substream="<ul><li>The maximum number of streams when sub stream recording is used is 64.</li></ul>",s_tooltip_substream_2="The data capacity when sub stream recording [On] is used is the calculated value at the time of setting below.<ul><li>H.265 : 512kbps</li><li>H.264 : 768kbps</li></ul>",s_tooltip_estcondition_systemconfig="Choose method to calculate the number of recordable days.<br>According to the selected calculation method, results are displayed.<ul><li>Recording days : After calculating the required number of devices according to the user's input of the number of recording days<br>the following number of recordable days is displayed.<ul><li>Same HDD (Number of days with minimum configuration required for input condition)</li><li>Same Unit  (Number of days the maximum number of HDD are setting in the main unit (Calculated configuration)<br>and the expansion unit (Calculated configuration))</li><li>Max Config (Number of days the maximum number of expansion units and HDD are setting on the main unit)</li></ul></li><li>1 recorder : The estimated number of recordable days that can be recorded with 1 recorder is displayed.<br>(Group recording can't select when 1 recorder is selected)</li></ul>",
s_tooltip_recconfig_highresomode="<ul><li>When [On] is selected, the Video Bitrate of the camera with [Face Matching] set to [On] is calculated as High Resolution Mode (4096kbps).</li><li>This setting is invalid for cameras with [Face Matching] set to [Off].</li><li>This function can't be used with WJ - NX400.</li></ul>",s_tooltip_recnum='<ul><li>Automatic : Calculate the configuration example of the number of equipment required for the specified recording condition. (Maximum  999 units)</li><li>1Unit : Calculate whether the specified recording condition can be recorded with one recorder.</li><li>When [Automatic] is selected, the calculation will be performed in consideration of the cost ratio of the product.<br>As a result, adding more Main units may take precedence over adding more "Camera Kits" licenses.</li></ul>',
s_tooltip_datasize="<ul><li>The displayed capacity includes the HDD management area etc. in addition to the recorded data.</li></ul>",s_tooltip_bitrate_net="<ul><li>The displayed bandwidth is the data for recording. The bandwidth of live data is not included.</li><li>When constructing a network, it is necessary to consider system design and setting with sufficient margin in consideration of additional information for communication and instant bursting.</li></ul>",s_tooltip_maxrecdays="From the left, the estimated estimated number of recordable days shown below is displayed. (Maximum 9999 days)<br> (In the case of automatic calculation of the number of main unit, a configuration example divided into plural bodies may be displayed due to the balance of the configuration etc.) <ul><li>Same HDD : Number of days with minimum configuration required for input condition</li><li>Same Unit &nbsp; : Number of days the maximum number of HDD are setting in the main unit (Calculated configuration)<br>and the expansion unit (Calculated configuration)</li><li>Max Config : Number of days the maximum number of expansion units and HDD are setting on the main unit</li></ul>",
s_tooltip_maxrecdays_nx300="From the left, the estimated estimated number of recordable days shown below is displayed. (Maximum 9999 days)<br>(Only when recording period group is set to 1 type and the number of recording days is set to unlimited.) <ul><li>Same HDD : Number of days with minimum configuration required for input condition</li><li>Same Unit : Number of days the maximum number of HDD are setting in the main unit (Calculated configuration)<br>and the expansion unit (Calculated configuration)</li><li>Max Config : Number of days the maximum number of expansion units and HDD are setting on the main unit</li></ul>",
s_tooltip_maxrecdays_mainunit_nx300="The estimated maximum number of recording days that can be recorded with 1 recorder is displayed. (Maximum 9999 days)<br>(Only when recording period group is set to 1 type and the number of recording days is set to unlimited.)",s_tooltip_recgroup_nx400="When using the recording group, please select the following setting.<ul><li>NX400  Number of units : 1Unit</li><li>NX300  Method of calculation : Recording days</li></ul>",s_tooltip_hddcapa="The capacity per one HDD for expansion units.",
s_tooltip_hddcapa2="The capacity per one HDD for setting.",s_tooltip_cfg="Press the button to move to the camera setting screen.",s_tooltip_cfgstatus="Indicates the status of the setting.<br>\u30fb(blank): Not set<br>\u30fb\u2714: Already set<br>\u30fbX: Configuration error",s_tooltip_swmodelno="Specify the PoE Ethernet switch model to be used. <br>If the applicable model is not available, use the 'PoE switch (Other)' model instead. <br>For the 'PoE switch (Other)', you can specify the power supply type, maximum PSE power, and number of ports.",
s_tooltip_usertext="This is a field where you can freely edit the string.",s_tooltip_powertype="This is the power supply type of the PoE Ethernet switch. <br>For PoE switch (Other) model, PoE/PoE+/PoE++ can be specified.",s_tooltip_modelpower="This is the maximum PSE ower of the PoE Ethernet switch. <br>For PoE switch (Other) model, 1 to 999.9W can be specified.",s_tooltip_portnum="This is the number of ports on the PoE Ethernet switch. <br>For PoE switch (Other) model, 1 to 99 can be specified.",
s_tooltip_cameranum="This is the number of cameras registered on the camera settings screen.",s_tooltip_sw_hubpsepower="This is the PSE power for all devices connected to the PoE Ethernet switch. <br>If the PSE power exceeds the maximum power of the PoE Ethernet switch, it will be displayed in red.",s_tooltip_sw_model="You can select the camera model to use. <br>You can specify a range for bulk selection. <br>If the applicable model is not available, use the 'Other' model instead. <br>For the 'Other' model, you can specify the power supply type, power supply class, and camera power consumption.",
s_tooltip_sw_modeltext="This is a field where you can freely edit the string.",s_tooltip_sw_powertype="This is the power supply type for the camera. <br>For 'Other' model, PoE/PoE+/PoE++ can be specified.",s_tooltip_sw_powerclass="This is the power supply class of the camera. <br>For 'Other' model, you can specify from Class 0 to Class 6 according to the specified power supply type. <br>&emsp;PoE: Class0~Class3<br>&emsp;PoE+: Class4<br>&emsp;PoE++: Class5~Class8",s_tooltip_sw_modelpower="This is the power consumption of the camera. <br>For 'Other' model, 1 to 999.9W can be specified.",
s_tooltip_sw_acadapter="Check this box if you want to power the camera from the AC adapter. <br>You can specify a range for bulk selection. <br>If the power supply type cannot be supported by the PoE Ethernet switch, it will be automatically checked.",s_tooltip_sw_cablelength="<ul><li>CAT5E cable (0.125\u03a9/m) is assumed. </li><li>Please manually enter an integer in the range 1m-100m (3ft-328ft). </li><li>You can specify a range for bulk input. </li></ul>",s_tooltip_sw_connected_portnum="The optimal port number will be shown based on the calculation results.",
s_tooltip_sw_psepower="<ul><li>CAT5E cable (0.125\u03a9/m) is assumed. </li><li>Calculating (power supply side power) = (camera power consumption) + (cable loss). </li></ul>",INFOMSGTIPS="TIPS",s_msgwarn_cfgnotcompleted="Configuration not completed",s_msgwarn_cfgnotfilled="Some items remain unset.",s_msgconfirm_dispresultonnotconfig="There are some unconfigured PoE Ethernet switch. \nDo you want to continue displaying the results?",s_msgconfirm_prseriesdeletedascamera="You have deleted the PR series that was selected as the device. This will require you to change the configuration, so move to the PoE power supply settings screen.",
s_msgwarn_limitips_aaclc="Since recording (AAC-LC) is specified, the maximum rate will be limited.\n(U11300/U21300)",s_msgwarn_unsupported_hubportnum="Cannot be selected because the number of connected devices exceeds the number of ports of the selected PoE switch.",s_msgwarn_unsupported_over_psemaxpower="Cannot be selected because the connected camera's power supply capacity exceeds the PoE switch's maximum power supply capacity.",s_msgwarn_unsupported_notmatch_poetype="Cannot be selected because the power supply type of the connected camera does not match the power supply type of the PoE switch.",
s_msgwarn_notfilled="Cannot be selected because some items remain unset.",s_msgwarn_overconnectlimit="The connection limit of the PoE Ethernet switch has been exceeded. Please review the configuration.",s_msgwarn_forceacadapter="Use an AC adapter because the power supply type of the connected camera does not match the power supply type of the PoE switch.",s_msgwarn_allfill_outofrange="The specified range is invalid.",s_msgwarn_insufficientmargin="(Insufficient margin)";var pse_voltage=54,cable_loss=.125,feet_per_meter=3.28084,meter_per_feet=.3048,maxval_meter=100,minval_meter=1,maxval_meter_prlimited_camera=50,maxval_meter_prlimited_sw=5,maxval_feet=328,minval_feet=3,maxval_feet_prlimited_camera=164,maxval_feet_prlimited_sw=16,maxval_pdpower=999.9,minval_pdpower=1,maxval_portnum=99,minval_portnum=1,maxlength_sw_userfreetext=24,maxlength_cam_userfreetext=18,cur_sw_no=0,cur_sw_id=0,cur_sw_powertype="--",cur_sw_modelpower=0,cur_sw_portnum=0,error_portnum_on_alloc_port=
0,camsetting_acadapter_toggle=0,camsetting_range_start=1,camsetting_range_end=4,precomp_camsetting_range_start=1,precomp_camsetting_range_end=16,psepwrs=[],psepwrs_extflg=[],poe_camnum=0,poe_extpow_toggle=!1,ImeFlag=!1,poe_cablelen_unit_m=!0,array_poe_cablelen_m=[],array_poe_cablelen_ft=[],poe_precomp_cablelen_unit_m=!0,array_poe_precomp_cablelen_m=[],array_poe_precomp_cablelen_ft=[],default_precomp_unitnum_max=9999,default_precomp_unitnum_min=0,default_sw_maxnum=50,default_sw_dispnum=5,current_sw_dispnum=
default_sw_dispnum,default_cam_maxnum=50,default_cam_dispnum=16,current_cam_dispnum=default_cam_dispnum,hubname_prseries="",prseries_selected_hubnum=0,prseries_selected_itemnum=0,continual_blur_flag=!1,pre_swmodelid=Array(default_sw_maxnum);pre_swmodelid.fill(0);var debugoutput=!1;PoePowerType=function(a,b){this.id=a;this.powertype=b};var pool_portnum=[];PoePowerTypeList=[new PoePowerType(0,"--"),new PoePowerType(1,"PoE"),new PoePowerType(2,"PoE+"),new PoePowerType(3,"PoE++")];
PoePowerClass=function(a,b,c){this.id=a;this.powertype=b;this.powerclass=c};PoePowerClassList=[new PoePowerClass(0,0,"--"),new PoePowerClass(1,1,"Class0"),new PoePowerClass(2,1,"Class1"),new PoePowerClass(3,1,"Class2"),new PoePowerClass(4,1,"Class3"),new PoePowerClass(5,2,"Class4"),new PoePowerClass(6,3,"Class5"),new PoePowerClass(7,3,"Class6"),new PoePowerClass(8,3,"Class7"),new PoePowerClass(9,3,"Class8")];var SaveSwitchCameraSettingModelId=0;
HubPoeType=function(a,b,c,d,e){this.connected_port_num=a;this.pse_power=b;this.powertype=c;this.modelpower=d;this.portnum=e};
HubPoeList=[new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,
0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,
0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,
0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4),new HubPoeType(0,0,"PoE+",60,4)];SwitchPoeType=function(a,b,c,d,e,f,g,h,k,m,l){this.id=a;this.model=b;this.powertype=c;this.modelpower=d;this.hubportnum=e;this.needmargin=f;this.powergroup=g;this.isPRseries=h;this.isAcAdapter=k;this.portalloctype=m;this.pw510=l};SwitchPoePowerGroupItem=function(a,b,c,d){this.groupname=a;this.powertype=b;this.portnum=c;this.grouppower=d};
SwitchPoeList=[new SwitchPoeType(0,"--","",-1,-1,!1,-1,0,0,0,0),new SwitchPoeType(1,"WJ-PU201UX","PoE++",60,1,!1,[new SwitchPoePowerGroupItem("--","PoE++",1,60)],0,0,0,0),new SwitchPoeType(2,"WJ-PU104UX","PoE+",62,4,!0,[new SwitchPoePowerGroupItem("--","PoE+",4,62)],0,0,0,0),new SwitchPoeType(3,"WJ-PU108UX","PoE+",120,8,!0,[new SwitchPoePowerGroupItem("\u30dd\u30fc\u30c8(1-4)","PoE+",4,60),new SwitchPoePowerGroupItem("\u30dd\u30fc\u30c8(5-8)","PoE+",4,60)],0,0,1,0),new SwitchPoeType(4,"WJ-PU116AUX",
"PoE+",210,16,!0,[new SwitchPoePowerGroupItem("--","PoE+",16,210)],0,0,0,0),new SwitchPoeType(5,"WJ-PR201(AC adapter)","PoE+",30,1,!1,[new SwitchPoePowerGroupItem("--","PoE+",1,30)],1,1,0,0),new SwitchPoeType(6,"WJ-PR201(PoE)","PoE+",6.5,1,!1,[new SwitchPoePowerGroupItem("--","PoE+",1,6.5)],2,0,0,0),new SwitchPoeType(7,"WJ-PR204(AC adapter)","PoE+",40,4,!1,[new SwitchPoePowerGroupItem("--","PoE+",4,40)],3,1,0,0),new SwitchPoeType(8,"WJ-PR204(PoE)","PoE+",0,4,!1,[new SwitchPoePowerGroupItem("--","PoE+",
4,0)],4,0,0,0),new SwitchPoeType(9,"WV-PW510","PoE+",26,1,!1,[new SwitchPoePowerGroupItem("--","PoE+",1,26)],0,0,0,1),new SwitchPoeType(10,s_poecond_sw_othername,"PoE+",210,16,!1,[new SwitchPoePowerGroupItem("--","PoE+",1,60)],0,0,0,0)];
s_app_dst==s_app_dst_en_p&&(SwitchPoeList=[new SwitchPoeType(0,"--","",-1,-1,!1,-1,0,0,0,0),new SwitchPoeType(1,"WJ-PU201","PoE++",60,1,!1,[new SwitchPoePowerGroupItem("--","PoE++",1,60)],0,0,0,0),new SwitchPoeType(2,"WJ-PU201F","PoE++",60,1,!1,[new SwitchPoePowerGroupItem("--","PoE++",1,60)],0,0,0,0),new SwitchPoeType(3,"WJ-PR201(AC adapter)","PoE+",30,1,!1,[new SwitchPoePowerGroupItem("--","PoE+",1,30)],1,1,0,0),new SwitchPoeType(4,"WJ-PR201(PoE)","PoE+",6.5,1,!1,[new SwitchPoePowerGroupItem("--",
"PoE+",1,6.5)],2,0,0,0),new SwitchPoeType(5,"WJ-PR204(AC adapter)","PoE+",40,4,!1,[new SwitchPoePowerGroupItem("--","PoE+",4,40)],3,1,0,0),new SwitchPoeType(6,"WJ-PR204(PoE)","PoE+",0,4,!1,[new SwitchPoePowerGroupItem("--","PoE+",4,0)],4,0,0,0),new SwitchPoeType(7,s_poecond_sw_othername,"PoE+",210,16,!1,[new SwitchPoePowerGroupItem("--","PoE+",1,60)],0,0,0,0)]);var SwitchCustomerDescList="               ".split(" ");
PortAllocInfo=function(a,b,c,d){this.no=a;this.classNum=b;this.power=c;this.portnum=d};PowerPoeType=function(a,b,c){this.classId=a;this.pse_power=b;this.pd_power=c};var PowerPoeTable=[new PowerPoeType(0,15.4,12.95),new PowerPoeType(1,4,3.84),new PowerPoeType(2,7,6.49),new PowerPoeType(3,15.4,12.95),new PowerPoeType(4,30,25.5),new PowerPoeType(5,45,40),new PowerPoeType(6,60,51),new PowerPoeType(7,75,62),new PowerPoeType(8,90,73)];
RecPoeType=function(a,b,c,d,e){this.id=a;this.model_desc=b;this.portnum=c;this.maxconnectnum=d;this.maxpower=e};
RecPoeList=s_app_dst==s_app_dst_ja?[new RecPoeType(0,s_poecond_result_modeldesc_nu101,4,4,50),new RecPoeType(1,s_poecond_result_modeldesc_nu201,8,8,110),new RecPoeType(2,s_poecond_result_modeldesc_nu300,8,16,110),new RecPoeType(3,s_poecond_result_modeldesc_nu301,16,16,233)]:s_app_dst==s_app_dst_en_p?[new RecPoeType(0,s_poecond_result_modeldesc_nu101,4,4,50),new RecPoeType(1,s_poecond_result_modeldesc_nu201,8,8,110),new RecPoeType(2,s_poecond_result_modeldesc_nu300,8,16,110),new RecPoeType(3,s_poecond_result_modeldesc_nu301,
16,16,233)]:[new RecPoeType(0,s_poecond_result_modeldesc_eu101,4,16,50),new RecPoeType(1,s_poecond_result_modeldesc_eu201,8,16,110),new RecPoeType(2,s_poecond_result_modeldesc_eu301,16,16,233)];ScheduleRecTimeTableType=function(a,b,c){this.id=a;this.name=b;this.defchecked=c};
var ScheduleRecTimeTableId={t1:1,t2:2,t0:0},ScheduleRecTimeTableList=[new ScheduleRecTimeTableType(ScheduleRecTimeTableId.t1,s_reccond_schedule_timetable1,1),new ScheduleRecTimeTableType(ScheduleRecTimeTableId.t2,s_reccond_schedule_timetable2,0),new ScheduleRecTimeTableType(ScheduleRecTimeTableId.t0,s_reccond_schedule_timetable0,0)];ScheduleRecWeekType=function(a,b){this.id=a;this.name=b};
var ScheduleRecWeekId={mon:0,tue:1,wed:2,thu:3,fri:4,sat:5,sun:6},ScheduleRecWeekList=[new ScheduleRecWeekType(ScheduleRecWeekId.mon,s_reccond_schedule_week_mon),new ScheduleRecWeekType(ScheduleRecWeekId.tue,s_reccond_schedule_week_tue),new ScheduleRecWeekType(ScheduleRecWeekId.wed,s_reccond_schedule_week_wed),new ScheduleRecWeekType(ScheduleRecWeekId.thu,s_reccond_schedule_week_thu),new ScheduleRecWeekType(ScheduleRecWeekId.fri,s_reccond_schedule_week_fri),new ScheduleRecWeekType(ScheduleRecWeekId.sat,
s_reccond_schedule_week_sat),new ScheduleRecWeekType(ScheduleRecWeekId.sun,s_reccond_schedule_week_sun)],ScheduleMaxNum=16;s_model_name==s_recresult_model_nx100&&(ScheduleMaxNum=16);var TimeTableItemMaxNum=6,TimeTableRowItemMaxNum=3,SelectScheduleWeekInfo=[],SelectScheduleTimeTableInfo=[];
SelectCameraInfoType=function(a,b,c,d,e,f,g,h,k,m,l,n,p,u,r,q,w,v){this.num=a;this.modelId=b;this.typeId=c;this.compId=d;this.compTblId=e;this.resoId=f;this.fpsId=g;this.qualId=h;this.audioId=k;this.vmdinfoId=m;this.substreamId=l;this.scheduleId=n;this.smartcodingId=p;this.connectId=u;this.encryptId=r;this.facematchId=q;this.recgroupId=w;this.chgbitrate=v;this.copyForAIPrivacy=function(t){this.modelId=t.modelId;this.typeId=t.typeId;this.compId=t.compId;this.compTblId=t.compTblId;this.resoId=t.resoId;
this.fpsId=t.fpsId;this.qualId=t.qualId;this.audioId=t.audioId;this.vmdinfoId=t.vmdinfoId;this.substreamId=t.substreamId;this.scheduleId=t.scheduleId;this.smartcodingId=t.smartcodingId;this.connectId=t.connectId;this.encryptId=t.encryptId;this.facematchId=t.facematchId;this.chgbitrate=t.chgbitrate;this.bitrate=t.bitrate}};var CamSettingMaxNum=99,SelectCameraInfo=[],SelectCameraInfoAIPrivacy=[],set_normal=0,set_initial=1;HdmiOutputType=function(a,b){this.id=a;this.name=b};
var HdmiOutputId={Yes:0,No:1},HdmiOutputList=[new HdmiOutputType(HdmiOutputId.Yes,s_reccond_estcondition_hdmi_yes),new HdmiOutputType(HdmiOutputId.No,s_reccond_estcondition_hdmi_no)];HddConfigModeType=function(a,b,c,d){this.id=a;this.name=b;this.minhdd=c;this.parityhdd=d};
var HddConfigModeId={Single:0,Raid1:1,Raid5:2,Raid6:3},HddConfigModeList=[new HddConfigModeType(HddConfigModeId.Single,s_reccond_recconfig_hddmode_single,1,0),new HddConfigModeType(HddConfigModeId.Raid1,s_reccond_recconfig_hddmode_raid1,2,1)];
s_recresult_model_nx100==s_model_name&&(HddConfigModeId={Single:0,Raid1:1},HddConfigModeList=[new HddConfigModeType(HddConfigModeId.Single,s_reccond_recconfig_hddmode_single,1,0),new HddConfigModeType(HddConfigModeId.Raid1,s_reccond_recconfig_hddmode_raid1,2,1)]);
s_recresult_model_nx200==s_model_name?(HddConfigModeId={Single:0,Raid1:1},HddConfigModeList=[new HddConfigModeType(HddConfigModeId.Single,s_reccond_recconfig_hddmode_single,1,0),new HddConfigModeType(HddConfigModeId.Raid1,s_reccond_recconfig_hddmode_raid1,2,1)]):s_recresult_model_nx300==s_model_name&&(HddConfigModeId={Single:0,Raid1:1,Raid5:2,Raid6:3},HddConfigModeList=[new HddConfigModeType(HddConfigModeId.Single,s_reccond_recconfig_hddmode_single,1,0),new HddConfigModeType(HddConfigModeId.Raid1,
s_reccond_recconfig_hddmode_raid1,2,1),new HddConfigModeType(HddConfigModeId.Raid5,s_reccond_recconfig_hddmode_raid5,3,1),new HddConfigModeType(HddConfigModeId.Raid6,s_reccond_recconfig_hddmode_raid6,4,2)]);HddCapaType=function(a,b,c,d,e,f){this.id=a;this.name=b;this.capa=c;this.jpn=d;this.eng=e;this.value=f};
var HddCapaId={c20000GB:0,c18000GB:1,c8000GB:2,c6000GB:3,c5000GB:4,c4000GB:5,c3000GB:6,c2000GB:7,c1000GB:8,c12000GB:9,c6000_2GB:10,c4000_2GB:11},HddCapaList=[new HddCapaType(HddCapaId.c20000GB,s_reccond_estcondition_hddcapa_20000GB,2E4,0,1,13.73),new HddCapaType(HddCapaId.c18000GB,s_reccond_estcondition_hddcapa_18000GB,18E3,0,1,12.39),new HddCapaType(HddCapaId.c8000GB,s_reccond_estcondition_hddcapa_8000GB,8E3,0,1,6),new HddCapaType(HddCapaId.c6000GB,s_reccond_estcondition_hddcapa_6000GB,6E3,0,1,4.5),
new HddCapaType(HddCapaId.c5000GB,s_reccond_estcondition_hddcapa_5000GB,5E3,0,0,3.75),new HddCapaType(HddCapaId.c4000GB,s_reccond_estcondition_hddcapa_4000GB,4E3,1,1,3),new HddCapaType(HddCapaId.c3000GB,s_reccond_estcondition_hddcapa_3000GB,3E3,1,1,2.34),new HddCapaType(HddCapaId.c2000GB,s_reccond_estcondition_hddcapa_2000GB,2E3,1,1,1.67),new HddCapaType(HddCapaId.c1000GB,s_reccond_estcondition_hddcapa_1000GB,1E3,1,1,1)],bitrate_rec_video_4M=4096;
SubStreamType=function(a,b,c){this.id=a;this.name=b;this.bitrate=c};
var SubStreamId={Off:0,On:1,b64:2,b128:3,b256:4,b384:5,b512:6,b768:7},SubStreamList=[new SubStreamType(SubStreamId.Off,s_reccond_recconfig_substream_off,0),new SubStreamType(SubStreamId.On,s_reccond_recconfig_substream_on,768)],SubStreamList2=[new SubStreamType(SubStreamId.Off,s_reccond_recconfig_substream_off,0),new SubStreamType(SubStreamId.On,s_reccond_recconfig_substream_on,768),new SubStreamType(SubStreamId.b64,s_reccond_recconfig_substream_64,64),new SubStreamType(SubStreamId.b128,s_reccond_recconfig_substream_128,
128),new SubStreamType(SubStreamId.b256,s_reccond_recconfig_substream_256,256),new SubStreamType(SubStreamId.b384,s_reccond_recconfig_substream_384,384),new SubStreamType(SubStreamId.b512,s_reccond_recconfig_substream_512,512),new SubStreamType(SubStreamId.b768,s_reccond_recconfig_substream_768,768)],s_aiprivacy_off="Off",s_aiprivacy_on="On";SystemConfigType=function(a,b){this.id=a;this.name=b};
var SystemConfigId={Calc:0,MainUnit:1},SystemConfigList=[new SystemConfigType(SystemConfigId.Calc,s_reccond_estcondition_systemconfig_calc),new SystemConfigType(SystemConfigId.MainUnit,s_reccond_estcondition_systemconfig_mainunit)];HighResoModeType=function(a,b){this.id=a;this.name=b};var HighResoModeId={Off:0,On:1},HighResoModeList=[new HighResoModeType(HighResoModeId.Off,s_reccond_recconfig_highresomode_off),new HighResoModeType(HighResoModeId.On,s_reccond_recconfig_highresomode_on)];
RecNumType=function(a,b,c){this.id=a;this.name=b;this.num=c};var RecNumId={Auto:0,One:1},RecNumList=[new SubStreamType(RecNumId.Auto,s_reccond_estcondition_recnum_auto,0),new SubStreamType(RecNumId.One,s_reccond_estcondition_recnum_one,1)],DefaultRecDays=30,w_RecDays1=-1,w_RecDays2=-1,w_RecDays1_NX200=0,w_RecDays2_NX200=0,recdays_1_nx300=-1,RecGroupMaxNum=2;RecGroupType=function(a,b,c){this.id=a;this.name=b;this.days=c};
var RecGroupId={d000:0,d001:1,d002:2,d003:3,d004:4,d005:5,d006:6,d007:7,d008:8,d009:9,d010:10,d014:11,d030:12,d031:13,d045:14,d060:15,d062:16,d090:17,d092:18,d120:19,d123:20,d150:21,d153:22,d180:23,d184:24},RecGroupList=[new RecGroupType(RecGroupId.d000,s_reccond_estcondition_recgrp_term000,0),new RecGroupType(RecGroupId.d001,s_reccond_estcondition_recgrp_term001,1),new RecGroupType(RecGroupId.d002,s_reccond_estcondition_recgrp_term002,2),new RecGroupType(RecGroupId.d003,s_reccond_estcondition_recgrp_term003,
3),new RecGroupType(RecGroupId.d004,s_reccond_estcondition_recgrp_term004,4),new RecGroupType(RecGroupId.d005,s_reccond_estcondition_recgrp_term005,5),new RecGroupType(RecGroupId.d006,s_reccond_estcondition_recgrp_term006,6),new RecGroupType(RecGroupId.d007,s_reccond_estcondition_recgrp_term007,7),new RecGroupType(RecGroupId.d008,s_reccond_estcondition_recgrp_term008,8),new RecGroupType(RecGroupId.d009,s_reccond_estcondition_recgrp_term009,9),new RecGroupType(RecGroupId.d010,s_reccond_estcondition_recgrp_term010,
10),new RecGroupType(RecGroupId.d014,s_reccond_estcondition_recgrp_term014,14),new RecGroupType(RecGroupId.d030,s_reccond_estcondition_recgrp_term030,30),new RecGroupType(RecGroupId.d031,s_reccond_estcondition_recgrp_term031,31),new RecGroupType(RecGroupId.d045,s_reccond_estcondition_recgrp_term045,45),new RecGroupType(RecGroupId.d060,s_reccond_estcondition_recgrp_term060,60),new RecGroupType(RecGroupId.d062,s_reccond_estcondition_recgrp_term062,62),new RecGroupType(RecGroupId.d090,s_reccond_estcondition_recgrp_term090,
90),new RecGroupType(RecGroupId.d092,s_reccond_estcondition_recgrp_term092,92),new RecGroupType(RecGroupId.d120,s_reccond_estcondition_recgrp_term120,120),new RecGroupType(RecGroupId.d123,s_reccond_estcondition_recgrp_term123,123),new RecGroupType(RecGroupId.d150,s_reccond_estcondition_recgrp_term150,150),new RecGroupType(RecGroupId.d153,s_reccond_estcondition_recgrp_term153,153),new RecGroupType(RecGroupId.d180,s_reccond_estcondition_recgrp_term180,180),new RecGroupType(RecGroupId.d184,s_reccond_estcondition_recgrp_term184,
184)],NoRecGroup=0,RecGroup1=1,RecGroup2=2,RecGroup12=3,ProcTextIn=0,IsChangedCurrentFps=0;SetRecGroup=function(a,b){this.id=a;this.value=b};var TextOutFormatId={Html:0,Csv:1},TextOutStyle={reccond:"reccond",result:"result",left:"left",center:"center",right:"right"};saveHubInfo=function(a,b,c,d,e,f,g){this.toolversion=a;this.dataversion=b;this.outputdate=c;this.language=d;this.dispswnum=e;this.cablelengthunit=f;this.data=g};var resultPoEHubInfo=[];
PoeHubInfo=function(a,b,c,d,e,f,g,h,k,m,l,n,p){this.no=a;this.hubno=b;this.hubname=c;this.text=d;this.powertype=e;this.maxpower=f;this.maxportnum=g;this.camnum=h;this.prref=k;this.caminfolist=m;this.overpower=l;this.cfgbtn=n;this.configured=p};PoeCamInfo=function(a,b,c,d,e,f,g,h,k,m,l,n){this.no=a;this.camno=b;this.camname=c;this.camtype=d;this.powertype=e;this.powerclass=f;this.power=g;this.acadapter=h;this.disabledacadapter=k;this.cablelength=m;this.psepower=l;this.portnum=n};
var flag_overpower=!1,UISchObjectId={week:0,timetable:1},UISchTimeObjectId={shour:0,sminute:1,ehour:2,eminute:3},UICamObjectId={detail_num:0,detail_model:1,detail_comp:2,detail_reso:3,detail_fps:4,detail_qual:5,detail_audio:6,detail_schedule:7,detail_bitrate:8,advance_num:9,advance_model:10,advance_smartcoding:11,advance_connect:12,advance_encrypt:13,advance_bitrate:14,advance_facematch:15,advance_recgroup:16,advance_chgbitrate:17,aiprivacy_num:18,aiprivacy_model:19,aiprivacy_recgroup:20,aiprivacy_onoff:21,
poe_num:22,poe_model:23,poe_modeltype:24,poe_powertype:25,poe_powertypesel:26,poe_powerclass:27,poe_powerclasssel:28,poe_modelpower:29,poe_externalpower:30,poe_cablelength:31,poe_psepower:32,poesw_model:33,poesw_customerdesc:34,poesw_powertype:35,poesw_powertypesel:36,poesw_psepower:37,poesw_portnum:38,poesw_swlist:39,poesw_cfgbtn:40,poe_numberofunits:41},UIRecObjectId={hddmode:0,highresomode:1,substream:2},UIOtherObjectId={recnum:0,systemconfig:1,hdmi:2,hddcapa:3,hddcapa_nu201:4,hddcapa_nu300:5,
hddcapa_nu301:6,recgroup1:7,recdays1:8,recgroup2:9,recdays2:10},UISchObjectTable=Array(ScheduleMaxNum),UICamObjectTable=Array(CamSettingMaxNum+1),UIPreCompCamObjectTable=Array(CamSettingMaxNum+1),UISwObjectTable=Array(CamSettingMaxNum+1),UIRecObjectTable=Array(Object.keys(UIRecObjectId).length),UIOtherObjectTable_NX400=Array(Object.keys(UIOtherObjectId).length),UIOtherObjectTable_NX300=Array(Object.keys(UIOtherObjectId).length),UIOtherObjectTable_NX200=Array(Object.keys(UIOtherObjectId).length),UIOtherObjectTable_NX100=
Array(Object.keys(UIOtherObjectId).length),UIOtherObjectTable_VMS=Array(Object.keys(UIOtherObjectId).length),UIRecGroupTable=Array(CamSettingMaxNum+1),UIRecGroupTableAIPrivacy=Array(CamSettingMaxNum+1),DetailInfoHeaderInterval=5,AIPrivacyFpsLimit=15,alert_force_acadapter=0,convertmodelno_fromv11=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,321,320,319,309,308,307,306,305,304,303,302,301,299,297,296,
295,294,293,292,291,290,289,287,285,284,282,281,280,279,278,276,275,274,273,272,271,270,269,268,267,266,265,263,262,261,260,259,258,256,255,253,252,251,250,248,246,245,244,243,242,241,239,237,236,235,234,233,232,231,230,229,228,227,226,225,224,223,222,221,220,219,218,217,216,215,214,213,212,211,210,209,208,207,206,205,204,203,202,201,200,199,198,197,196,195,194,193,192,191,190,189,188,187,186,185,183,181,180,179,178,177,176,175,174,173,172,171,170,169,168,167,166,165,164,163,162,161,159,158,157,156,
155,154,152,151,150,149,148,147,146,145,142,141,140,139,138,137,134,133,132,131,128,127,126,123,122,121,120,118,117,116,115,114,113,110,109,108,107,105,104,103,102,101,100,99,97,96,95,94,93,92,88,87,86,85,84,83,82,81,80,78,77,76,74,73,72,71,70,66,65,63,62,60,58,56,55,52,51,322];
s_app_dst==s_app_dst_en_p&&(convertmodelno_fromv11=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,453,454,451,452,450,449,432,431,430,429,428,427,426,425,424,423,422,421,420,419,418,417,416,415,414,413,412,411,410,409,408,407,406,405,404,403,402,401,400,399,398,397,396,395,394,390,391,388,389,387,379,380,373,374,308,293,294,273,274,299,298,296,295,291,290,288,287,284,283,282,281,278,277,276,275,272,271,
269,270,268,267,266,265,264,263,262,261,260,259,254,257,258,256,255,249,252,253,251,250,248,247,245,244,242,243,240,238,239,241,237,236,233,232,231,230,229,228,227,226,225,224,223,222,221,220,219,218,217,216,215,214,213,212,211,210,209,208,207,203,202,204,206,205,199,201,200,198,197,194,196,195,191,193,192,190,189,188,187,186,185,184,183,182,181,180,179,178,177,176,175,174,173,172,171,170,169,168,167,166,165,164,163,162,161,160,159,158,157,156,155,154,153,152,151,150,149,148,147,146,145,144,143,141,
142,140,139,137,138,136,135,134,133,131,132,130,129,127,128,126,125,123,124,122,121,119,120,118,117,114,113,112,111,110,109,108,105,104,103,102,101,100,99,94,93,92,91,90,89,88,87,86,85,84,83,81,82,80,79,77,78,76,75,74,73,72,69,67,66,65,64,63,62,370,371,369,368,367,366,365,364,363,362,361,360,358,359,356,357,354,355,352,353,348,347,346,345,342,341,340,339,334,333,332,331,325,329,328,327,326,322,321,319,318,316,315,313,312,310,311,309,307,306,305,304,303,302,301,372,59,58,56,55,54,53,52,51,57,455]);
var convertmodelno_fromv12=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,321,320,319,318,317,316,315,314,313,312,311,310,309,308,307,306,305,304,303,302,301,300,299,298,297,296,295,294,293,292,291,290,289,288,287,286,285,284,283,282,281,280,279,278,277,276,275,274,273,272,271,270,269,268,267,266,265,263,264,262,261,260,259,258,256,257,255,253,254,252,251,250,248,249,246,247,245,244,243,242,241,239,240,
237,238,236,235,234,233,232,231,230,229,228,227,226,225,224,223,222,221,220,219,218,217,216,215,214,213,212,211,210,209,208,207,206,205,204,203,202,201,200,199,198,197,196,195,194,193,192,191,190,189,188,187,186,185,184,183,182,181,180,179,178,177,176,175,174,173,172,171,170,169,168,167,166,165,164,163,162,161,160,159,158,157,156,155,154,153,152,151,150,149,148,147,146,145,144,143,142,141,140,139,138,137,136,135,134,133,132,131,130,128,127,126,125,129,124,123,122,121,120,119,118,117,116,115,114,113,
112,111,110,109,108,107,106,105,104,103,102,101,100,99,98,97,96,95,94,93,92,91,90,89,88,87,86,85,84,83,82,81,80,79,78,77,76,75,74,73,72,71,70,69,68,67,66,65,64,63,62,61,60,59,58,57,56,55,54,53,52,51,322];
s_app_dst==s_app_dst_en_p&&(convertmodelno_fromv12=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,453,454,451,452,450,449,448,447,446,445,444,443,442,441,440,439,438,437,436,435,434,433,432,431,430,429,428,427,426,425,424,423,422,421,420,419,418,417,416,415,414,413,412,411,410,409,408,407,406,405,404,403,402,401,400,399,398,397,396,395,394,393,392,390,391,388,389,387,386,385,384,383,382,381,379,380,378,
377,376,375,373,374,308,293,294,273,274,300,299,298,297,296,295,292,291,290,289,288,287,286,285,284,283,282,281,280,279,278,277,276,275,272,271,269,270,268,267,266,265,264,263,262,261,260,259,254,257,258,256,255,249,252,253,251,250,248,247,246,245,244,242,243,240,238,239,241,237,236,235,234,233,232,231,230,229,228,227,226,225,224,223,222,221,220,219,218,217,216,215,214,213,212,211,210,209,208,207,203,202,204,206,205,199,201,200,198,197,194,196,195,191,193,192,190,189,188,187,186,185,184,183,182,181,
180,179,178,177,176,175,174,173,172,171,170,169,168,167,166,165,164,163,162,161,160,159,158,157,156,155,154,153,152,151,150,149,148,147,146,145,144,143,141,142,140,139,137,138,136,135,134,133,131,132,130,129,127,128,126,125,123,124,122,121,119,120,118,117,116,115,114,113,112,111,110,109,108,107,106,105,104,103,102,101,100,99,98,97,96,95,94,93,92,91,90,89,88,87,86,85,84,83,81,82,80,79,77,78,76,75,74,73,72,71,70,69,68,67,66,65,64,63,62,370,371,369,368,367,366,365,364,363,362,361,360,358,359,356,357,
354,355,352,353,348,347,346,345,342,341,340,339,334,333,332,331,325,329,328,327,326,322,321,319,318,316,315,313,312,310,311,309,307,306,305,304,303,302,301,372,61,60,59,58,56,55,54,53,52,51,57,455]);
var convertmodelno_fromv13=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,321,320,319,318,317,316,315,314,313,312,311,310,309,308,307,306,305,304,303,302,301,300,299,298,297,296,295,294,293,292,291,290,289,288,287,286,285,284,283,282,281,280,279,278,277,276,275,274,273,272,271,270,269,268,267,266,265,263,264,262,261,260,259,258,256,257,255,253,254,252,251,250,248,249,246,247,245,244,243,242,241,239,240,
237,238,236,235,234,233,232,231,230,229,228,227,226,225,224,223,222,221,220,219,218,217,216,215,214,213,212,211,210,209,208,207,206,205,204,203,202,201,200,199,198,197,196,195,194,193,192,191,190,189,188,187,186,185,184,183,182,181,180,179,178,177,176,175,174,173,172,171,170,169,168,167,166,165,164,163,162,161,160,159,158,157,156,155,154,153,152,151,150,149,148,147,146,145,144,143,142,141,140,139,138,137,136,135,134,133,132,131,130,128,127,126,125,129,124,123,122,121,120,119,118,117,116,115,114,113,
112,111,110,109,108,107,106,105,104,103,102,101,100,99,98,97,96,95,94,93,92,91,90,89,88,87,86,85,84,83,82,81,80,79,78,77,76,75,74,73,72,71,70,69,68,67,66,65,64,63,62,61,60,59,58,57,56,55,54,53,52,51,322];
s_app_dst==s_app_dst_en_p&&(convertmodelno_fromv13=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,453,454,451,452,450,449,448,447,446,445,444,443,442,441,440,439,438,437,436,435,434,433,432,431,430,429,428,427,426,425,424,423,422,421,420,419,418,417,416,415,414,413,412,411,410,409,408,407,406,405,404,403,402,401,400,399,398,397,396,395,394,393,392,390,391,388,389,387,386,385,384,383,382,381,379,380,378,
377,376,375,373,374,308,293,294,273,274,300,299,298,297,296,295,292,291,290,289,288,287,286,285,284,283,282,281,280,279,278,277,276,275,272,271,269,270,268,267,266,265,264,263,262,261,260,259,254,257,258,256,255,249,252,253,251,250,248,247,246,245,244,242,243,240,238,239,241,237,236,235,234,233,232,231,230,229,228,227,226,225,224,223,222,221,220,219,218,217,216,215,214,213,212,211,210,209,208,207,203,202,204,206,205,199,201,200,198,197,194,196,195,191,193,192,190,189,188,187,186,185,184,183,182,181,
180,179,178,177,176,175,174,173,172,171,170,169,168,167,166,165,164,163,162,161,160,159,158,157,156,155,154,153,152,151,150,149,148,147,146,145,144,143,141,142,140,139,137,138,136,135,134,133,131,132,130,129,127,128,126,125,123,124,122,121,119,120,118,117,116,115,114,113,112,111,110,109,108,107,106,105,104,103,102,101,100,99,98,97,96,95,94,93,92,91,90,89,88,87,86,85,84,83,81,82,80,79,77,78,76,75,74,73,72,71,70,69,68,67,66,65,64,63,62,370,371,369,368,367,366,365,364,363,362,361,360,358,359,356,357,
354,355,352,353,350,348,347,346,345,344,342,341,340,339,335,334,333,332,331,330,325,329,328,327,326,323,322,321,320,319,318,317,316,315,314,313,312,310,311,309,307,306,305,304,303,302,301,372,61,60,59,58,56,55,54,53,52,51,57,455]);function CheckWebBrowser(){if(window.URL&&window.Blob)return!0;txt_reccond_title.innerHTML=s_app_reqspec_notenough;return!1}function InitDisplay(){InitDisplayFramework();InitDisplayRecCondition();InitDisplayTextOut();InitDisplayToolTip();InitDisplayMask();SetEventHandler()}
function InitDisplayFramework(){document.title=s_app_name;var a='<div class="header_row_style app_name_style">'+s_app_name+"</div>";a+='<div class="header_row_style app_ver_style">'+s_app_ver+"</div>";a+='<div class="header_row_style app_reqspec_style">'+s_app_reqspec+"</div>";s_app_dst!=s_app_dst_ipro_ja&&s_app_dst!=s_app_dst_ipro_eu_ja?a=a+'<div class="header_row_style app_selmodel_style_ipro"><span class="title_name_stype">&nbsp;</span></div><div class="header_note_ipro note_cap_border_style"><div class="header_row_style note_cap_style_ipro font_color_blue_bold">'+
(s_note_cap+"</div>"):(a+='<div class="header_row_style app_selmodel_style_ipro"><span class="title_name_stype">'+s_title_name+"</span></div>",a=a+'<div class="header_note_ipro note_cap_border_style"><div class="header_row_style note_cap_style_ipro font_color_blue_bold">'+(s_note_cap+"</div>"));a+='<div class="header_row_style note_txt_style_ipro">'+s_note_txt1+"</div>";a+="</div>";$("#app_header").append(a);$("#txt_navigation_comment").html("<br>");s_app_dst!=s_app_dst_ja&&s_app_dst!=s_app_dst_ipro_ja&&
s_app_dst!=s_app_dst_ipro_eu_ja&&$(".title_name_stype").css("visibility","hidden")}
function InitUISchObjectTable(){for(var a=UISchObjectTable.length,b=0;b<a;b++){var c=("0"+(b+1)).slice(-2);UISchObjectTable[b]=Array(Object.keys(UISchObjectId).length);UISchObjectTable[b][UISchObjectId.week]=Array(ScheduleRecWeekList.length);for(var d=UISchObjectTable[b][UISchObjectId.week].length,e=0;e<d;e++){UISchObjectTable[b][UISchObjectId.week][e]=Array(ScheduleRecTimeTableList.length);for(var f=UISchObjectTable[b][UISchObjectId.week][e].length,g=0;g<f;g++)UISchObjectTable[b][UISchObjectId.week][ScheduleRecWeekList[e].id][ScheduleRecTimeTableList[g].id]=
$("#reccond_shcedule_"+c+"_reftable_"+ScheduleRecWeekList[e].id+"_"+ScheduleRecTimeTableList[g].id)}UISchObjectTable[b][UISchObjectId.timetable]=Array(ScheduleRecTimeTableList.length-1);f=UISchObjectTable[b][UISchObjectId.timetable].length;for(g=0;g<f;g++)if(ScheduleRecTimeTableId.t0!=ScheduleRecTimeTableList[g].id)for(d=ScheduleRecTimeTableList[g].id-1,UISchObjectTable[b][UISchObjectId.timetable][d]=Array(TimeTableItemMaxNum),e=0;e<TimeTableItemMaxNum;e++)UISchObjectTable[b][UISchObjectId.timetable][d][e]=
Array(Object.keys(UISchTimeObjectId).length),UISchObjectTable[b][UISchObjectId.timetable][d][e][UISchTimeObjectId.shour]=$("#reccond_shcedule_"+c+"_rectime_table_"+ScheduleRecTimeTableList[g].id+"_"+(e+1)+"_shour"),UISchObjectTable[b][UISchObjectId.timetable][d][e][UISchTimeObjectId.sminute]=$("#reccond_shcedule_"+c+"_rectime_table_"+ScheduleRecTimeTableList[g].id+"_"+(e+1)+"_sminute"),UISchObjectTable[b][UISchObjectId.timetable][d][e][UISchTimeObjectId.ehour]=$("#reccond_shcedule_"+c+"_rectime_table_"+
ScheduleRecTimeTableList[g].id+"_"+(e+1)+"_ehour"),UISchObjectTable[b][UISchObjectId.timetable][d][e][UISchTimeObjectId.eminute]=$("#reccond_shcedule_"+c+"_rectime_table_"+ScheduleRecTimeTableList[g].id+"_"+(e+1)+"_eminute")}}
function InitUICamObjectTable(){for(var a=Object.keys(UICamObjectId).length,b=UICamObjectTable.length,c=0;c<b;c++){UICamObjectTable[c]=Array(a);for(var d=0;d<a;d++)UICamObjectTable[c][d]=null}$('[id^="reccond_poesw_"], [id^="reccond_poe_"], [id^="reccond_detail_"], [id^="reccond_advance_"], [id^="reccond_aiprivacy_"]').each(function(e,f){e=$(f).attr("id");if(-1==e.indexOf("develop")){var g=e.split("_");e=g[1];var h=g[g.length-1];g=g[g.length-2];var k=-1;-1!=e.indexOf("detail")?-1!=h.indexOf("num")?
k=UICamObjectId.detail_num:-1!=h.indexOf("model")?k=UICamObjectId.detail_model:-1!=h.indexOf("comp")?k=UICamObjectId.detail_comp:-1!=h.indexOf("reso")?k=UICamObjectId.detail_reso:-1!=h.indexOf("fps")?k=UICamObjectId.detail_fps:-1!=h.indexOf("qual")?k=UICamObjectId.detail_qual:-1!=h.indexOf("audio")?k=UICamObjectId.detail_audio:-1!=h.indexOf("schedule")?k=UICamObjectId.detail_schedule:-1!=h.indexOf("bitrate")&&(k=UICamObjectId.detail_bitrate):-1!=e.indexOf("advance")?-1!=h.indexOf("num")?k=UICamObjectId.advance_num:
-1!=h.indexOf("model")?k=UICamObjectId.advance_model:-1!=h.indexOf("recgroup")?k=UICamObjectId.advance_recgroup:-1!=h.indexOf("smartcoding")?k=UICamObjectId.advance_smartcoding:-1!=h.indexOf("connect")?k=UICamObjectId.advance_connect:-1!=h.indexOf("encrypt")?k=UICamObjectId.advance_encrypt:-1!=h.indexOf("bitrate")?k=UICamObjectId.advance_bitrate:-1!=h.indexOf("facematch")&&(k=UICamObjectId.advance_facematch):-1!=e.indexOf("aiprivacy")?-1!=h.indexOf("num")?k=UICamObjectId.aiprivacy_num:-1!=h.indexOf("model")?
k=UICamObjectId.aiprivacy_model:-1!=h.indexOf("recgroup")?k=UICamObjectId.aiprivacy_recgroup:-1!=h.indexOf("onoff")&&(k=UICamObjectId.aiprivacy_onoff):-1!=e.indexOf("poesw")?-1!=h.indexOf("customerdesc")?k=UICamObjectId.poesw_customerdesc:-1!=h.indexOf("modeldetail")?k=UICamObjectId.poesw_swlist:-1!=h.indexOf("cfg")?k=UICamObjectId.poesw_cfgbtn:-1!=h.indexOf("model")?k=UICamObjectId.poesw_model:-1!=h.indexOf("powertypesel")?k=UICamObjectId.poesw_powertypesel:-1!=h.indexOf("powertype")?k=UICamObjectId.poesw_powertype:
-1!=h.indexOf("psepower")?k=UICamObjectId.poesw_psepower:-1!=h.indexOf("portnum")&&(k=UICamObjectId.poesw_portnum):-1!=e.indexOf("poe")&&(-1!=h.indexOf("modelpower")?k=UICamObjectId.poe_modelpower:-1!=h.indexOf("modeltype")?k=UICamObjectId.poe_modeltype:-1!=h.indexOf("model")?k=UICamObjectId.poe_model:-1!=h.indexOf("powertypesel")?k=UICamObjectId.poe_powertypesel:-1!=h.indexOf("powertype")?k=UICamObjectId.poe_powertype:-1!=h.indexOf("powerclasssel")?k=UICamObjectId.poe_powerclasssel:-1!=h.indexOf("powerclass")?
k=UICamObjectId.poe_powerclass:-1!=h.indexOf("acadapter")?k=UICamObjectId.poe_externalpower:-1!=h.indexOf("cablelength")?k=UICamObjectId.poe_cablelength:-1!=h.indexOf("psepower")&&(k=UICamObjectId.poe_psepower));if(0<=k)if(k==UICamObjectId.advance_bitrate&&"advance"==g)k=UICamObjectId.advance_chgbitrate,UICamObjectTable[0][k]=$(f);else if(k==UICamObjectId.advance_bitrate){if(0<Number(g)||17>Number(g))UICamObjectTable[Number(g)][k]=$(f),k=UICamObjectId.advance_chgbitrate,UICamObjectTable[Number(g)][k]=
$(f)}else 99<Number(g)&&Number(g),UICamObjectTable[Number(g)][k]=$(f)}})}
function InitUIPreCompCamObjectTable(){for(var a=Object.keys(UICamObjectId).length,b=UIPreCompCamObjectTable.length,c=0;c<b;c++){UIPreCompCamObjectTable[c]=Array(a);for(var d=0;d<a;d++)UIPreCompCamObjectTable[c][d]=null}$('[id^="precomp_poe_"]').each(function(e,f){e=$(f).attr("id");if(-1==e.indexOf("develop")){e=e.split("_");var g=e[e.length-1],h=e[e.length-2],k=-1;-1!=e[1].indexOf("poe")&&(-1!=g.indexOf("modelpower")?k=UICamObjectId.poe_modelpower:-1!=g.indexOf("numberofunits")?k=UICamObjectId.poe_numberofunits:
-1!=g.indexOf("modeltype")?k=UICamObjectId.poe_modeltype:-1!=g.indexOf("model")?k=UICamObjectId.poe_model:-1!=g.indexOf("powertypesel")?k=UICamObjectId.poe_powertypesel:-1!=g.indexOf("powertype")?k=UICamObjectId.poe_powertype:-1!=g.indexOf("powerclasssel")?k=UICamObjectId.poe_powerclasssel:-1!=g.indexOf("powerclass")?k=UICamObjectId.poe_powerclass:-1!=g.indexOf("acadapter")?k=UICamObjectId.poe_externalpower:-1!=g.indexOf("cablelength")?k=UICamObjectId.poe_cablelength:-1!=g.indexOf("psepower")&&(k=
UICamObjectId.poe_psepower));if(0<=k)if(k==UICamObjectId.advance_bitrate&&"advance"==h)k=UICamObjectId.advance_chgbitrate,UIPreCompCamObjectTable[0][k]=$(f);else if(k==UICamObjectId.advance_bitrate){if(0<Number(h)||17>Number(h))UIPreCompCamObjectTable[Number(h)][k]=$(f),k=UICamObjectId.advance_chgbitrate,UIPreCompCamObjectTable[Number(h)][k]=$(f)}else 99<Number(h)&&Number(h),UIPreCompCamObjectTable[Number(h)][k]=$(f)}})}
function InitUIRecObjectTable(){for(var a=UIRecObjectTable.length,b=0;b<a;b++)UIRecObjectTable[b]=null;UIRecObjectTable[UIRecObjectId.hddmode]=$("#reccond_recconfig_hddmode");UIRecObjectTable[UIRecObjectId.highresomode]=$("#reccond_recconfig_highresomode");UIRecObjectTable[UIRecObjectId.substream]=$("#reccond_recconfig_substream")}
function InitUIOtherObjectTable_NX400(){for(var a=UIOtherObjectTable_NX400.length,b=0;b<a;b++)UIOtherObjectTable_NX400[b]=null;UIOtherObjectTable_NX400[UIOtherObjectId.recnum]=$("#reccond_estcondition_recnum_nx400");UIOtherObjectTable_NX400[UIOtherObjectId.hdmi]=$("#reccond_estcondition_hdmi_nx400");UIOtherObjectTable_NX400[UIOtherObjectId.hddcapa]=$("#reccond_estcondition_hddcapa_nx400");UIOtherObjectTable_NX400[UIOtherObjectId.recgroup1]=$("#reccond_estcondition_recgroup_1_nx400");UIOtherObjectTable_NX400[UIOtherObjectId.recdays1]=
$("#reccond_estcondition_recdays_1_nx400");UIOtherObjectTable_NX400[UIOtherObjectId.recgroup2]=$("#reccond_estcondition_recgroup_2_nx400");UIOtherObjectTable_NX400[UIOtherObjectId.recdays2]=$("#reccond_estcondition_recdays_2_nx400")}
function InitUIOtherObjectTable_NX300(){for(var a=UIOtherObjectTable_NX300.length,b=0;b<a;b++)UIOtherObjectTable_NX300[b]=null;UIOtherObjectTable_NX300[UIOtherObjectId.systemconfig]=$("#reccond_estcondition_systemconfig_nx300");UIOtherObjectTable_NX300[UIOtherObjectId.hddcapa]=$("#reccond_estcondition_hddcapa_nx300");UIOtherObjectTable_NX300[UIOtherObjectId.recgroup1]=$("#reccond_estcondition_recgroup_1_nx300");UIOtherObjectTable_NX300[UIOtherObjectId.recdays1]=$("#reccond_estcondition_recdays_1_nx300");
UIOtherObjectTable_NX300[UIOtherObjectId.recgroup2]=$("#reccond_estcondition_recgroup_2_nx300");UIOtherObjectTable_NX300[UIOtherObjectId.recdays2]=$("#reccond_estcondition_recdays_2_nx300")}function InitUIOtherObjectTable_NX200(){for(var a=UIOtherObjectTable_NX200.length,b=0;b<a;b++)UIOtherObjectTable_NX200[b]=null;UIOtherObjectTable_NX200[UIOtherObjectId.hddcapa]=$("#reccond_estcondition_hddcapa_nx200")}
function InitUIOtherObjectTable_NX100(){for(var a=UIOtherObjectTable_NX100.length,b=0;b<a;b++)UIOtherObjectTable_NX100[b]=null;UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa]=$("#reccond_estcondition_hddcapa_nx100");UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu201]=$("#reccond_estcondition_hddcapa_nu201");UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu300]=$("#reccond_estcondition_hddcapa_nu300");UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu301]=$("#reccond_estcondition_hddcapa_nu301")}
function InitUIOtherObjectTable_VMS(){for(var a=UIOtherObjectTable_VMS.length,b=0;b<a;b++)UIOtherObjectTable_VMS[b]=null;UIOtherObjectTable_VMS[UIOtherObjectId.recdays1]=$("#reccond_estcondition_recdays_vms")}
function InitDisplayToolTip(){var a='<span id="tooltip_externalpower">'+s_tooltip_externalpower;a=a+'</span><span id="tooltip_cablelength">'+s_tooltip_cablelength;a=a+'</span><span id="tooltip_psepower">'+s_tooltip_psepower;a=a+'</span><span id="tooltip_recstream">'+s_tooltip_recstream;a=a+'</span><span id="tooltip_num">'+s_tooltip_recstream;a=a+'</span><span id="tooltip_model">'+s_tooltip_model;a=a+'</span><span id="tooltip_comp">'+s_tooltip_comp;a=a+'</span><span id="tooltip_audio">'+s_tooltip_audio;
a+='</span><span id="tooltip_recgroup1">';s_recresult_model_nx400==s_model_name&&(a+=s_tooltip_recgroup_nx400);a+='</span><span id="tooltip_recgroup2">';s_recresult_model_nx400==s_model_name&&(a+=s_tooltip_recgroup_nx400);a=a+'</span><span id="tooltip_smartcoding">'+s_tooltip_smartcoding;a=a+'</span><span id="tooltip_smartcoding_2">'+s_tooltip_smartcoding_2;a=a+'</span><span id="tooltip_connect">'+s_tooltip_connect;a=a+'</span><span id="tooltip_encrypt">'+s_tooltip_encrypt;a=a+'</span><span id="tooltip_facematch">'+
s_tooltip_facematch;a=a+'</span><span id="tooltip_videobitrate">'+s_tooltip_videobitrate;a=a+'</span><span id="tooltip_hdmi">'+s_tooltip_hdmi;a=a+'</span><span id="tooltip_hddcapa">'+s_tooltip_hddcapa;a=a+'</span><span id="tooltip_hddcapa2">'+s_tooltip_hddcapa2;a+="</span>";s_app_dst!=s_app_dst_ipro_ja&&s_app_dst!=s_app_dst_ipro_ja&&(a=a+'<span id="tooltip_hddmode">'+s_tooltip_hddmode,a+="</span>");a=a+'<span id="tooltip_substream">'+s_tooltip_substream;a=a+'</span><span id="tooltip_substream_2">'+
s_tooltip_substream_2;a=a+'</span><span id="tooltip_estcondition_systemconfig">'+s_tooltip_estcondition_systemconfig;a=a+'</span><span id="tooltip_recconfig_highresomode">'+s_tooltip_recconfig_highresomode;a=a+'</span><span id="tooltip_recnum">'+s_tooltip_recnum;a=a+'</span><span id="tooltip_datasize">'+s_tooltip_datasize;a=a+'</span><span id="tooltip_bitrate_net">'+s_tooltip_bitrate_net;a+='</span><span id="tooltip_maxrecdays_mainunit">';if(s_recresult_model_nx400==s_model_name||s_recresult_model_nx300==
s_model_name)a+=s_tooltip_maxrecdays_mainunit_nx300;a=a+'</span><span id="tooltip_maxrecdays_nx400">'+s_tooltip_maxrecdays;a=a+'</span><span id="tooltip_maxrecdays_nx300">'+s_tooltip_maxrecdays_nx300;a=a+'</span><span id="tooltip_aiprivacy_onoff">'+s_tooltip_aiprivacy_onoff;a=a+'</span><span id="tooltip_cfg">'+s_tooltip_cfg;a=a+'</span><span id="tooltip_cfgstatus">'+s_tooltip_cfgstatus;a=a+'</span><span id="tooltip_swmodelno">'+s_tooltip_swmodelno;a=a+'</span><span id="tooltip_usertext">'+s_tooltip_usertext;
a=a+'</span><span id="tooltip_powertype">'+s_tooltip_powertype;a=a+'</span><span id="tooltip_modelpower">'+s_tooltip_modelpower;a=a+'</span><span id="tooltip_portnum">'+s_tooltip_portnum;a=a+'</span><span id="tooltip_cameranum">'+s_tooltip_cameranum;a=a+'</span><span id="tooltip_sw_hubpsepower">'+s_tooltip_sw_hubpsepower;a=a+'</span><span id="tooltip_sw_psepower">'+s_tooltip_sw_psepower;a=a+'</span><span id="tooltip_sw_model">'+s_tooltip_sw_model;a=a+'</span><span id="tooltip_sw_modeltext">'+s_tooltip_sw_modeltext;
a=a+'</span><span id="tooltip_sw_powertype">'+s_tooltip_sw_powertype;a=a+'</span><span id="tooltip_sw_powerclass">'+s_tooltip_sw_powerclass;a=a+'</span><span id="tooltip_sw_modelpower">'+s_tooltip_sw_modelpower;a=a+'</span><span id="tooltip_sw_acadapter">'+s_tooltip_sw_acadapter;a=a+'</span><span id="tooltip_sw_cablelength">'+s_tooltip_sw_cablelength;a=a+'</span><span id="tooltip_sw_connected_portnum">'+s_tooltip_sw_connected_portnum;a+="</span>";$("#tooltip_area").append(a);$(".tooltipitem_style").tooltipster()}
function InitDisplayPreCompToolTip(){var a='<span id="tooltip_precomp_psepower">'+s_tooltip_sw_psepower;a=a+'</span><span id="tooltip_precomp_model">'+s_tooltip_sw_model;a=a+'</span><span id="tooltip_precomp_modeltext">'+s_tooltip_sw_modeltext;a=a+'</span><span id="tooltip_precomp_powertype">'+s_tooltip_sw_powertype;a=a+'</span><span id="tooltip_precomp_powerclass">'+s_tooltip_sw_powerclass;a=a+'</span><span id="tooltip_precomp_modelpower">'+s_tooltip_sw_modelpower;a=a+'</span><span id="tooltip_precomp_acadapter">'+
s_tooltip_sw_acadapter;a=a+'</span><span id="tooltip_precomp_cablelength">'+s_tooltip_sw_cablelength;a+="</span>";$("#tooltip_area_precomp").append(a);$(".tooltipitem_style").tooltipster()}
function InitDisplayMask(){s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=s_app_dst||"undefined"!==typeof DspSmartCodingInfo||$(".reccond_smartcoding_block").css("display","none");s_app_dst_ch==s_app_dst&&$(".reccond_secure_block").css("display","none");"undefined"===typeof DspFaceMatchingInfo&&$(".reccond_txt_style_advance_facematch").css("display","none");s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=s_app_dst&&($("#txt_recresult_license_camera_64_nx400").css("visibility",
"hidden"),$("#recresult_license_camera_64_nx400").css("visibility","hidden"),$("#txt_recresult_license_camera_nx300_max").css("visibility","hidden"),$("#recresult_license_camera_nx300_max").css("visibility","hidden"))}
function InitDisplaySelectBox(a,b,c){for(var d="",e=b.length,f=0;f<e;f++){if(1==c){var g=!1;s_app_dst_ja==s_app_dst||s_app_dst_ipro_ja==s_app_dst||s_app_dst_ipro_eu_ja==s_app_dst?1==b[f].jpn&&(g=!0):1==b[f].eng&&(g=!0);if(0==g)continue}d+='<option value="'+b[f].id+'">'+b[f].name+"</option>"}$(a).append(d)}
function increaseSwitchModelLine(a){0==a?current_sw_dispnum--:current_sw_dispnum++;current_sw_dispnum>default_sw_maxnum?current_sw_dispnum=default_sw_maxnum:current_sw_dispnum<default_sw_dispnum&&(current_sw_dispnum=default_sw_dispnum);SetDispLineSwitch(current_sw_dispnum)}
function increaseCameraModelLine(a){0==a?current_cam_dispnum--:current_cam_dispnum++;current_cam_dispnum>default_sw_maxnum?current_cam_dispnum=default_sw_maxnum:current_cam_dispnum<default_cam_dispnum&&(current_cam_dispnum=default_cam_dispnum);SetDispLineCamera(current_cam_dispnum)}
function dispHelpPrint(){var a=0,b=[[[640,430]],[[640,360]]];switch(s_app_dst){case s_app_dst_ja:a=0;break;case s_app_dst_ipro_eu_ja:a=0;break;case s_app_dst_en_p:a=0}newprintwin=window.open(tooltip_print_name+".html","MultiAI Calc Print","width="+b[a][0][0]+",height="+b[a][0][1]+",toolbar=yes,menubar=no,scrollbars=no")}
function dispPreComputation(){var a=0;var b=[[[1060,600]],[[1060,600]]];switch(s_app_dst){case s_app_dst_ja:a=0;break;case s_app_dst_ipro_eu_ja:a=0;break;case s_app_dst_en_p:a=0}var c=b[a][0][0];a=b[a][0][1];!newprecompwin||newprecompwin.closed?newprecompwin=window.open(precomp_name,"Precomputation","width="+c+",height="+a+",toolbar=yes,menubar=no,scrollbars=no"):newprecompwin.focus()}
function TextHtmlPreComputation(a){a='<div class="reccond_rowstep"><p><div id="precomp_poe_button"><div class="btnRight"><input type="button" value="All Clear" class="reccond_poehub_adddel_button" onclick="ClearAllCameraPreComp()"></div><p><div id="txt_reccond_title_poehub_precalc" class="reccond_title_style_ipro font_color_white_bold">'+(s_precomp_title+"</div>");a=a+'<p><div class="reccond_rowstep"><div class="reccond_txt_style_sw_powertype_class"></div><div class="reccond_txt_style_sw_powertype_class"><u>'+
(s_precomp_totalpower+"</u></div>");a=a+'<div class="reccond_txt_style_sw_powertype_class"></div><div class="reccond_txt_style_sw_powertype_class"><u>'+(s_precomp_precond_numberofunits+"</u></div>");a=a+'<div class="reccond_txt_style_sw_powertype_class">PoE++</div><div class="reccond_txt_style_sw_powertype_class">PoE+</div><div class="reccond_txt_style_sw_powertype_class">PoE</div><div class="reccond_txt_style_sw_powertype_class"></div><div class="reccond_txt_style_sw_powertype_class"></div><div class="reccond_txt_style_sw_powertype_class"></div><div class="reccond_txt_style_sw_powertype_class"></div><div class="reccond_txt_style_sw_powertype_class"></div><div class="reccond_txt_style_sw_powertype_class"></div></div><div class="reccond_rowstep"><div class="reccond_txt_style_sw_powertype_class"></div><div id="precomp_result_power_totalpower" class="reccond_txt_style_sw_powertype_class">0.0W</div><div class="reccond_txt_style_sw_powertype_class"></div><div class="reccond_txt_style_sw_powertype_class"></div><div id="precomp_result_power_PoEPP" class="reccond_txt_style_sw_powertype_class">0.0W</div><div id="precomp_result_power_PoEP" class="reccond_txt_style_sw_powertype_class">0.0W</div><div id="precomp_result_power_PoE" class="reccond_txt_style_sw_powertype_class">0.0W</div><div class="reccond_txt_style_sw_powertype_class"></div><div class="reccond_txt_style_sw_powertype_class"></div><div class="reccond_txt_style_sw_powertype_class"></div><div class="reccond_txt_style_sw_powertype_class"></div><div class="reccond_txt_style_sw_powertype_class"></div><div class="reccond_txt_style_sw_powertype_class"></div></div><p>&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;<input type="radio" id="precomp_poe_unit_m" name="precomp_poe_unit" value="m" checked>'+
(s_poecond_unit_m+"</input>");a+='<input type="radio" id="reccond_poe_unit_ft" name="precomp_poe_unit" value="ft">'+s_poecond_unit_ft+"</input>";a=a+'<div class="reccond_rowstep"><div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_no">'+(s_poecond_no+"</div>");a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_no">'+s_precomp_numberofunits+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_model tooltipitem_style"  data-tooltip-content="#tooltip_precomp_model">'+
s_poecond_model+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_portnum tooltipitem_style" data-tooltip-content="#tooltip_precomp_modeltext">'+s_poecond_modeltype+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_powertype_class tooltipitem_style" data-tooltip-content="#tooltip_precomp_powertype">'+s_poecond_powertype_2lines+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_powertype_class tooltipitem_style" data-tooltip-content="#tooltip_precomp_powerclass">'+
s_poecond_class+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_powertype tooltipitem_style" data-tooltip-content="#tooltip_precomp_modelpower">'+s_poecond_modelpower+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_acadopter_cablelength tooltipitem_style" data-tooltip-content="#tooltip_precomp_acadapter">'+s_poecond_acadapter+"</div>";a+='<div id="precomp_cable_length" class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_acadopter_cablelength tooltipitem_style" data-tooltip-content="#tooltip_precomp_cablelength">'+
s_poecond_cablelength+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_modelpower_portnum tooltipitem_style" data-tooltip-content="#tooltip_precomp_psepower">'+s_poecond_psepower+"</div>";a+='</div><div class="reccond_5pxrowline"></div><div class="reccond_rowstep"><div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no"></div><div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no"></div><div class="reccond_data_style reccond_column_style reccond_txt_style_sw_model"><input type="text" id="precomp_poe_range_start" class="reccond_input_style_poe_inputrange" ></input> \uff5e <input type="text" id="precomp_poe_range_end" class="reccond_input_style_poe_inputrange" ></input></div><div class="reccond_data_style reccond_column_style reccond_txt_style_sw_portnum"></div><div class="reccond_data_style reccond_column_style reccond_txt_style_sw_powertype_class"></div><div class="reccond_data_style reccond_column_style reccond_txt_style_sw_powertype_class"></div><div class="reccond_data_style reccond_column_style reccond_txt_style_poe_powertype"></div><div class="reccond_data_style reccond_column_style reccond_txt_style_poe_acadopter_cablelength"></div><div class="reccond_data_style reccond_column_style reccond_txt_style_poe_acadopter_cablelength"></div><div class="reccond_data_style reccond_column_style reccond_txt_style_sw_modelpower_portnum"></div></div>';
for(var b,c=0;16>=c;c++)b=("00"+c).slice(-3),a+='<div class="reccond_rowstep">',a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no">'+(0==c?"":b)+"</div>",a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no">',a+='<input type="text" id="precomp_poe_'+b+'_numberofunits" class="reccond_input_style_poe_model"></select>',a+="</div>",a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_model">',a+='<select id="precomp_poe_'+
b+'_model" class="reccond_input_style_poe_model"></select>',a+="</div>",a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_portnum">',a+='<input type="text" id="precomp_poe_'+b+'_modeltype" class="reccond_input_style_poe_modeltype" readonly></select>',a+="</div>",a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_powertype_class">',a+='<input type="text" id="precomp_poe_'+b+'_powertype" class="reccond_input_style_poe_powertype" readonly></select>',
0!=c&&(a+='<select id="precomp_poe_'+b+'_powertypesel" id="precomp_poe_'+b+'_powertype" class="reccond_input_style_poe_powertypesel" readonly></select>'),a+="</div>",a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_powertype_class">',a+='<input type="text" id="precomp_poe_'+b+'_powerclass" class="reccond_input_style_poe_powertype" readonly></select>',0!=c&&(a+='<select id="precomp_poe_'+b+'_powerclasssel" id="precomp_poe_'+b+'_powertype" class="reccond_input_style_poe_powertypesel" readonly></select>'),
a+="</div>",a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_powertype">',a+='<input type="text" id="precomp_poe_'+b+'_modelpower" class="reccond_input_style_poe_modelpower" readonly></select>',a+="</div>",a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_acadopter_cablelength">',a+='<input type="checkbox" id="precomp_poe_'+b+'_acadapter" class="reccond_input_style_poe_externalpower"></select>',a+="</div>",a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_acadopter_cablelength">',
a+='<input type="text" id="precomp_poe_'+b+'_cablelength" class="reccond_input_style_poe_cablelength"></select>',a+="</div>",a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_modelpower_portnum">',a+='<input type="text" id="precomp_poe_'+b+'_psepower" class="reccond_input_style_poe_psepower" readonly></select>',a+="</div>",a+="</div>";return a+'</div><div class="reccond_5pxrowline"></div></div>'}function SetInnerHtml(a,b){document.getElementById(a).innerHTML=b}
function SetBtnText(a,b){document.getElementById(a).value=b}function closeWindow(){open("about:blank","_self").close()}function closeHelpWindow(){newprintwin&&!newprintwin.closed&&newprintwin.close()};function InitDisplayRecCondition(){$("#txt_reccond_group_recaiprivacy").text(s_reccond_group_recaiprivacy);InitDisplayRecAIPrivacy();s_app_dst!=s_app_dst_ch&&s_app_dst!=s_app_dst_ipro_eu_ja||$("#txt_reccond_group_recaiprivacy").hide();$("#txt_reccond_group_recaiprivacy").hide();$("#txt_reccond_group_recadvance").text(s_reccond_group_recadvance);InitDisplayRecAdvance();$("#txt_reccond_group_recadvance").hide();$("#txt_reccond_group_recdetail").text(s_reccond_group_recdetail);$("#txt_reccond_group_recdetail").hide();
$("#txt_reccond_group_poe").text(s_reccond_group_poe);InitDisplayPoe();$("#txt_reccond_group_precomp").text(s_precomp_title);$("#reccond_precomptab").tabs({active:0});$("#reccond_group_precomp").accordion({collapsible:!0,heightStyle:"content",active:!1});$("#txt_reccond_title_poehub").text(s_reccond_title_poehub);$("#txt_reccond_title").text(s_reccond_title);$("#txt_reccond_group_recorderconfig").text(s_reccond_group_recorderconfig);InitDisplayRecorderConfig();$("#txt_reccond_group_recorderconfig").hide();
$("#txt_reccond_group_schedule").text(s_reccond_group_schedule);$("#txt_reccond_group_schedule").hide();InitDisplayScheduleTab();$("#reccond_scheduletab").tabs({active:0});$("#reccond_group_recorderconfig").accordion({collapsible:!0,heightStyle:"content",active:0});$("#reccond_group_estcondition").accordion({collapsible:!0,heightStyle:"content",active:!1});$("#reccond_group_schedule").accordion({collapsible:!0,heightStyle:"content",active:!1});$("#reccond_group_recdetail").accordion({collapsible:!0,
heightStyle:"content",active:0});$("#reccond_group_recadvance").accordion({collapsible:!0,heightStyle:"content",active:!1});$("#reccond_group_recaiprivacy").accordion({collapsible:!0,heightStyle:"content",active:!1})}
function InitDisplayScheduleTab(){for(var a=1;a<=ScheduleMaxNum;a++){var b=("0"+a).slice(-2),c="reccond_scheduletab_"+b;$("#reccond_scheduletab_no").append('<li><a href="#'+c+'">'+b+"</a></li>");var d="";d+='<div id="'+c+'">';d+='<div class="reccond_header_style_ipro">'+s_reccond_schedule_recweek+b+"</div>";d+='<div class="rowspace1_style"></div>';d+='<div class="reccond_rowstep">';d+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_schedule_week_all">';d+=s_reccond_schedule_week+
"</div>";for(var e=ScheduleRecWeekList.length,f=Array(e),g=0;g<e;g++)d+='<div class="reccond_header_style_ipro reccond_',g+1==e&&(d+="last"),d+='column_style reccond_txt_style_schedule_week_one">',d+=ScheduleRecWeekList[g].name,d+="</div>";d+="</div>";d+='<div class="rowspace1_style"></div>';c=ScheduleRecTimeTableList.length;for(var h=0;h<c;h++){d+='<div class="reccond_rowstep">';d+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_schedule_week_all">'+ScheduleRecTimeTableList[h].name+
"</div>";for(g=0;g<e;g++){d+='<div class="reccond_data_style reccond_';g+1==e&&(d+="last");d+='column_style reccond_txt_style_schedule_week_one">';var k="reccond_shcedule_"+b+"_reftable_"+ScheduleRecWeekList[g].id;d+='<input id="'+k+"_"+ScheduleRecTimeTableList[h].id+'" name="'+k+'" type="radio"';d+=' value="'+ScheduleRecTimeTableList[h].id+'"';1==ScheduleRecTimeTableList[h].defchecked&&(d+=' checked="checked"',f[g]=ScheduleRecTimeTableList[h].id);d+="></div>"}d+="</div>";d+='<div class="rowspace1_style"></div>'}d+=
'<div class="rowspace2_style"></div>';SelectScheduleWeekInfo.push(f);e=[];d+='<div class="reccond_header_style_ipro">'+s_reccond_schedule_rectime+b+"</div>";for(h=0;h<c;h++)if(ScheduleRecTimeTableId.t0!=ScheduleRecTimeTableList[h].id){d+='<div class="rowspace1_style"></div>';d+='<div class="reccond_header_style_ipro">'+ScheduleRecTimeTableList[h].name+"</div>";for(f=1;f<=TimeTableItemMaxNum;f++)1==f%TimeTableRowItemMaxNum&&(d+='<div class="rowspace1_style"></div>',d+='<div class="reccond_rowstep">'),
d+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_schedule_rectime_no">',d+=f+"</div>",d+='<div id="txt_reccond_shcedule_'+b+"_rectime_table_"+ScheduleRecTimeTableList[h].id+"_"+f+'_shour"',d+=' class="reccond_data_style reccond_column_style reccond_txt_style_schedule_rectime_column reccond_txt_style_schedule_rectime_hour">',d+='<select id="reccond_shcedule_'+b+"_rectime_table_"+ScheduleRecTimeTableList[h].id+"_"+f+'_shour">',d+=GetHourOptionStrings(),d+="</select></div>",
d+='<div class="reccond_data_style reccond_column_style reccond_txt_style_schedule_rectime_column reccond_txt_style_schedule_rectime_separator">',d+=s_reccond_shcedule_rectime_separator1+"</div>",d+='<div id="txt_reccond_shcedule_'+b+"_rectime_table_"+ScheduleRecTimeTableList[h].id+"_"+f+'_sminute"',d+=' class="reccond_data_style reccond_column_style reccond_txt_style_schedule_rectime_column reccond_txt_style_schedule_rectime_minute">',d+='<select id="reccond_shcedule_'+b+"_rectime_table_"+ScheduleRecTimeTableList[h].id+
"_"+f+'_sminute">',d+=GetMinuteOptionStrings(),d+="</select></div>",d+='<div class="reccond_data_style reccond_column_style reccond_txt_style_schedule_rectime_column reccond_txt_style_schedule_rectime_separator">',d+=s_reccond_shcedule_rectime_separator2+"</div>",d+='<div id="txt_reccond_shcedule_'+b+"_rectime_table_"+ScheduleRecTimeTableList[h].id+"_"+f+'_ehour"',d+=' class="reccond_data_style reccond_column_style reccond_txt_style_schedule_rectime_column reccond_txt_style_schedule_rectime_hour">',
d+='<select id="reccond_shcedule_'+b+"_rectime_table_"+ScheduleRecTimeTableList[h].id+"_"+f+'_ehour">',d+=GetHourOptionStrings(),d+="</select></div>",d+='<div class="reccond_data_style reccond_column_style reccond_txt_style_schedule_rectime_column reccond_txt_style_schedule_rectime_separator">',d+=s_reccond_shcedule_rectime_separator1+"</div>",d+='<div id="txt_reccond_shcedule_'+b+"_rectime_table_"+ScheduleRecTimeTableList[h].id+"_"+f+'_eminute"',d+=' class="reccond_data_style reccond_column_style',
0==f%TimeTableRowItemMaxNum&&(d+=" reccond_txt_style_schedule_rectime_column"),d+=' reccond_txt_style_schedule_rectime_minute">',d+='<select id="reccond_shcedule_'+b+"_rectime_table_"+ScheduleRecTimeTableList[h].id+"_"+f+'_eminute">',d+=GetMinuteOptionStrings(),d+="</select></div>",0==f%TimeTableRowItemMaxNum&&(d+="</div>");"undefined"!==typeof DspDevelopmentInfo&&(d+='<div class="reccond_rowstep ">',d+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_schedule_develop_rectime_table_totaltime">',
d+='<input id="reccond_schedule_'+b+"_develop_rectime_table_"+ScheduleRecTimeTableList[h].id+'_totaltime"',d+='type="text" class="reccond_input_style_schedule_develop_rectime_table_totaltime">',d+="</div>",d+="</div>");e.push(0)}d+="</div>";$("#reccond_scheduletab_contents").append(d);SelectScheduleTimeTableInfo.push(e)}InitUISchObjectTable()}function InitDisplayTimeSelect(){var a=$("#reccond_shcedule_01_rectime_table_1_1_ehour");$(a).val(24);SelectScheduleTimeTable(a[0])}
function InitDisplayRecDetail(){var a='<div class="reccond_rowstep"><div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_detail_no">'+(s_reccond_detail_no+"</div>");a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_detail_num  tooltipitem_style" data-tooltip-content="#tooltip_num">'+s_reccond_detail_num+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_detail_model tooltipitem_style" data-tooltip-content="#tooltip_model">'+
s_reccond_detail_model+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_detail_comp  tooltipitem_style" data-tooltip-content="#tooltip_comp">'+s_reccond_detail_comp+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_detail_reso">'+s_reccond_detail_reso+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_detail_fps">'+s_reccond_detail_fps+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_detail_qual">'+
s_reccond_detail_qual+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_detail_audio tooltipitem_style" data-tooltip-content="#tooltip_audio">'+s_reccond_detail_audio+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_detail_schedule">'+s_reccond_detail_schedule+"</div>";a+='</div><div class="rowspace1_style"></div>';for(var b=0;b<=CamSettingMaxNum;b++){var c=("00"+b).slice(-3);a+='<div class="reccond_rowstep">';a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_detail_no">';
0<b&&(a+=c);a+="</div>";a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_detail_num">';0<b&&(a+='<input id="reccond_detail_'+c+'_num" type="text" class="reccond_input_style_detail_num" maxlength="3">');a+="</div>";a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_detail_model">';a+='<select id="reccond_detail_'+c+'_model" class="reccond_input_style_detail_model"></select>';a+="</div>";a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_detail_comp">';
a+='<select id="reccond_detail_'+c+'_comp" class="reccond_input_style_detail_comp"></select>';a+="</div>";a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_detail_reso">';a+='<select id="reccond_detail_'+c+'_reso" class="reccond_input_style_detail_reso"></select>';a+="</div>";a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_detail_fps">';a+='<select id="reccond_detail_'+c+'_fps" class="reccond_input_style_detail_fps"></select>';a+="</div>";a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_detail_qual">';
a+='<select id="reccond_detail_'+c+'_qual" class="reccond_input_style_detail_qual"></select>';a+="</div>";a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_detail_audio">';a+='<select id="reccond_detail_'+c+'_audio" class="reccond_input_style_detail_audio"></select>';a+="</div>";a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_detail_schedule">';a+='<select id="reccond_detail_'+c+'_schedule"></select>';a+="</div>";a+="</div>";a+='<div class="rowspace1_style"></div>'}a+=
s_comment2;$("#reccond_detail").append(a);InitUICamObjectTable();InitCamModelList()}
function InitDisplayPoeSwitchSetting(){var a='<p><div class="reccond_rowstep"><div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_cfg tooltipitem_style" data-tooltip-content="#tooltip_cfg">'+(s_poecond_cfg+"</div>");a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_no tooltipitem_style" data-tooltip-content="#tooltip_cfgstatus">'+s_poecond_sw_compcfg+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_no">'+
s_poecond_sw_no+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_model tooltipitem_style" data-tooltip-content="#tooltip_swmodelno">'+s_poecond_sw_model+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_modeltype tooltipitem_style" data-tooltip-content="#tooltip_usertext">'+s_poecond_sw_customer_desc+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poesw_powertype tooltipitem_style" data-tooltip-content="#tooltip_powertype">'+
s_poecond_powertype+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poesw_powertype tooltipitem_style" data-tooltip-content="#tooltip_modelpower">'+s_poecond_sw_psepower+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_no tooltipitem_style" data-tooltip-content="#tooltip_portnum">'+s_poecond_sw_portnum+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_no tooltipitem_style" data-tooltip-content="#tooltip_cameranum">'+
s_poecond_sw_connectedcamnum+"</div>";a+='</div><div class="rowspace1_style"></div>';for(var b=1;b<=default_sw_maxnum;b++){var c=("00"+b).slice(-3);a+='<div id="reccond_poesw_'+c+'_rowstep" class="reccond_rowstep">';a+='<div id="reccond_poesw_'+c+'_cfg" class="reccond_data_style reccond_column_style reccond_txt_style_poe_cfg">';a+="</div>";a+='<div id="reccond_poesw_'+c+'_compcfg" class="reccond_data_style reccond_column_style reccond_txt_style_poe_no"></div>';a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_no">';
a+=c;a+="</div>";a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_model">';a+='<select id="reccond_poesw_'+c+'_model" class="reccond_input_style_poe_model"></select>';a+="</div>";a+='<div id="reccond_poesw_'+c+'_customerdesc_div" class="reccond_data_style reccond_column_style reccond_txt_style_poe_modeltype">';a+='<input type="text" id="reccond_poesw_'+c+'_customerdesc" class="reccond_input_style_poe_customerdesc" disabled></select>';a+="</div>";a+='<div id="reccond_poesw_'+
c+'_powertype_div" class="reccond_data_style reccond_column_style reccond_txt_style_poesw_powertype">';a+='<input type="text" id="reccond_poesw_'+c+'_powertype" class="reccond_input_style_poe_powertype" readonly></select>';a+='<select id="reccond_poesw_'+c+'_powertypesel"  class="reccond_input_style_poe_powertypesel" readonly style="display: none;"></select>';a+="</div>";a+='<div id="reccond_poesw_'+c+'_psepower_div" class="reccond_data_style reccond_column_style reccond_txt_style_poesw_powertype">';
a+='<input type="text" id="reccond_poesw_'+c+'_psepower" class="reccond_input_style_poe_modelpower" readonly></select>';a+="</div>";a+='<div id="reccond_poesw_'+c+'_portnum_div" class="reccond_data_style reccond_column_style reccond_txt_style_poe_no">';a+='<input type="text" id="reccond_poesw_'+c+'_portnum" class="reccond_input_style_poe_modelpower" readonly></select>';a+="</div>";a+='<div id="reccond_poesw_'+c+'_camnum_div" class="reccond_data_style reccond_column_style reccond_txt_style_poe_no">';
a+='<input type="text" id="reccond_poesw_'+c+'_camnum" class="reccond_input_style_poe_modelpower" readonly></select>';a+="</div>";a+="</div>"}a=a+'<p><input type="button" value="+" class="reccond_poehub_adddel_button" onclick="increaseSwitchModelLine(true)">&ensp;<input type="button" value="-" class="reccond_poehub_adddel_button" onclick="increaseSwitchModelLine(false)"><p><input type="button" id="btn_result" value="\u7d50\u679c\u753b\u9762\u3078" class="" onclick="DispPoEResult()">&ensp;<p><div style="padding: 10px; margin-bottom: 10px; border: 1px dashed #333333; border-radius: 5px; background-color: #ffffff;"><b><u>'+
(s_precomp_savefile_title+"</u></b>");a=a+"<p>"+(s_precomp_savefile_filename+':<input type="text" id="recdond_poe_filename"> <input type="button" value="\u4fdd\u5b58" id="btn_savefile" onclick="SavePoeHubInfoToFile()">\u3000');a+="<p>"+s_precomp_load_title+':<input id="file1" type="file" onChange="fileChanged(this)">';return a+"</div>"}
function DispResultPoeSwitchSetting(){var a='<p><div class="reccond_rowstep"><div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_no">'+(s_poecond_sw_compcfg+"</div>");a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_no">'+s_poecond_sw_no+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_model">'+s_poecond_sw_model+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_modeltype">'+
s_poecond_sw_customer_desc+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poesw_powertype">'+s_poecond_powertype+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poesw_powertype">'+s_poecond_sw_psepower+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_no">'+s_poecond_sw_portnum+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_no">'+
s_poecond_sw_connectedcamnum+"</div>";a+='</div><div class="rowspace1_style"></div>';for(var b=1;b<=current_sw_dispnum;b++){var c=("00"+b).slice(-3);a+='<div id="reccond_poesw_'+c+'_rowstep" class="reccond_rowstep">';var d=GetSwConnectedCamNum(b-1);GetSwConnectedCamPower(b-1);a=0<d?resultPoEHubInfo[b-1].overpower?a+('<div id="reccond_poesw_'+c+'_compcfg" class="reccond_data_style reccond_column_style reccond_txt_style_poe_no"><font color="red"><b>X</b></font></div>'):a+('<div id="reccond_poesw_'+
c+'_compcfg" class="reccond_data_style reccond_column_style reccond_txt_style_poe_no"><font color="darkgreen"><b>\u2714</b></font></div>'):a+('<div id="reccond_poesw_'+c+'_compcfg" class="reccond_data_style reccond_column_style reccond_txt_style_poe_no"></div>');a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_no">';a+=c;a+="</div>";a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_model">';d=document.getElementById("reccond_poesw_"+c+"_model");
a+=0>d.selectedIndex?"--":d.options[d.selectedIndex].innerHTML;a+="</div>";var e=Number($(d).val());a+='<div id="reccond_poesw_'+c+'_customerdesc_div" class="reccond_data_style reccond_column_style reccond_txt_style_poe_modeltyperesult text_break">';d=document.getElementById("reccond_poesw_"+c+"_customerdesc");a+=d.value;a+="</div>";a+='<div id="reccond_poesw_"'+c+'_powertype_div" class="reccond_data_style reccond_column_style reccond_txt_style_poesw_powertype">';document.getElementById("reccond_poesw_"+
c+"_powertype");e==SwitchPoeList.length-1?(d=document.getElementById("reccond_poesw_"+c+"_powertypesel"),a+=PoePowerTypeList[Number($(d).val())].powertype):(d=document.getElementById("reccond_poesw_"+c+"_powertype"),a+=$(d).val());a+="</div>";a+='<div id="reccond_poesw_"'+c+'_psepower_div" class="reccond_data_style reccond_column_style reccond_txt_style_poesw_powertype">';d=document.getElementById("reccond_poesw_"+c+"_psepower");a+=d.value;a+="</div>";a+='<div id="reccond_poesw_"'+c+'_portnum_div" class="reccond_data_style reccond_column_style reccond_txt_style_poe_no">';
d=document.getElementById("reccond_poesw_"+c+"_portnum");a+=d.value;a+="</div>";a+='<div id="reccond_poesw_"'+c+'_camnum_div" class="reccond_data_style reccond_column_style reccond_txt_style_poe_no">';d=document.getElementById("reccond_poesw_"+c+"_camnum");a+=d.value;a+="</div>";a+="</div>"}return a}function InitSwitchCamTable(){resultPoEHubInfo=[];for(var a=0;a<maxval_portnum;a++)resultPoEHubInfo.push(new PoeHubInfo(a+1,-1,"","","",-1,-1,0,0,[],!1,!1,!1))}
function checkPRinResultAsCamera(a){for(var b=!1,c=0;c<resultPoEHubInfo.length;c++)for(var d=0;d<resultPoEHubInfo[c].caminfolist.length;d++)if(a==Number(resultPoEHubInfo[c].caminfolist[d].camno)){b=!0;break}return b}
function deletePRinResultAsCamera(a){for(var b=0,c=0;c<resultPoEHubInfo.length;c++)for(var d=0;d<resultPoEHubInfo[c].caminfolist.length;d++)if(a==Number(resultPoEHubInfo[c].caminfolist[d].camno)){resultPoEHubInfo[c].caminfolist[d]=new PoeCamInfo(d+1,"0","","","","","",!1,!0,"","","");b=c+1;break}return b}
function CheckLimitationForPR204(a){for(var b=!1,c=!1,d=0,e=0;e<resultPoEHubInfo[a-1].caminfolist.length;e++)"0"!=resultPoEHubInfo[a-1].caminfolist[e].camno&&0==resultPoEHubInfo[a-1].caminfolist[e].acadapter&&d++,"PoE+"==resultPoEHubInfo[a-1].caminfolist[e].powertype&&0==resultPoEHubInfo[a-1].caminfolist[e].acadapter&&(c=!0);0!=c&&2<=d&&(b=!0);return b}
function InitDisplayPoe(){var a='<div id="reccond_group_precomp" class="display_width"><label id="txt_reccond_group_precomp" class="reccond_txt_precomptitle_accordion_ipro"></label><div id="reccond_precomptab"><p>'+s_precomp_desc;a=a+'<p><input type="button" value="\u5b9f\u884c" id="btn_precalc" onclick="dispPreComputation()"><p></div></div></div><p><div id="txt_reccond_title_poehub" class="reccond_title_style_ipro font_color_white_bold">Now Loading</div><p>'+InitDisplayPoeSwitchSetting();a+='<p><div class="pagebreak"></div>';
$("#reccond_poe").append(a);SetDispLineSwitch(default_sw_dispnum);SetDispLineCamera(default_cam_dispnum);InitUICamObjectTable();SetBtnText("btn_result",s_btn_result);SetBtnText("recdond_poe_filename",s_reccond_filnename_head);SetBtnText("btn_precalc",s_precomp_button_openwindow);SetBtnText("btn_savefile",s_precomp_button_save);InitSwitchCamTable();InitPoeSwitchModelList();DoCalculatePoe()}
function btnCameraConfigSetting(a){a=a.parentElement.id.split("_");showPoEHubCameraSetting(Number(a[a.length-2]))}
function showPoEHubCameraSetting(a){$("#reccond_poe").css("display","none");cur_sw_no=a;var b="reccond_poesw_"+("00"+a).slice(-3)+"_model";b=document.getElementById(b);if(Number(b.value)==SwitchPoeList.length-1){var c="reccond_poesw_"+("00"+a).slice(-3)+"_powertypesel";c=document.getElementById(c);c=Number($(c).val());cur_sw_no=a;cur_sw_id=Number(b.value);cur_sw_powertype=HubPoeList[a].powertype;cur_sw_modelpower=HubPoeList[a].modelpower;cur_sw_portnum=HubPoeList[a].portnum;$("#reccond_poe_swcamsetting").replaceWith(CreatePoEHubCameraSetting(a,
Number(b.value),SwitchPoeList[Number(b.value)].model,PoePowerTypeList[c].powertype,HubPoeList[a].modelpower,HubPoeList[a].portnum))}else c="reccond_poesw_"+("00"+a).slice(-3)+"_powertype",c=document.getElementById(c),c=GetPowerTypeIndex($(c).val()),cur_sw_portnum=SwitchPoeList[b.value].hubportnum,$("#reccond_poe_swcamsetting").replaceWith(CreatePoEHubCameraSetting(a,Number(b.value),SwitchPoeList[Number(b.value)].model,PoePowerTypeList[c].powertype,SwitchPoeList[b.value].modelpower,SwitchPoeList[b.value].hubportnum));
InitDisplayToolTip();$("#txt_reccond_title").text(s_reccond_title);SetBtnText("btn_back_main_from_camerasetting",s_btn_goback);$("#reccond_poe_range_start").val("001");$("#reccond_poe_range_end").val(("00"+String(cur_sw_portnum)).slice(-3));InitUICamObjectTable();InitPoeCamModelList();LoadSwitchCameraSetting();$("#reccond_group_poe_swcamsetting").css("display","inline");SetEventHandler();c=SaveSwitchCameraSetting();DoCalculatePoe(c);DispAlertMsg();createPoeHubInfoTable(a,Number(b.value),SwitchPoeList[Number(b.value)].model,
"text","PoE+",230,SwitchPoeList[b.value].hubportnum,0)}function GetPowerTypeIndex(a){var b=0;if("--"==a)b=0;else if("PoE"==a||"1"==a)b=1;else if("PoE+"==a||"2"==a)b=2;else if("PoE++"==a||"3"==a)b=3;return b}
function showPoEHubSetting(a){SaveSwitchCameraSetting();var b=!0,c=document.getElementById("sw_no").textContent;for(a=0;a<resultPoEHubInfo[Number(c)-1].maxportnum&&(Number(resultPoEHubInfo[Number(c)-1].caminfolist[a].camno)!=CamPoeList.length-1||(b=IsOtherSettingCompleted(a+1),0!=b));a++);if(0==b)alert(s_msgwarn_cfgnotfilled);else for($("#reccond_group_poe_swcamsetting").css("display","none"),$("#result_poe").css("display","none"),$("#reccond_poe").css("display","inline"),a=0;a<current_sw_dispnum;a++){b=
"reccond_poesw_"+("00"+(a+1)).slice(-3)+"_camnum";c="reccond_poesw_"+("00"+(a+1)).slice(-3)+"_compcfg";b=document.getElementById(b);c=document.getElementById(c);var d=GetSwConnectedCamNum(a);GetSwConnectedCamPower(a);0<d?($(b).val(d),1==resultPoEHubInfo[a].overpower?$(c).html('<font color="red"><b>X</b></font>'):$(c).html('<font color="darkgreen"><b>\u2714</b></font>')):$(c).html("")}}
function showPoEHubSettingfromResult(a){$("#reccond_group_poe_swcamsetting").css("display","none");$("#result_poe").css("display","none");$("#reccond_poe").css("display","inline")}
function CreatePoEHubCameraSetting(a,b,c,d,e,f){var g="";window.CollectGarbage&&window.CollectGarbage();a=("00"+a).slice(-3);hubname_prseries=c;g=g+'<div id="reccond_poe_swcamsetting"><p><div class="btnLeft"><input type="button" value="\u623b\u308b" id="btn_back_main_from_camerasetting" class="reccond_poehub_adddel_button" onclick="showPoEHubSetting()"></div><div class="btnRight"><input type="button" value="All Clear" class="reccond_poehub_adddel_button" onclick="ClearAllCamera()"></div><p><div id="txt_reccond_title" class="reccond_title_style_ipro font_color_white_bold">Now Loading</div><p><div class="reccond_rowstep"><div class="reccond_header_style_ipro reccond_txt_style_sw_no">'+(s_poecond_no+
"</div>");g=g+'<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_no"></div><div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_model">'+(s_poecond_sw_model+"</div>");g+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_portnum">'+s_poecond_sw_portnum+"</div>";g+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_powergroup">'+s_poecond_sw_powergroup+"</div>";g+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_powertype">'+
s_poecond_powertype+"</div>";g+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_modelpower">'+s_poecond_sw_psepower+"</div>";g+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_psepower tooltipitem_style" data-tooltip-content="#tooltip_sw_hubpsepower">'+s_poecond_sumpsepower+"</div>";g+="</div>";if(1==SwitchPoeList[b].powergroup.length)g+='<div class="reccond_rowstep"><div class="reccond_data_style reccond_txt_style_sw_no" id="sw_no">',
0<a&&(g+=a),g=g+'</div><div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no"></div><div id="sw_model" class="reccond_data_style reccond_column_style reccond_txt_style_sw_model">'+(c+'</div><div class="reccond_data_style reccond_column_style reccond_txt_style_sw_portnum" id="sw_portnum">')+(f+'</div><div class="reccond_data_style reccond_column_style reccond_txt_style_poe_powergroup">--</div>'),g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_powertype">'+
d+"</div>",e=Math.round(10*Number(e))/10,g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_modelpower">'+e.toFixed(1)+"W",0!=poe_cablelen_unit_m?(g+='<br>&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;<input type="radio" id="reccond_poe_unit_m" name="reccond_poe_unit" value="m" checked>'+s_poecond_unit_m+"</input>",g+='<input type="radio" id="reccond_poe_unit_ft" name="reccond_poe_unit" value="ft">'+s_poecond_unit_ft+"</input>"):(g+='<br>&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;<input type="radio" id="reccond_poe_unit_m" name="reccond_poe_unit" value="m">'+
s_poecond_unit_m+"</input>",g+='<input type="radio" id="reccond_poe_unit_ft" name="reccond_poe_unit" value="ft" checked>'+s_poecond_unit_ft+"</input>"),g+="</div>",g+='<div id ="sw_psepower" class="reccond_data_style reccond_column_style reccond_txt_style_poe_psepower"></div>',g+="</div>";else for(d=0;d<SwitchPoeList[b].powergroup.length;d++)g+='<div class="reccond_rowstep">',0==d?(g+='<div class="reccond_data_style reccond_txt_style_sw_no" id="sw_no">',0<a&&(g+=a),g+="</div>",g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no"></div>',
g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_model">'+c+"</div>",g+='<div id="sw_portnum" class="reccond_data_style reccond_column_style reccond_txt_style_sw_portnum">'+SwitchPoeList[b].hubportnum+"</div>"):(g+='<div class="reccond_data_style reccond_txt_style_sw_no"></div>',g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no"></div>',g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_model"></div>',g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_portnum"></div>'),
g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_powergroup">'+SwitchPoeList[b].powergroup[d].groupname+"</div>",g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_powertype">('+SwitchPoeList[b].powergroup[d].powertype+")</div>",e=Math.round(10*Number(SwitchPoeList[b].powergroup[d].grouppower))/10,g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_modelpower">('+e.toFixed(1)+"W)",d==SwitchPoeList[b].powergroup.length-
1&&(0!=poe_cablelen_unit_m?(g+='<br>&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;<input type="radio" id="reccond_poe_unit_m" name="reccond_poe_unit" value="m" checked>'+s_poecond_unit_m+"</input>",g+='<input type="radio" id="reccond_poe_unit_ft" name="reccond_poe_unit" value="ft">'+s_poecond_unit_ft+"</input>"):(g+='<br>&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;<input type="radio" id="reccond_poe_unit_m" name="reccond_poe_unit" value="m">'+s_poecond_unit_m+"</input>",g+='<input type="radio" id="reccond_poe_unit_ft" name="reccond_poe_unit" value="ft" checked>'+
s_poecond_unit_ft+"</input>")),g+="</div>",g+='<div id ="sw_psepower" class="reccond_data_style reccond_column_style reccond_txt_style_poe_psepower"></div>',g+="</div>";g+='<div class="reccond_rowstep">';g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no"></div>';g+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_no">'+s_poecond_no+"</div>";g+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_model tooltipitem_style"  data-tooltip-content="#tooltip_sw_model">'+
s_poecond_model+"</div>";g+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_portnum tooltipitem_style" data-tooltip-content="#tooltip_sw_modeltext">'+s_poecond_modeltype+"</div>";g+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_powertype_class tooltipitem_style" data-tooltip-content="#tooltip_sw_powertype">'+s_poecond_powertype_2lines+"</div>";g+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_powertype_class tooltipitem_style" data-tooltip-content="#tooltip_sw_powerclass">'+
s_poecond_class+"</div>";g+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_powertype tooltipitem_style" data-tooltip-content="#tooltip_sw_modelpower">'+s_poecond_modelpower+"</div>";g+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_acadopter_cablelength tooltipitem_style" data-tooltip-content="#tooltip_sw_acadapter">'+s_poecond_acadapter+"</div>";g=0!=poe_cablelen_unit_m?g+('<div id="cable_length" class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_acadopter_cablelength tooltipitem_style" data-tooltip-content="#tooltip_sw_cablelength">'+
s_poecond_cablelength+"</div>"):g+('<div id="cable_length" class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_acadopter_cablelength tooltipitem_style" data-tooltip-content="#tooltip_sw_cablelength">'+s_poecond_cablelength_feet+"</div>");g+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_modelpower_portnum tooltipitem_style" data-tooltip-content="#tooltip_sw_psepower">'+s_poecond_psepower+"</div>";g+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_modelpower_portnum tooltipitem_style" data-tooltip-content="#tooltip_sw_connected_portnum">'+
s_poecond_sw_connectedportnum+"</div>";g+="</div>";g+='<div class="reccond_5pxrowline"></div>';g+='<div class="reccond_rowstep">';g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no"></div>';g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no"></div>';g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_model">';g+='<input type="text" id="reccond_poe_range_start" class="reccond_input_style_poe_inputrange" ></input> \uff5e ';
g+='<input type="text" id="reccond_poe_range_end" class="reccond_input_style_poe_inputrange" ></input>';g+="</div>";g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_portnum">';g+="</div>";g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_powertype_class">';g+="</div>";g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_powertype_class">';g+="</div>";g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_powertype">';
g+="</div>";g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_acadopter_cablelength">';g+="</div>";g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_acadopter_cablelength">';g+="</div>";g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_modelpower_portnum">';g+="</div>";g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_modelpower_portnum">';g+="</div>";g+="</div>";for(d=0;d<=f;d++)b=("00"+
d).slice(-3),g+='<div class="reccond_rowstep">',g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no"></div>',g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no">'+(0==d?"":b)+"</div>",g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_model">',g+='<select id="reccond_poe_'+b+'_model" class="reccond_input_style_poe_model"></select>',g+="</div>",g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_portnum">',
g+='<input type="text" id="reccond_poe_'+b+'_modeltype" class="reccond_input_style_poe_modeltype" readonly></select>',g+="</div>",g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_powertype_class">',g+='<input type="text" id="reccond_poe_'+b+'_powertype" class="reccond_input_style_poe_powertype" readonly></select>',0!=d&&(g+='<select id="reccond_poe_'+b+'_powertypesel" id="reccond_poesw_'+b+'_powertype" class="reccond_input_style_poe_powertypesel" readonly></select>'),g+=
"</div>",g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_powertype_class">',g+='<input type="text" id="reccond_poe_'+b+'_powerclass" class="reccond_input_style_poe_powertype" readonly></select>',0!=d&&(g+='<select id="reccond_poe_'+b+'_powerclasssel" id="reccond_poesw_'+b+'_powertype" class="reccond_input_style_poe_powertypesel" readonly></select>'),g+="</div>",g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_powertype">',g+='<input type="text" id="reccond_poe_'+
b+'_modelpower" class="reccond_input_style_poe_modelpower" readonly></select>',g+="</div>",g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_acadopter_cablelength">',g+='<input type="checkbox" id="reccond_poe_'+b+'_acadapter" class="reccond_input_style_poe_externalpower"></select>',g+="</div>",g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_acadopter_cablelength">',g+='<input type="text" id="reccond_poe_'+b+'_cablelength" class="reccond_input_style_poe_cablelength"></select>',
g+="</div>",g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_modelpower_portnum">',g+='<input type="text" id="reccond_poe_'+b+'_psepower" class="reccond_input_style_poe_psepower" readonly></select>',g+="</div>",g+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_modelpower_portnum">',g+='<input type="text" id="reccond_poe_'+b+'_portnum" class="reccond_input_style_poe_psepower" readonly></select>',g+="</div>",g+="</div>";g+='<div class="rowspace1_style"></div>';
return g+="</div>"}
function DispPoEHubCameraSetting(a,b,c,d){var e="",f=SortResultByPort(resultPoEHubInfo[a-1].caminfolist);d=SwitchPoeList[b].hubportnum;b==SwitchPoeList.length-1&&(d=resultPoEHubInfo[a-1].maxportnum);for(var g=0,h=1;h<=d;h++){var k=resultPoEHubInfo[a-1].caminfolist[h-1].psepower;g+=Number(k.substr(0,k.length-1))}k=("00"+a).slice(-3);e=e+'<div id="reccond_poe_swcamsetting"><div class="reccond_rowstep"><div class="reccond_header_style_ipro reccond_txt_style_sw_no">'+(s_poecond_no+"</div>");e=e+'<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_no_x2"></div><div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_model">'+
(s_poecond_sw_model+"</div>");e+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_portnum">'+s_poecond_sw_portnum+"</div>";e+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_powergroup">'+s_poecond_sw_powergroup+"</div>";e+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_powertype">'+s_poecond_powertype+"</div>";e+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_modelpower">'+
s_poecond_sw_psepower+"</div>";e+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_result_modelpower">'+s_poecond_sumpsepower2+"</div>";e+="</div>";if(1==SwitchPoeList[b].powergroup.length){e+='<div class="reccond_rowstep"><div class="reccond_data_style reccond_txt_style_sw_no" id="sw_no">';0<k&&(e+=k);e+='</div><div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no_x2"></div>';var m=c;0!=SwitchPoeList[b].isPRseries&&(m+="<br>(WJ-PC200 x "+GetSwConnectedCamNum(a-
1)+")");resultPoEHubInfo[a-1].overpower&&(m+='<br><font color="red"><b>'+s_msgwarn_cfgnotcompleted+"</b></font>");e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_model">'+m+"</div>";e=resultPoEHubInfo[a-1].hubno==SwitchPoeList.length-1?e+('<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_portnum">'+resultPoEHubInfo[a-1].maxportnum+"</div>"):e+('<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_portnum">'+SwitchPoeList[b].hubportnum+
"</div>");e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_powergroup">--</div>';e=resultPoEHubInfo[a-1].hubno==SwitchPoeList.length-1?e+('<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_powertype">'+resultPoEHubInfo[a-1].powertype+"</div>"):e+('<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_powertype">'+SwitchPoeList[b].powertype+"</div>");e=resultPoEHubInfo[a-1].hubno==SwitchPoeList.length-1?e+('<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_modelpower">'+
(Math.round(10*resultPoEHubInfo[a-1].maxpower)/10).toFixed(1)+"W</div>"):e+('<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_modelpower">'+(Math.round(10*SwitchPoeList[b].modelpower)/10).toFixed(1)+"W</div>");if(resultPoEHubInfo[a-1].overpower){var l=b==SwitchPoeList.length-1?HubPoeList[a-1].modelpower:SwitchPoeList[b].modelpower;e=l>g?e+('<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_result_modelpower"><font color="red"><b>'+(Math.round(10*g)/
10).toFixed(1)+"W<br>"+s_msgwarn_insufficientmargin+"</b></font></div>"):e+('<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_result_modelpower"><font color="red"><b>'+(Math.round(10*g)/10).toFixed(1)+"W</b></font></div>")}else e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_result_modelpower">'+(Math.round(10*g)/10).toFixed(1)+"W</div>";e+="</div>"}else for(m="",h=0;h<SwitchPoeList[b].powergroup.length;h++)e+='<div class="reccond_rowstep">',
0==h?(e+='<div class="reccond_data_style reccond_txt_style_sw_no" id="sw_no">',0<k&&(e+=k),e+="</div>",e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no_x2"></div>',resultPoEHubInfo[a-1].overpower&&(m='<font color="red"><b>'+s_msgwarn_cfgnotcompleted+"</b></font>"),e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_model">'+c+"</div>",e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_portnum">'+SwitchPoeList[b].hubportnum+
"</div>"):(e+='<div class="reccond_data_style reccond_txt_style_sw_no"></div>',e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no_x2"></div>',e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_model">'+m+"</div>",e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_portnum"></div>'),e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_powergroup">'+SwitchPoeList[b].powergroup[h].groupname+"</div>",
e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_powertype">('+SwitchPoeList[b].powergroup[h].powertype+")</div>",e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_modelpower">('+(Math.round(10*SwitchPoeList[b].powergroup[h].grouppower)/10).toFixed(1)+"W)</div>",0==h?resultPoEHubInfo[a-1].overpower?(l=b==SwitchPoeList.length-1?HubPoeList[a-1].modelpower:SwitchPoeList[b].modelpower,e=l>g?e+('<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_result_modelpower"><font color="red"><b>'+
(Math.round(10*g)/10).toFixed(1)+"W<br>"+s_msgwarn_insufficientmargin+"</b></font></div>"):e+('<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_result_modelpower"><font color="red"><b>'+(Math.round(10*g)/10).toFixed(1)+"W</b></font></div>")):e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_result_modelpower">'+(Math.round(10*g)/10).toFixed(1)+"W</div>":e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_result_modelpower"></div>',
e+="</div>";e=e+'<div class="reccond_rowstep"><div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no"></div><div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_no_x2">'+(s_poecond_sw_connectedportnum+"</div>");e+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_model">'+s_poecond_model+"</div>";e+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_portnum">'+s_poecond_modeltype+"</div>";
e+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_powertype_class">'+s_poecond_powertype_2lines+"</div>";e+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_sw_powertype_class">'+s_poecond_class+"</div>";e+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_powertype">'+s_poecond_modelpower+"</div>";e+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_acadopter_cablelength">'+
s_poecond_acadapter+"</div>";e=0!=poe_cablelen_unit_m?e+('<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_acadopter_cablelength">'+s_poecond_cablelength+"</div>"):e+('<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_acadopter_cablelength">'+s_poecond_cablelength_feet+"</div>");e+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_poe_result_modelpower">'+s_poecond_psepower+"</div>";e+="</div>";for(h=1;h<=d;h++)("00"+
h).slice(-3),e+='<div class="reccond_rowstep">',e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no"></div>',e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_no_x2">'+(0==h?"":String(h))+"</div>",e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_model">',e+=CamPoeList[f[h-1].camno].model,e+="</div>","--"==CamPoeList[f[h-1].camno].model?(e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_portnum_resultdata">',
e+="",e+="</div>",e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_powertype_class">',e+="",e+="</div>",e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_powertype_class">',e+="",e+="</div>",e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_powertype">',e+="",e+="</div>",e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_acadopter_cablelength">',e+="",e+="</div>",e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_acadopter_cablelength">',
e+="",e+="</div>",e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_result_modelpower">',e+=""):(e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_portnum_resultdata text_break">',e+="&emsp;"+f[h-1].camtype,e+="</div>",e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_powertype_class">',e=f[h-1].camno==CamPoeList.length-1?e+PoePowerTypeList[Number(f[h-1].powertype)].powertype:e+CamPoeList[f[h-1].camno].powertype,e+=
"</div>",e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_sw_powertype_class">',e=f[h-1].camno==CamPoeList.length-1?e+PoePowerClassList[Number(f[h-1].powerclass)].powerclass:e+CamPoeList[f[h-1].camno].powerclass,e+="</div>",e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_powertype">',e=f[h-1].camno==CamPoeList.length-1?e+f[h-1].power:e+(Math.round(10*CamPoeList[f[h-1].camno].modelpower)/10+"W"),e+="</div>",e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_acadopter_cablelength">',
e=0==f[h-1].acadapter?e+"--":e+"\u2714",e+="</div>",e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_acadopter_cablelength">',e+=f[h-1].cablelength,e+="</div>",e+='<div class="reccond_data_style reccond_column_style reccond_txt_style_poe_result_modelpower">',e+=f[h-1].psepower),e+="</div>",e+="</div>";return e+'<div class="rowspace1_style"></div></div>'}
function DispPoEResult(){for(var a=!0,b=0;b<current_sw_dispnum;b++){var c=("00"+(b+1)).slice(-3);c=document.getElementById("reccond_poesw_"+c+"_model");"--"==(0>c.selectedIndex?"--":c.options[c.selectedIndex].innerHTML)||0<GetSwConnectedCamNum(b)||(a=!1)}if(0==a&&(b=window.confirm(s_msgconfirm_dispresultonnotconfig),0==b))return;a='<div id="result_poe" class="display_width"><p><input type="button" value="\u623b\u308b" id="btn_back_main_from_result" class="" onclick="showPoEHubSettingfromResult()">&ensp;<p></p><input type="button" value="PDF\u5370\u5237" id="btn_output_text" onclick="dispHelpPrint()">&emsp;<a id="output_text_guide">PDF\u5370\u5237\u306e\u624b\u9806\u3092\u3054\u6848\u5185\u81f4\u3057\u307e\u3059\u3002</a><p></p><div id="txt_reccond_title_poehub2" class="reccond_title_style_ipro font_color_white_bold">Now Loading</div><p>'+
DispResultPoeSwitchSetting();a+='<p><br><div id="txt_reccond_title2" class="reccond_title_style_ipro font_color_white_bold">Now Loading</div><p>';for(b=0;b<current_sw_dispnum;b++)0<resultPoEHubInfo[b].caminfolist.length&&0<GetSwConnectedCamNum(b)&&(a+="<p>",a+=DispPoEHubCameraSetting(b+1,resultPoEHubInfo[b].hubno,resultPoEHubInfo[b].hubname,resultPoEHubInfo[b].maxportnum),a+="<p>",a+="<br>");a+="</div>";$("#reccond_poe").css("display","none");$("#reccond_group_poe_swcamsetting").css("display","none");
$("#result_poe").replaceWith(a);SetBtnText("btn_output_text",s_btn_print);$('[id="output_text_guide"]').html(s_btn_print_desc);$("#txt_reccond_title_poehub2").text(s_reccond_title_poehub);$("#txt_reccond_title2").text(s_reccond_group_poe);SetBtnText("btn_back_main_from_result",s_btn_goback)}function CheckCompSWConfig(a){var b=!1;0<GetSwConnectedCamNum(a)&&(b=!0);return b}
function GetSwConnectedCamNum(a){var b=0;if(0<resultPoEHubInfo[a].caminfolist.length)for(var c=0;c<resultPoEHubInfo[a].caminfolist.length;c++)0<Number(resultPoEHubInfo[a].caminfolist[c].camno)&&(b+=1);return b}function GetSwConnectedCamPower(a){var b=0;if(0<resultPoEHubInfo[a].caminfolist.length)for(var c=0;c<resultPoEHubInfo[a].caminfolist.length;c++){var d=resultPoEHubInfo[a].caminfolist[c].psepower;0==isNaN(d)&&(d=String(d));b+=Number(d.substr(0,d.length-1))}return b}
function SetBtnText(a,b){document.getElementById(a).value=b}
function InitCamModelList(){for(var a=CamModelList.length,b=0;b<a;b++){var c=!1;s_app_dst_ja==s_app_dst?s_model_name==s_recresult_model_nx400?1==CamModelList[b].nx400jpn&&(c=!0):s_model_name==s_recresult_model_nx300?1==CamModelList[b].nx300jpn&&(c=!0):s_model_name==s_recresult_model_nx200?1==CamModelList[b].nx200jpn&&(c=!0):s_model_name==s_recresult_model_nx100?1==CamModelList[b].nx100jpn&&(c=!0):s_model_name==s_recresult_model_nu301?1==CamModelList[b].nx100jpn&&(c=!0):s_model_name==s_recresult_model_nu300?
1==CamModelList[b].nx100jpn&&(c=!0):s_model_name==s_recresult_model_nu201?1==CamModelList[b].nx100jpn&&(c=!0):s_model_name==s_recresult_model_nu101&&1==CamModelList[b].nx100jpn&&(c=!0):s_app_dst_ipro_ja==s_app_dst||s_app_dst_ipro_eu_ja==s_app_dst?s_model_name==s_recresult_model_nx400?(1==CamModelList[b].nx400jpn&&(c=!0),1==CamModelList[b].nx200iprojpn&&(c=!0),1==CamModelList[b].nx100iprojpn&&(c=!0)):s_model_name==s_recresult_model_nx300?1==CamModelList[b].nx300jpn&&(c=!0):s_model_name==s_recresult_model_nx200?
1==CamModelList[b].nx200iprojpn&&(c=!0):s_model_name==s_recresult_model_nx100&&1==CamModelList[b].nx100iprojpn&&(c=!0):s_model_name==s_recresult_model_nx400?1==CamModelList[b].nx400eng&&(c=!0):s_model_name==s_recresult_model_nx300?1==CamModelList[b].nx300eng&&(c=!0):s_model_name==s_recresult_model_nx200?1==CamModelList[b].nx200eng&&(c=!0):s_model_name==s_recresult_model_nx100?1==CamModelList[b].nx100eng&&(c=!0):s_model_name==s_recresult_model_nu301?1==CamModelList[b].nx100eng&&(c=!0):s_model_name==
s_recresult_model_nu300?1==CamModelList[b].nx100eng&&(c=!0):s_model_name==s_recresult_model_nu201?1==CamModelList[b].nx100eng&&(c=!0):s_model_name==s_recresult_model_nu101&&1==CamModelList[b].nx100eng&&(c=!0);0!=c&&$('[id^="reccond_detail_"][id$="_model"]').append($("<option>").val(CamModelList[b].id).text(CamModelList[b].name))}$('[id^="reccond_detail_"][id$="_model"]').each(function(){SelectCamModelList($(this)[0])})}
function CheckPRSeriesSelected(a){var b=!1;if(1<=a&&a<=CamSettingMaxNum)for(var c=0;c<CamSettingMaxNum;c++)for(var d=0;d<resultPoEHubInfo[c].maxportnum;d++)Number(resultPoEHubInfo[c].caminfolist[d].camno)==a&&(b=!0,prseries_selected_hubnum=c+1,prseries_selected_itemnum=d+1);return b}
function UpdatePoeCamModelList(){var a=CamPoeList.length,b=[],c=GetSwIdInCameraSetting(),d=GetSwNoInCameraSetting();var e=c!=SwitchPoeList.length-1?SwitchPoeList[c].hubportnum:cur_sw_portnum;for(var f=0;f<=e;f++){var g="reccond_poe_"+("00"+f).slice(-3)+"_model";g=document.getElementById(g);b.push($(g).val())}$('[id^="reccond_poe_"][id$="_model"]').children().remove();for(f=0;f<a;f++)1<=f&&f<=default_sw_maxnum?(g=CheckPRSeriesSelected(f),"--"!=CamPoeList[f].model&&0==SwitchPoeList[c].pw510&&(0!=g?
d==prseries_selected_hubnum&&(("00"+prseries_selected_itemnum).slice(-3),$('[id^="reccond_poe_'+("00"+prseries_selected_itemnum).slice(-3)+'_model"]').append($("<option>").val(CamPoeList[f].id).text(CamPoeList[f].model)),g='#reccond_poe_000_model option[value="'+String(f)+'"]',$(g).remove()):d!=f&&($('[id^="reccond_poe_"][id$="_model"]').append($("<option>").val(CamPoeList[f].id).text(CamPoeList[f].model)),g='#reccond_poe_000_model option[value="'+String(f)+'"]',$(g).remove()))):0!=SwitchPoeList[c].pw510?
(0==f||1==CamPoeList[f].pw510)&&$('[id^="reccond_poe_"][id$="_model"]').append($("<option>").val(CamPoeList[f].id).text(CamPoeList[f].model)):$('[id^="reccond_poe_"][id$="_model"]').append($("<option>").val(CamPoeList[f].id).text(CamPoeList[f].model));for(f=0;f<=e;f++)g="reccond_poe_"+("00"+f).slice(-3)+"_model",g=document.getElementById(g),$(g).val(b[f])}
function InitPoeCamModelList(){var a=CamPoeList.length,b=GetSwIdInCameraSetting(),c=GetSwNoInCameraSetting();$('[id^="reccond_poe_"][id$="_model"]').children().remove();for(var d=0;d<a;d++){var e=CheckPRSeriesSelected(d);1<=d&&d<=default_sw_maxnum?(e=CheckPRSeriesSelected(d),"--"!=CamPoeList[d].model&&(0!=e?c==d&&(("00"+prseries_selected_itemnum).slice(-3),$('[id^="reccond_poe_'+("00"+prseries_selected_itemnum).slice(-3)+'_model"]').append($("<option>").val(CamPoeList[d].id).text(CamPoeList[d].model)),
e='#reccond_poe_000_model option[value="'+String(d)+'"]',$(e).remove()):c!=d&&0==SwitchPoeList[b].pw510&&($('[id^="reccond_poe_"][id$="_model"]').append($("<option>").val(CamPoeList[d].id).text(CamPoeList[d].model)),e='#reccond_poe_000_model option[value="'+String(d)+'"]',$(e).remove()))):0!=SwitchPoeList[b].pw510?(0==d||1==CamPoeList[d].pw510)&&$('[id^="reccond_poe_"][id$="_model"]').append($("<option>").val(CamPoeList[d].id).text(CamPoeList[d].model)):$('[id^="reccond_poe_"][id$="_model"]').append($("<option>").val(CamPoeList[d].id).text(CamPoeList[d].model))}a=
PoePowerTypeList.length;$('[id^="reccond_poe_"][id$="_powertypesel"]').children().remove();for(d=0;d<a;d++)$('[id^="reccond_poe_"][id$="_powertypesel"]').append($("<option>").val(PoePowerTypeList[d].id).text(PoePowerTypeList[d].powertype));for(a=0;a<cur_sw_portnum;a++)InitPoePowerClass(a+1,0);$('[id^="reccond_poe_"][id$="_model"]').each(function(){SelectPoeCamModelList($(this)[0],!0)});$('[id^="reccond_poe_"][id$="_externalpower"]').each(function(){$(this).prop("disabled",!0)});$('[id^="reccond_poesw_"][id$="_customerdesc"]').each(function(){var f=
$($(this)[0]).attr("id").split("_");f="reccond_poesw_"+("00"+f[f.length-2]).slice(-3)+"_model";0==document.getElementById(f).selectedIndex?$(this).prop("disabled",!0):$(this).prop("disabled",!1)});$('[id^="reccond_poesw_"][id$="_modeldetail"]').each(function(){$(this).prop("disabled",!0)});$('[id^="reccond_poe_"][id$="_cablelength"]').each(function(){$(this).prop("disabled",!0)});null!=UICamObjectTable[0][UICamObjectId.poe_cablelength]&&UICamObjectTable[0][UICamObjectId.poe_cablelength].prop("disabled",
!1)}
function InitPoePreCompCamModelList(){var a=CamPoeList.length;$('[id^="precomp_poe_"][id$="_model"]').children().remove();for(var b=0;b<a;b++)1<=b&&b<=default_sw_maxnum||$('[id^="precomp_poe_"][id$="_model"]').append($("<option>").val(CamPoeList[b].id).text(CamPoeList[b].model));a=PoePowerTypeList.length;$('[id^="precomp_poe_"][id$="_powertypesel"]').children().remove();for(b=0;b<a;b++)$('[id^="precomp_poe_"][id$="_powertypesel"]').append($("<option>").val(PoePowerTypeList[b].id).text(PoePowerTypeList[b].powertype));for(a=
0;a<cur_sw_portnum;a++)InitPoePowerClassPreComp(a+1,0);$('[id^="reccond_poe_"][id$="_model"]').each(function(){SelectPoeCamModelList($(this)[0],!0)});$('[id^="reccond_poe_"][id$="_externalpower"]').each(function(){$(this).prop("disabled",!0)});$('[id^="reccond_poesw_"][id$="_customerdesc"]').each(function(){var c=$($(this)[0]).attr("id").split("_");c="reccond_poesw_"+("00"+c[c.length-2]).slice(-3)+"_model";0==document.getElementById(c).selectedIndex?$(this).prop("disabled",!0):$(this).prop("disabled",
!1)});$('[id^="reccond_poesw_"][id$="_modeldetail"]').each(function(){$(this).prop("disabled",!0)});$('[id^="reccond_poe_"][id$="_cablelength"]').each(function(){$(this).prop("disabled",!0)})}
function InitPoePowerClass(a,b){a="#reccond_poe_"+("00"+String(a)).slice(-3)+"_powerclasssel";listNum=PoePowerClassList.length;$(a).children().remove();for(var c=0;c<listNum;c++)0!=c&&PoePowerClassList[c].powertype!=b||$(a).append($("<option>").val(PoePowerClassList[c].id).text(PoePowerClassList[c].powerclass))}
function InitPoePowerClassPreComp(a,b){a="#precomp_poe_"+("00"+String(a)).slice(-3)+"_powerclasssel";listNum=PoePowerClassList.length;$(a).children().remove();for(var c=0;c<listNum;c++)0!=c&&PoePowerClassList[c].powertype!=b||$(a).append($("<option>").val(PoePowerClassList[c].id).text(PoePowerClassList[c].powerclass))}
function InitPoeSwitchModelList(){for(var a=0;a<SwitchPoeList.length;a++)$('[id^="reccond_poesw_"][id$="_model"]').append($("<option>").val(SwitchPoeList[a].id).text(SwitchPoeList[a].model));for(a=0;a<PoePowerTypeList.length;a++)$('[id^="reccond_poesw_"][id$="_powertypesel"]').append($("<option>").val(PoePowerTypeList[a].id).text(PoePowerTypeList[a].powertype))}
function InitDisplayRecAdvance(){var a='<div class="reccond_rowstep">';if(s_app_dst_ipro_ja==s_app_dst||s_app_dst_ipro_eu_ja==s_app_dst)a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_detail_no">'+s_reccond_advance_no+"</div>",a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_advance_num">'+s_reccond_advance_num+"</div>",a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_advance_model">'+s_reccond_advance_model+
"</div>",s_model_name==s_recresult_model_nx400?a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_advance_smartcoding reccond_smartcoding_block tooltipitem_style" data-tooltip-content="#tooltip_smartcoding_2">'+s_reccond_advance_smartcoding+"</div>":s_model_name==s_recresult_model_nx200||s_model_name==s_recresult_model_nx100?a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_advance_smartcoding reccond_smartcoding_block tooltipitem_style" data-tooltip-content="#tooltip_smartcoding_2">'+
s_reccond_advance_smartcoding+"</div>":s_model_name==s_recresult_model_nx300&&(a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_advance_smartcoding reccond_smartcoding_block tooltipitem_style" data-tooltip-content="#tooltip_smartcoding_2">'+s_reccond_advance_smartcoding+"</div>"),a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_advance_connect reccond_secure_block tooltipitem_style" data-tooltip-content="#tooltip_connect">'+s_reccond_advance_connect+
"</div>",a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_advance_bitrate tooltipitem_style" data-tooltip-content="#tooltip_videobitrate">'+s_reccond_advance_bitrate+"</div>",s_app_dst_ipro_eu_ja!=s_app_dst&&(a+='<div class="reccond_header_style_ipro reccond_column_style"></div>'),a+='</div><div class="rowspace1_style"></div>';else{a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_detail_no">'+s_reccond_advance_no+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_advance_num">'+
s_reccond_advance_num+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_advance_model">'+s_reccond_advance_model+"</div>";if(s_model_name==s_recresult_model_nx400)a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_advance_smartcoding reccond_smartcoding_block tooltipitem_style" data-tooltip-content="#tooltip_smartcoding_2">'+s_reccond_advance_smartcoding+"</div>";else if(s_model_name==s_recresult_model_nx200||s_model_name==s_recresult_model_nx100)a+=
'<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_advance_smartcoding reccond_smartcoding_block tooltipitem_style" data-tooltip-content="#tooltip_smartcoding_2">'+s_reccond_advance_smartcoding+"</div>";else if(s_model_name==s_recresult_model_nx300)a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_advance_smartcoding reccond_smartcoding_block tooltipitem_style" data-tooltip-content="#tooltip_smartcoding_2">'+s_reccond_advance_smartcoding+"</div>";
else if(s_model_name==s_recresult_model_nu301||s_model_name==s_recresult_model_nu300||s_model_name==s_recresult_model_nu201||s_model_name==s_recresult_model_nu101)a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_advance_smartcoding reccond_smartcoding_block tooltipitem_style" data-tooltip-content="#tooltip_smartcoding_2">'+s_reccond_advance_smartcoding+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_advance_connect reccond_secure_block tooltipitem_style" data-tooltip-content="#tooltip_connect">'+
s_reccond_advance_connect+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_advance_bitrate tooltipitem_style" data-tooltip-content="#tooltip_videobitrate">'+s_reccond_advance_bitrate+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style"></div></div><div class="rowspace1_style"></div>'}for(var b=0;b<=CamSettingMaxNum;b++){var c=("00"+b).slice(-3);a+='<div class="reccond_rowstep">';a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_detail_no">';
0<b&&(a+=c);a+="</div>";a+='<div id="reccond_advance_'+c+'_num" class="reccond_data_style reccond_column_style reccond_txt_style_advance_num"></div>';a+='<div id="reccond_advance_'+c+'_model" class="reccond_data_style reccond_column_style reccond_txt_style_advance_model"></div>';a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_advance_smartcoding reccond_smartcoding_block">';a+='<select id="reccond_advance_'+c+'_smartcoding" class="reccond_input_style_advance_smartcoding"></select>';
a+="</div>";a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_advance_connect reccond_secure_block">';a+='<select id="reccond_advance_'+c+'_connect" class="reccond_input_style_advance_connect"></select>';a+="</div>";a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_advance_bitrate">';0==b?(a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_advance_bitrateset">',a=s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=
s_app_dst?a+('<input id="reccond_advance_checkbitrate" type="checkbox" disabled="disabled">'+s_reccond_advance_chgbitrate):a+'<input id="reccond_advance_checkbitrate" type="checkbox" disabled="disabled" style="visibility:hidden">',a+="</div>"):0<b&&(a+='<input id="reccond_advance_'+c+'_bitrate" class="reccond_input_style_advance_bitrate"  maxlength="5" readonly>',a+=" "+s_reccond_advance_bitrate_unit);a+="</div>";s_app_dst_ipro_eu_ja!=s_app_dst&&(a+='<div class="reccond_data_style reccond_column_style"></div>');
a+="</div>";"undefined"!==typeof DspDevelopmentInfo&&0<b&&(a+='<div id="reccond_advance_'+c+'_develop_bitrate" class="reccond_rowstep">',a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_advance_develop_bitrate">',a+="<div>"+s_reccond_advance_develop_bitrate_rec,a+=s_reccond_advance_develop_bitrate_video,a+='<input id="reccond_advance_'+c+'_develop_bitrate_rec_video" type="text" class="reccond_input_style_advance_develop_bitrate">',a+=" + "+s_reccond_advance_develop_bitrate_audio,
a+='<input id="reccond_advance_'+c+'_develop_bitrate_rec_audio" type="text" class="reccond_input_style_advance_develop_bitrate">',a+=" + "+s_reccond_advance_develop_bitrate_vmdinfo,a+='<input id="reccond_advance_'+c+'_develop_bitrate_rec_vmdinfo" type="text" class="reccond_input_style_advance_develop_bitrate">',a+=" = ",a+='<input id="reccond_advance_'+c+'_develop_bitrate_rec_total" type="text" class="reccond_input_style_advance_develop_bitrate">',a+="</div>",a+="<div>"+s_reccond_advance_develop_bitrate_net,
a+=s_reccond_advance_develop_bitrate_video,a+='<input id="reccond_advance_'+c+'_develop_bitrate_net_video" type="text" class="reccond_input_style_advance_develop_bitrate">',a+=" + "+s_reccond_advance_develop_bitrate_audio,a+='<input id="reccond_advance_'+c+'_develop_bitrate_net_audio" type="text" class="reccond_input_style_advance_develop_bitrate">',a+=" + "+s_reccond_advance_develop_bitrate_vmdinfo,a+='<input id="reccond_advance_'+c+'_develop_bitrate_net_vmdinfo" type="text" class="reccond_input_style_advance_develop_bitrate">',
a+=" = ",a+='<input id="reccond_advance_'+c+'_develop_bitrate_net_total" type="text" class="reccond_input_style_advance_develop_bitrate">',a+="</div>",a+="</div>",a+="</div>");a+='<div class="rowspace1_style"></div>';SelectCameraInfo.push(new SelectCameraInfoType(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0))}$("#reccond_advance").append(a)}
function InitDisplayRecAIPrivacy(){var a='<div class="reccond_rowstep"><div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_detail_no">'+(s_reccond_aiprivacy_no+"</div>");a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_advance_num">'+s_reccond_advance_num+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_aiprivacy_model">'+s_reccond_aiprivacy_model+"</div>";a+='<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_aiprivacy_onoff tooltipitem_style" data-tooltip-content="#tooltip_aiprivacy_onoff">'+
s_reccond_aiprivacy_onoff+"</div>";a+='<div class="reccond_data_style_ipro reccond_column_style reccond_txt_style_recconfig_reserve1"></div></div><div class="rowspace1_style"></div>';for(var b=0;b<=CamSettingMaxNum;b++){var c=("00"+b).slice(-3);a+='<div class="reccond_rowstep">';a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_detail_no">';0<b&&(a+=c);a+="</div>";a+='<div id="reccond_aiprivacy_'+c+'_num" class="reccond_data_style reccond_column_style reccond_txt_style_advance_num"></div>';
a+='<div id="reccond_aiprivacy_'+c+'_model" class="reccond_data_style reccond_column_style reccond_txt_style_aiprivacy_model"></div>';a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_aiprivacy_onoff">';a+='<select id="reccond_aiprivacy_'+c+'_onoff" class="reccond_input_style_aiprivacy_onoff"></select>';a+="</div>";a+='<div class="reccond_column_style">';a+='<div class="reccond_data_style">';a+="</div>";a+="</div>";a+="</div>";a+='<div class="rowspace1_style"></div>';SelectCameraInfoAIPrivacy.push(new SelectCameraInfoType(0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0))}$("#reccond_aiprivacy").append(a)}
function InitDisplayRecorderConfig(){var a='<div class="reccond_rowstep">';a=s_app_dst_ipro_ja==s_app_dst||s_app_dst_ipro_eu_ja==s_app_dst?a+('<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_recconfig_hddmode">'+s_reccond_recconfig_hddmode+"</div>"):s_app_dst_ch==s_app_dst?a+('<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_recconfig_hddmode">'+s_reccond_recconfig_hddmode+"</div>"):a+('<div class="reccond_header_style_ipro reccond_column_style reccond_txt_style_recconfig_hddmode tooltipitem_style" data-tooltip-content="#tooltip_hddmode">'+
s_reccond_recconfig_hddmode+"</div>");a+='<div class="reccond_data_style reccond_column_style reccond_txt_style_recconfig_reserve1"></div></div><div class="reccond_rowstep"><div class="reccond_column_style reccond_txt_style_recconfig_hddmode"><div class="reccond_data_style"><select id="reccond_recconfig_hddmode" class="reccond_input_style_recconfig_hddmode"></select></div></div><div class="reccond_column_style"><div class="reccond_data_style"></div></div></div>';$("#reccond_recconfig").append(a);
InitUIRecObjectTable();InitDisplaySelectBox(UIRecObjectTable[UIRecObjectId.hddmode],HddConfigModeList,!1);InitDisplaySelectBox(UIRecObjectTable[UIRecObjectId.substream],SubStreamList2,!1);InitDisplaySelectBox(UIRecObjectTable[UIRecObjectId.highresomode],HighResoModeList,!1)}
function SetDefaultValueAllItem(){for(var a=0;a<ScheduleMaxNum;a++){for(var b=ScheduleRecWeekId.mon;b<=ScheduleRecWeekId.sun;b++)UISchObjectTable[a][UISchObjectId.week][ScheduleRecWeekList[b].id][ScheduleRecTimeTableId.t1].prop("checked",!0),UISchObjectTable[a][UISchObjectId.week][ScheduleRecWeekList[b].id][ScheduleRecTimeTableId.t1].trigger("change");b=UISchObjectTable[a][UISchObjectId.timetable].length;for(var c=0;c<b;c++)if(ScheduleRecTimeTableId.t0!=ScheduleRecTimeTableList[c].id)for(var d=ScheduleRecTimeTableList[c].id-
1,e=0;e<TimeTableItemMaxNum;e++)UISchObjectTable[a][UISchObjectId.timetable][d][e][UISchTimeObjectId.shour].val(0),UISchObjectTable[a][UISchObjectId.timetable][d][e][UISchTimeObjectId.shour].trigger("change"),UISchObjectTable[a][UISchObjectId.timetable][d][e][UISchTimeObjectId.sminute].val(0),UISchObjectTable[a][UISchObjectId.timetable][d][e][UISchTimeObjectId.sminute].trigger("change"),UISchObjectTable[a][UISchObjectId.timetable][d][e][UISchTimeObjectId.ehour].val(0),UISchObjectTable[a][UISchObjectId.timetable][d][e][UISchTimeObjectId.ehour].trigger("change"),
UISchObjectTable[a][UISchObjectId.timetable][d][e][UISchTimeObjectId.eminute].val(0),UISchObjectTable[a][UISchObjectId.timetable][d][e][UISchTimeObjectId.eminute].trigger("change")}for(a=1;a<=CamSettingMaxNum;a++)UICamObjectTable[a][UICamObjectId.detail_num].val(""),UICamObjectTable[a][UICamObjectId.detail_num].trigger("keyup");UICamObjectTable[0][UICamObjectId.detail_model].val(0);UICamObjectTable[0][UICamObjectId.detail_model].trigger("change");UICamObjectTable[0][UICamObjectId.detail_comp].val(CamCompId.None);
UICamObjectTable[0][UICamObjectId.detail_comp].trigger("change");UICamObjectTable[0][UICamObjectId.detail_reso].val(CamResoId.r0640_0480);UICamObjectTable[0][UICamObjectId.detail_reso].trigger("change");UICamObjectTable[0][UICamObjectId.detail_fps].val(CamFpsId.f10);UICamObjectTable[0][UICamObjectId.detail_fps].trigger("change");UICamObjectTable[0][UICamObjectId.detail_qual].val(CamQualId.FQ);UICamObjectTable[0][UICamObjectId.detail_qual].trigger("change");UICamObjectTable[0][UICamObjectId.detail_audio].val(CamAudioId.Off);
UICamObjectTable[0][UICamObjectId.detail_audio].trigger("change");UICamObjectTable[0][UICamObjectId.detail_schedule].val(1);UICamObjectTable[0][UICamObjectId.detail_schedule].trigger("change");UICamObjectTable[0][UICamObjectId.advance_smartcoding].val(CamSmartCodingList.On);UICamObjectTable[0][UICamObjectId.advance_smartcoding].trigger("change");UICamObjectTable[0][UICamObjectId.advance_connect].val(CamConnectId.HTTP);UICamObjectTable[0][UICamObjectId.advance_connect].trigger("change");s_app_dst_ipro_ja!=
s_app_dst&&s_app_dst_ipro_eu_ja!=s_app_dst&&(s_app_dst_ja==s_app_dst?(UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa].val(HddCapaId.c4000GB),UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu201].val(HddCapaId.c4000GB),UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu300].val(HddCapaId.c4000GB),UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu301].val(HddCapaId.c4000GB)):(UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa].val(HddCapaId.c8000GB),UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu201].val(HddCapaId.c8000GB),
UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu300].val(HddCapaId.c8000GB),UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu301].val(HddCapaId.c8000GB)))}
function GetHourOptionStrings(){return'<option value="0">00</option><option value="1">01</option><option value="2">02</option><option value="3">03</option><option value="4">04</option><option value="5">05</option><option value="6">06</option><option value="7">07</option><option value="8">08</option><option value="9">09</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option>'}
function GetMinuteOptionStrings(){return'<option value="0">00</option><option value="15">15</option><option value="30">30</option><option value="45">45</option>'};function InitDisplayRecResult(){InitDisplayRecResultDetail();InitDisplayRecResultNX();$("#reccond_resulttab").tabs({active:0})}
function InitDisplayRecResultCommon(){$("#txt_recresult_title").text(s_recresult_title);$("#recresult_message").text("");var a='<div id="recresultcommonblock" class="recresult_rowstep"><div class="recresult_column_style recresult_txt_style_bitrate">';a=s_app_dst_ipro_ja==s_app_dst||s_app_dst_ipro_eu_ja==s_app_dst?a+('<div class="recresult_header_style_ipro tooltipitem_style" data-tooltip-content="#tooltip_bitrate_net">'+s_recresult_bitrate+"</div>"):a+('<div class="recresult_header_style tooltipitem_style" data-tooltip-content="#tooltip_bitrate_net">'+
s_recresult_bitrate+"</div>");a=a+'<div class="recresult_data_style"><input id="recresult_bitrate_net" type="text" class="recresult_output_style_bitrate" readonly><label>'+(s_recresult_bitrate_unit+"</label>");a+='</div></div><div id="recresult_datasizeblock" maxrecdaysblock" class="recresult_column_style recresult_txt_style_datasize">';a=s_app_dst_ipro_ja==s_app_dst||s_app_dst_ipro_eu_ja==s_app_dst?a+('<div class="recresult_header_style_ipro tooltipitem_style" data-tooltip-content="#tooltip_datasize">'+
s_recresult_datasize+"</div>"):a+('<div class="recresult_header_style tooltipitem_style" data-tooltip-content="#tooltip_datasize">'+s_recresult_datasize+"</div>");a=a+'<div class="recresult_data_style"><input id="recresult_datasize" type="text" class="recresult_output_style_datasize" readonly><label>'+(s_recresult_datasize_unit+"</label>");a+='</div></div><div class="recresult_column_style">';a=s_app_dst_ipro_ja==s_app_dst||s_app_dst_ipro_eu_ja==s_app_dst?a+'<div class="recresult_header_style_ipro"></div>':
a+'<div class="recresult_header_style"></div>';a+='<div class="recresult_data_style"></div></div></div></div><div class="rowspace3_style"></div>';$("#recresult_contents").append(a)}function InitDisplayRecResultDetail(){var a='<label for="showdetail_button"><input type="checkbox" id="showdetail_button" onclick="SetResultDetailNx400(this.checked)">'+s_showdetail_label;a+="</label>";$("#showdetail_area").append(a)}
function InitDisplayRecResultNX(){if(s_app_dst_ch==s_app_dst)for(var a=1;2>=a;a++){var b=a;var c;1==a?c=s_recresult_model_nx400:s_app_dst_ja==s_app_dst?b=-1:c=s_recresult_model_vms;if(0<b){$("#txt_navigation_comment5").html(s_comment5);b="reccond_resulttab_"+c;$("#reccond_resulttab_no").append('<li><b><a href="#'+b+'">'+c+"</a></b></li>");var d="";d+='<div id="'+b+'">';c==s_recresult_model_nx400?InitDisplayRecResultNx400(d):c==s_recresult_model_vms&&InitDisplayRecResultVms(d);ChangeSettingRecodingGroup()}}else for(a=
1;5>=a;a++)b=a,1==a?c=s_recresult_model_nu301:2==a?c=s_recresult_model_nu300:3==a?c=s_recresult_model_nu201:4==a?c=s_recresult_model_nu101:s_app_dst_ja==s_app_dst||s_app_dst_ipro_ja==s_app_dst||s_app_dst_ipro_eu_ja==s_app_dst?b=-1:c=s_recresult_model_vms,0<b&&($("#txt_navigation_comment5").html(s_comment5),b="reccond_resulttab_"+c,s_app_dst_ipro_eu_ja!=s_app_dst&&$("#reccond_resulttab_no").append('<li><b><a href="#'+b+'">'+c+"</a></b></li>"),d="",d+='<div id="'+b+'">',c==s_recresult_model_nx400?InitDisplayRecResultNx400(d):
c==s_recresult_model_nx300?InitDisplayRecResultNx300(d):c==s_recresult_model_nx200?InitDisplayRecResultNx200(d):c==s_recresult_model_nx100?InitDisplayRecResultNx100(d,"WJ-NX100"):c==s_recresult_model_nu301?InitDisplayRecResultNx100(d,"WJ-NU301"):c==s_recresult_model_nu300?InitDisplayRecResultNx100(d,"WJ-NU300"):c==s_recresult_model_nu201?InitDisplayRecResultNx100(d,"WJ-NU201"):c==s_recresult_model_nu101?InitDisplayRecResultNx100(d,"WJ-NU101"):c==s_recresult_model_eu100?InitDisplayRecResultNx100(d,
"WJ-EU100"):c==s_recresult_model_vms&&InitDisplayRecResultVms(d),ChangeSettingRecodingGroup())};function InitDisplayTextOut(){var a='<div class="textout_rowstep"><div class="textout_rowstep">';a=s_app_dst_ja==s_app_dst||s_app_dst_ipro_ja==s_app_dst||s_app_dst_ipro_eu_ja==s_app_dst?a+'<div class="textout_column_style textout_column_button_ja_style">':s_app_dst_en_p==s_app_dst||s_app_dst_en_g==s_app_dst?a+'<div class="textout_column_style textout_column_button_en_style">':s_app_dst_sp==s_app_dst?a+'<div class="textout_column_style textout_column_button_sp_style">':a+'<div class="textout_column_style textout_column_button_style">';
a+='<input type="button" id="textout_label" value="'+s_textout_label+'" onclick="DisplayTextOut()"> ';a=a+'<input id="textout_format_html" type="radio" name="textout_format" value="0" checked="checked"><label for ="textout_format_html">'+(s_textout_format_html+"</label>");a+='<input id="textout_format_csv" type="radio" name="textout_format" value="'+TextOutFormatId.Html+'">';a+='<label for ="textout_format_csv">'+s_textout_format_csv+"</label>";a=a+'&nbsp;<label><input id="textout_format_model" type="checkbox" name="textout_format" value="0" checked="checked"><label for ="textout_format_model">'+
(s_textout_format_model+"</label>");a=a+'</div><div class="textout_column_style">'+s_textout_comment;a+='</div></div><div class="rowspace2_style"></div><div class="textout_rowstep">';a=s_app_dst_ja==s_app_dst||s_app_dst_ipro_ja==s_app_dst||s_app_dst_ipro_eu_ja==s_app_dst?a+'<div class="textout_column_style textout_column_button_ja_style">':s_app_dst_en_p==s_app_dst||s_app_dst_en_g==s_app_dst?a+'<div class="textout_column_style textout_column_button_en_style">':s_app_dst_sp==s_app_dst?a+'<div class="textout_column_style textout_column_button_sp_style">':
a+'<div class="textout_column_style textout_column_button_style">';a+='<input type="button" id="textin_label" value="'+s_textin_label+'" onclick="DisplayTextIn()"> ';a=a+'</div><div class="textout_column_style">'+s_textin_comment;a+="</div></div></div></div>";$("#textout_area").append(a);a='<div id="textinput_dialog" title="'+s_textin_label+'">';a+="<label>"+s_textin_dlg_comment+"</label>";a+='<textarea id="textinput_area" cols="80" rows="10" maxlength="20000"></textarea></div>';$("#dialog_area").append(a);
$("#textinput_dialog").dialog({autoOpen:!1,width:540,modal:!0,buttons:[{text:s_textin_dlg_ok,click:function(){ImportTextIn($("#textinput_area").val());$(this).dialog("close")}},{text:s_textin_dlg_cancel,click:function(){$(this).dialog("close")}}]})};function SearchOptionValue(a,b){var c=!1;a=$(a).children();for(var d=a.length,e=0;e<d;e++)if(Number(a[e].value)==b){c=!0;break}return c}function CheckInputNumberOnly(a){if(46==a||37==a||39==a||96<=a&105>=a)return!0;a=String.fromCharCode(a);return 0>"0123456789\b\r\t".indexOf(a,0)?!1:!0}function ConverZenNum2HanNum(a){return a.replace(/[\uff10-\uff19]/g,function(b){return String.fromCharCode(b.charCodeAt(0)-65248)})};function SelectScheduleWeek(a){var b=$(a).attr("name").split("_");SelectScheduleWeekInfo[Number(b[2])-1][Number(b[4])]=Number($(a).val())}
function SelectScheduleTimeTable(a){var b=$(a).attr("id").split("_");a=b[2];var c=Number(a)-1;b=b[5];for(var d=Number(b)-1,e=Array(1440),f=0;1440>f;f++)e[f]=!1;for(var g=!1,h=1;h<=TimeTableItemMaxNum;h++){var k=h-1;f=60*Number(UISchObjectTable[c][UISchObjectId.timetable][d][k][UISchTimeObjectId.shour].val())+Number(UISchObjectTable[c][UISchObjectId.timetable][d][k][UISchTimeObjectId.sminute].val());k=60*Number(UISchObjectTable[c][UISchObjectId.timetable][d][k][UISchTimeObjectId.ehour].val())+Number(UISchObjectTable[c][UISchObjectId.timetable][d][k][UISchTimeObjectId.eminute].val());
if(f<k)for(;f<k;f++)e[f]=!0;else if(f!=k){g=!0;break}}h=0;if(0==g)for(f=0;1440>f;f++)1==e[f]&&h++;else h=-1;SelectScheduleTimeTableInfo[c][d]=h;"undefined"!==typeof DspDevelopmentInfo&&$("#reccond_schedule_"+a+"_develop_rectime_table_"+b+"_totaltime").val(h)}
function checkEnableAIPrivacy(a){a=$(a).attr("id").split("_");a=a[a.length-2];var b=UICamObjectTable[Number(a)][UICamObjectId.detail_model].val();if(1>b||CamTypeAiProcessorList[CamModelList[b].typeid]==CamAiProcessorId.Off)return switchAIPrivacy(a,!1),!1;b=UICamObjectTable[Number(a)][UICamObjectId.detail_comp].val();if(b==CamCompId.None||b==CamCompId.MJPEG||b!=CamCompId.H265_1&&b!=CamCompId.H264_1)return switchAIPrivacy(a,!1),!1;switchAIPrivacy(a,!0);return!0}
function switchAIPrivacy(a,b){if(!(1>Number(a))){var c=UICamObjectTable[Number(a)][UICamObjectId.aiprivacy_onoff];b?c.prop("disabled",!1):(c.val(CamAiProcessorId.Off),c.prop("disabled",!0),SelectCameraInfoAIPrivacy[Number(a)-1].num=0)}}function getAIPrivacyStatus(a){1>UICamObjectTable[Number(a)][UICamObjectId.detail_model].val()?a=0:1>Number(a)?a=0:(a=UICamObjectTable[Number(a)][UICamObjectId.aiprivacy_onoff],a=a.prop("disabled")?0:Number(a.val()));return a}
function getAACLCStatus(a){var b=0,c=UICamObjectTable[Number(a)][UICamObjectId.detail_model].val();1>c?b=0:1>Number(a)?b=0:(a=UICamObjectTable[Number(a)][UICamObjectId.detail_audio],a.prop("disabled")?b=0:Number(a.val())==CamAudioId.AAC&&(b=CamTypeListLimitAACLC[CamModelList[c].typeid]?1:0));return b}
function InputCamNum(a){var b=$(a).attr("id").split("_");b=b[b.length-2];UICamObjectTable[Number(b)][UICamObjectId.advance_num].text($(a).val());UICamObjectTable[Number(b)][UICamObjectId.aiprivacy_num].text($(a).val());0<Number(b)&&(SelectCameraInfo[Number(b)-1].num=Number($(a).val()),UICamObjectTable[Number(b)][UICamObjectId.aiprivacy_onoff].val()==CamAiProcessorId.On&&(SelectCameraInfoAIPrivacy[Number(b)-1].num=SelectCameraInfo[Number(b)-1].num));return!0}
function InputCamBitrate(a){var b=$(a).attr("id").split("_");b=b[b.length-2];if(0==UICamObjectTable[Number(b)][UICamObjectId.detail_model].val()||1!=UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked)return!1;0<Number(b)&&(SelectCameraInfo[Number(b)-1].bitrate=Number($(a).val()));0<=SelectCameraInfo[Number(b)-1].bitrate?(UICamObjectTable[Number(b)][UICamObjectId.detail_model].prop("disabled",!0),UICamObjectTable[Number(b)][UICamObjectId.detail_comp].prop("disabled",!0),UICamObjectTable[Number(b)][UICamObjectId.detail_reso].prop("disabled",
!0),UICamObjectTable[Number(b)][UICamObjectId.detail_fps].prop("disabled",!0),UICamObjectTable[Number(b)][UICamObjectId.detail_qual].prop("disabled",!0),UICamObjectTable[Number(b)][UICamObjectId.advance_smartcoding].prop("disabled",!0),UICamObjectTable[Number(b)][UICamObjectId.advance_chgbitrate][0].val=-1):(UICamObjectTable[Number(b)][UICamObjectId.detail_model].prop("disabled",!1),UICamObjectTable[Number(b)][UICamObjectId.detail_comp].prop("disabled",!1),UICamObjectTable[Number(b)][UICamObjectId.detail_reso].prop("disabled",
!1),UICamObjectTable[Number(b)][UICamObjectId.detail_fps].prop("disabled",!1),UICamObjectTable[Number(b)][UICamObjectId.detail_qual].prop("disabled",!1),UICamObjectTable[Number(b)][UICamObjectId.advance_smartcoding].prop("disabled",!1),UICamObjectTable[Number(b)][UICamObjectId.advance_chgbitrate][0].val=0)}
function CheckSettingResultTab(){return s_model_name==s_recresult_model_nx400||s_model_name==s_recresult_model_nx300||s_model_name==s_recresult_model_nx200||s_model_name==s_recresult_model_nx100||s_model_name==s_recresult_model_nu301||s_model_name==s_recresult_model_nu300||s_model_name==s_recresult_model_nu201||s_model_name==s_recresult_model_nu101||s_model_name==s_recresult_model_vms?!0:!1}
function ChangeAllSettingRecGroup(){if(s_model_name==s_recresult_model_vms)return!1;ChangeSettingRecodingGroup();ChangeRecGroupResultNX200()}
function ChangeSettingRecodingGroup(){var a=0,b=0;if(s_model_name==s_recresult_model_vms)return!1;if(s_model_name==s_recresult_model_nx400)var c=UIOtherObjectTable_NX400;else s_model_name==s_recresult_model_nx300?c=UIOtherObjectTable_NX300:s_model_name==s_recresult_model_nx200?c=UIOtherObjectTable_NX200:s_model_name==s_recresult_model_nx100?c=UIOtherObjectTable_NX100:s_model_name==s_recresult_model_nu301?c=UIOtherObjectTable_NX100:s_model_name==s_recresult_model_nu300?c=UIOtherObjectTable_NX100:s_model_name==
s_recresult_model_nu201?c=UIOtherObjectTable_NX100:s_model_name==s_recresult_model_nu101&&(c=UIOtherObjectTable_NX100);for(var d=1;d<=CamSettingMaxNum;d++){var e=UICamObjectTable[Number(d)][UICamObjectId.advance_recgroup];UICamObjectTable[Number(d)][UICamObjectId.detail_model].val();var f=UICamObjectTable[Number(d)][UICamObjectId.detail_num].val();1==$(e).val()?("none"!=$(c[UIOtherObjectId.recgroup1]).attr("display")&&$(c[UIOtherObjectId.recgroup1]).attr("disabled",!1),0==$(c[UIOtherObjectId.recgroup1]).val()&&
$(c[UIOtherObjectId.recdays1]).attr("disabled",!1),a=1):2==$(e).val()&&0<Number(f)&&($(c[UIOtherObjectId.recgroup2]).attr("disabled",!1),0==$(c[UIOtherObjectId.recgroup2]).val()&&$(c[UIOtherObjectId.recdays2]).attr("disabled",!1),b=1)}for(d=1;d<=CamSettingMaxNum;d++)setObj_onoff=UICamObjectTable[Number(d)][UICamObjectId.aiprivacy_onoff],$(setObj_onoff).val()!=CamAiProcessorId.Off&&(e=UICamObjectTable[Number(d)][UICamObjectId.aiprivacy_recgroup],UICamObjectTable[Number(d)][UICamObjectId.detail_model].val(),
f=UICamObjectTable[Number(d)][UICamObjectId.detail_num].val(),1==$(e).val()?("none"!=$(c[UIOtherObjectId.recgroup1]).attr("display")&&$(c[UIOtherObjectId.recgroup1]).attr("disabled",!1),0==$(c[UIOtherObjectId.recgroup1]).val()&&$(c[UIOtherObjectId.recdays1]).attr("disabled",!1),a=1):2==$(e).val()&&0<Number(f)&&($(c[UIOtherObjectId.recgroup2]).attr("disabled",!1),0==$(c[UIOtherObjectId.recgroup2]).val()&&$(c[UIOtherObjectId.recdays2]).attr("disabled",!1),b=1));0==b?s_model_name==s_recresult_model_nx400?
($(UIOtherObjectTable_NX400[UIOtherObjectId.recgroup1]).val(RecGroupId.d000),s_app_dst_ipro_ja!=s_app_dst&&(SelectRecGroupList($(UIOtherObjectTable_NX400[UIOtherObjectId.recgroup1])),$("#reccond_estcondition_recgroup_1_nx400").css("display","none"),$("#reccond_estcondition_header_recdays_group2_nx400").css("display","none"),$("#recconf_estcondition_recdaysblock2_nx400").css("display","none"))):s_model_name==s_recresult_model_nx300&&($(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup1]).val(RecGroupId.d000),
SelectRecGroupList($(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup1])),$("#reccond_estcondition_recgroup_1_nx300").css("display","none"),$("#reccond_estcondition_header_recdays_group2_nx300").css("display","none"),$("#recconf_estcondition_recdaysblock2_nx300").css("display","none")):s_model_name==s_recresult_model_nx400?($("#reccond_estcondition_recgroup_1_nx400").css("display","inline"),$("#reccond_estcondition_header_recdays_group2_nx400").css("display","table-cell"),$("#recconf_estcondition_recdaysblock2_nx400").css("display",
"table-cell")):s_model_name==s_recresult_model_nx300&&($("#reccond_estcondition_recgroup_1_nx300").css("display","inline"),$("#reccond_estcondition_header_recdays_group2_nx300").css("display","table-cell"),$("#recconf_estcondition_recdaysblock2_nx300").css("display","table-cell"));if(s_model_name==s_recresult_model_nx200||s_model_name==s_recresult_model_nx100)return!1;if(s_model_name==s_recresult_model_nx300){if(SystemConfigId.MainUnit==Number(c[UIOtherObjectId.systemconfig].val()))return!1}else if(s_model_name==
s_recresult_model_nx400){if(s_app_dst_ipro_ja!=s_app_dst&&RecNumId.Auto==Number(c[UIOtherObjectId.recnum].val()))return!1}else return!1;0==a&&($(c[UIOtherObjectId.recgroup1]).attr("disabled",!0),$(c[UIOtherObjectId.recdays1]).attr("disabled",!0));0==b&&($(c[UIOtherObjectId.recgroup2]).attr("disabled",!0),$(c[UIOtherObjectId.recdays2]).attr("disabled",!0));return!0}
function GetSettingRecGroup(){var a=0,b=0;if(s_model_name==s_recresult_model_vms)return!1;for(var c=1;c<=ScheduleMaxNum;c++){var d=UICamObjectTable[Number(c)][UICamObjectId.advance_recgroup];UICamObjectTable[Number(c)][UICamObjectId.detail_model].val();1==$(d).val()?a=1:2==$(d).val()&&(b=1)}for(c=1;c<=ScheduleMaxNum;c++)setObj_onoff=UICamObjectTable[Number(c)][UICamObjectId.aiprivacy_onoff],$(setObj_onoff).val()!=CamAiProcessorId.Off&&(d=UICamObjectTable[Number(c)][UICamObjectId.aiprivacy_recgroup],
UICamObjectTable[Number(c)][UICamObjectId.detail_model].val(),1==$(d).val()?a=1:2==$(d).val()&&(b=1));return 0!=a&&0!=b?RecGroup12:0==b?RecGroup1:0==a?RecGroup2:NoRecGroup}
function GetSettingRecGroupNum(a){var b=0;if(s_model_name==s_recresult_model_vms)return 0;for(var c=1;c<=ScheduleMaxNum;c++){var d=UICamObjectTable[Number(c)][UICamObjectId.advance_recgroup];var e=UICamObjectTable[Number(c)][UICamObjectId.detail_model].val();var f=UICamObjectTable[Number(c)][UICamObjectId.detail_num].val();$(d).val()==a&&0<e&&(b+=Number(f))}return b}
function ChangeRecGroupResultNX200(){if(s_model_name!=s_recresult_model_nx200)return!1;var a=GetSettingRecGroup(),b=GetSettingRecGroupNum(1),c=GetSettingRecGroupNum(2);a==RecGroup12&&0!=c&&0!=b?s_app_dst_ja==s_app_dst?($("#text_recresult_hdd_recgroup1_02_01").css("display","inline"),$("#text_recresult_hdd_recgroup2_02_02").css("display","inline"),$("#recresult_estimaterecdays_nx200_02_2").css("display","inline"),$("#text_recresult_days_unit_02_02").css("display","inline"),$("#text_recresult_hdd_recgroup1_03_01").css("display",
"inline"),$("#text_recresult_hdd_recgroup2_03_02").css("display","inline"),$("#recresult_estimaterecdays_nx200_03_2").css("display","inline"),$("#text_recresult_days_unit_03_02").css("display","inline"),$("#text_recresult_hdd_recgroup1_04_01").css("display","inline"),$("#text_recresult_hdd_recgroup2_04_02").css("display","inline"),$("#recresult_estimaterecdays_nx200_04_2").css("display","inline"),$("#text_recresult_days_unit_04_02").css("display","inline")):s_app_dst_ipro_ja==s_app_dst?($("#text_recresult_hdd_recgroup1_08_01").css("display",
"none"),$("#text_recresult_hdd_recgroup2_08_02").css("display","none"),$("#recresult_estimaterecdays_nx200_08_2").css("display","none"),$("#text_recresult_days_unit_08_02").css("display","none"),$("#text_recresult_hdd_recgroup1_09_01").css("display","inline"),$("#text_recresult_hdd_recgroup2_09_02").css("display","inline"),$("#recresult_estimaterecdays_nx200_09_2").css("display","inline"),$("#text_recresult_days_unit_09_02").css("display","inline"),$("#text_recresult_hdd_recgroup1_10_01").css("display",
"inline"),$("#text_recresult_hdd_recgroup2_10_02").css("display","inline"),$("#recresult_estimaterecdays_nx200_10_2").css("display","inline"),$("#text_recresult_days_unit_10_02").css("display","inline")):($("#text_recresult_hdd_recgroup1_03_01").css("display","inline"),$("#text_recresult_hdd_recgroup2_03_02").css("display","inline"),$("#recresult_estimaterecdays_nx200_03_2").css("display","inline"),$("#text_recresult_days_unit_03_02").css("display","inline"),$("#text_recresult_hdd_recgroup1_04_01").css("display",
"inline"),$("#text_recresult_hdd_recgroup2_04_02").css("display","inline"),$("#recresult_estimaterecdays_nx200_04_2").css("display","inline"),$("#text_recresult_days_unit_04_02").css("display","inline"),$("#text_recresult_hdd_recgroup1_05_01").css("display","inline"),$("#text_recresult_hdd_recgroup2_05_02").css("display","inline"),$("#recresult_estimaterecdays_nx200_05_2").css("display","inline"),$("#text_recresult_days_unit_05_02").css("display","inline"),$("#text_recresult_hdd_recgroup1_06_01").css("display",
"inline"),$("#text_recresult_hdd_recgroup2_06_02").css("display","inline"),$("#recresult_estimaterecdays_nx200_06_2").css("display","inline"),$("#text_recresult_days_unit_06_02").css("display","inline"),$("#text_recresult_hdd_recgroup1_07_01").css("display","inline"),$("#text_recresult_hdd_recgroup2_07_02").css("display","inline"),$("#recresult_estimaterecdays_nx200_07_2").css("display","inline"),$("#text_recresult_days_unit_07_02").css("display","inline")):(s_app_dst_ja==s_app_dst&&($("#text_recresult_hdd_recgroup1_02_01").css("display",
"none"),$("#text_recresult_hdd_recgroup2_02_02").css("display","none"),$("#recresult_estimaterecdays_nx200_02_2").css("display","none"),$("#text_recresult_days_unit_02_02").css("display","none"),$("#text_recresult_hdd_recgroup1_03_01").css("display","none"),$("#text_recresult_hdd_recgroup2_03_02").css("display","none"),$("#recresult_estimaterecdays_nx200_03_2").css("display","none"),$("#text_recresult_days_unit_03_02").css("display","none"),$("#text_recresult_hdd_recgroup1_04_01").css("display","none"),
$("#text_recresult_hdd_recgroup2_04_02").css("display","none"),$("#recresult_estimaterecdays_nx200_04_2").css("display","none"),$("#text_recresult_days_unit_04_02").css("display","none")),s_app_dst_ipro_ja==s_app_dst?($("#text_recresult_hdd_recgroup1_08_01").css("display","none"),$("#text_recresult_hdd_recgroup2_08_02").css("display","none"),$("#recresult_estimaterecdays_nx200_08_2").css("display","none"),$("#text_recresult_days_unit_08_02").css("display","none"),$("#text_recresult_hdd_recgroup1_09_01").css("display",
"none"),$("#text_recresult_hdd_recgroup2_09_02").css("display","none"),$("#recresult_estimaterecdays_nx200_09_2").css("display","none"),$("#text_recresult_days_unit_09_02").css("display","none"),$("#text_recresult_hdd_recgroup1_10_01").css("display","none"),$("#text_recresult_hdd_recgroup2_10_02").css("display","none"),$("#recresult_estimaterecdays_nx200_10_2").css("display","none"),$("#text_recresult_days_unit_10_02").css("display","none")):($("#text_recresult_hdd_recgroup1_03_01").css("display",
"none"),$("#text_recresult_hdd_recgroup2_03_02").css("display","none"),$("#recresult_estimaterecdays_nx200_03_2").css("display","none"),$("#text_recresult_days_unit_03_02").css("display","none"),$("#text_recresult_hdd_recgroup1_04_01").css("display","none"),$("#text_recresult_hdd_recgroup2_04_02").css("display","none"),$("#recresult_estimaterecdays_nx200_04_2").css("display","none"),$("#text_recresult_days_unit_04_02").css("display","none"),$("#text_recresult_hdd_recgroup1_05_01").css("display","none"),
$("#text_recresult_hdd_recgroup2_05_02").css("display","none"),$("#recresult_estimaterecdays_nx200_05_2").css("display","none"),$("#text_recresult_days_unit_05_02").css("display","none"),$("#text_recresult_hdd_recgroup1_06_01").css("display","none"),$("#text_recresult_hdd_recgroup2_06_02").css("display","none"),$("#recresult_estimaterecdays_nx200_06_2").css("display","none"),$("#text_recresult_days_unit_06_02").css("display","none"),$("#text_recresult_hdd_recgroup1_07_01").css("display","none"),$("#text_recresult_hdd_recgroup2_07_02").css("display",
"none"),$("#recresult_estimaterecdays_nx200_07_2").css("display","none"),$("#text_recresult_days_unit_07_02").css("display","none")))}
function ChangeSettingSystemConfig(){if(s_model_name==s_recresult_model_vms)return!1;$("#reccond_estcondition_recdays_1_nx300");$("#reccond_estcondition_recdays_2_nx300");document.getElementById("textout_label");document.getElementById("textin_label");if(s_model_name==s_recresult_model_nx400)return s_pre_model_name=s_recresult_model_nx400,!1;if(s_model_name==s_recresult_model_nx300){if(s_pre_model_name!=s_recresult_model_nx300)return s_pre_model_name=s_recresult_model_nx300,!1;s_pre_model_name=s_recresult_model_nx300}else{if(s_model_name==
s_recresult_model_nx200)return s_pre_model_name=s_recresult_model_nx200,!1;if(s_model_name==s_recresult_model_nx100)return s_pre_model_name=s_recresult_model_nx100,!1;if(s_model_name==s_recresult_model_nu301)return s_pre_model_name=s_recresult_model_nu301,!1;if(s_model_name==s_recresult_model_nu300)return s_pre_model_name=s_recresult_model_nu300,!1;if(s_model_name==s_recresult_model_nu201)return s_pre_model_name=s_recresult_model_nu201,!1;if(s_model_name==s_recresult_model_nu101)return s_pre_model_name=
s_recresult_model_nu101,!1}if(SystemConfigId.MainUnit==Number(UIOtherObjectTable_NX300[UIOtherObjectId.systemconfig].val()))$(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup1]).attr("disabled",!0),$(UIOtherObjectTable_NX300[UIOtherObjectId.recdays1]).attr("disabled",!1),$(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup2]).attr("disabled",!0),$(UIOtherObjectTable_NX300[UIOtherObjectId.recdays2]).attr("disabled",!0),s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst||$(UIOtherObjectTable_NX300[UIOtherObjectId.hddcapa]).attr("disabled",
!0);else if(SystemConfigId.Calc==Number(UIOtherObjectTable_NX300[UIOtherObjectId.systemconfig].val())){for(var a=!1,b=!1,c=1;c<=ScheduleMaxNum;c++)1==Number(UICamObjectTable[Number(c)][UICamObjectId.advance_recgroup].val())?a=!0:2==Number(UICamObjectTable[Number(c)][UICamObjectId.advance_recgroup].val())&&(b=!0);1!=a&&1==b?($(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup2]).attr("disabled",!1),0==$(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup2]).val()&&$(UIOtherObjectTable_NX300[UIOtherObjectId.recdays2]).attr("disabled",
!1),$(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup1]).attr("disabled",!0),$(UIOtherObjectTable_NX300[UIOtherObjectId.recdays1]).attr("disabled",!0)):1==a&&1==b?($(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup1]).attr("disabled",!1),0==$(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup1]).val()&&$(UIOtherObjectTable_NX300[UIOtherObjectId.recdays1]).attr("disabled",!1),$(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup2]).attr("disabled",!1),0==$(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup2]).val()&&
$(UIOtherObjectTable_NX300[UIOtherObjectId.recdays2]).attr("disabled",!1)):($(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup1]).attr("disabled",!1),0==$(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup1]).val()&&$(UIOtherObjectTable_NX300[UIOtherObjectId.recdays1]).attr("disabled",!1),$(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup2]).attr("disabled",!0),$(UIOtherObjectTable_NX300[UIOtherObjectId.recdays2]).attr("disabled",!0));s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst||$(UIOtherObjectTable_NX300[UIOtherObjectId.hddcapa]).attr("disabled",
!1)}}
function SelectCamModelList(a){var b=$(a).attr("id").split("_");b=b[b.length-2];var c=a.value;if(0<Number(b))SelectCamModelListOne(b,c);else if(0==UICamObjectTable[Number(b)][UICamObjectId.detail_comp].children().length)SelectCamModelListOne(b,c);else{for(var d=1;d<=CamSettingMaxNum;d++)if(1!=UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked||1!=UICamObjectTable[Number(d)][UICamObjectId.advance_smartcoding][0].disabled){var e=("00"+d).slice(-3);UICamObjectTable[Number(e)][UICamObjectId.detail_model].val(c);SelectCamModelListOne(e,
c)}$(a).val(0)}if(0==b)for(d=0;d<CamSettingMaxNum;d++)0<UICamObjectTable[d+1][UICamObjectId.detail_model].val()&&""==UICamObjectTable[d+1][UICamObjectId.detail_num].val()&&(UICamObjectTable[d+1][UICamObjectId.detail_num][0].value=1,UICamObjectTable[Number(d+1)][UICamObjectId.advance_num].text(1),UICamObjectTable[Number(d+1)][UICamObjectId.aiprivacy_num].text(1),SelectCameraInfo[Number(d)].num=1),checkEnableAIPrivacy(UICamObjectTable[d+1][UICamObjectId.detail_model]);else 0<UICamObjectTable[Number(b)][UICamObjectId.detail_model][0].value&&
""==UICamObjectTable[Number(b)][UICamObjectId.detail_num].val()&&(UICamObjectTable[Number(b)][UICamObjectId.detail_num][0].value=1,UICamObjectTable[Number(b)][UICamObjectId.advance_num].text(1),UICamObjectTable[Number(b)][UICamObjectId.aiprivacy_num].text(1),SelectCameraInfo[Number(b)-1].num=1),checkEnableAIPrivacy(a)}
function SelectPoeCamModelList(a,b){var c=$(a).attr("id").split("_");c=c[c.length-2];a=a.value;GetCamModelIDByItemNo(Number(c));if(0<Number(c))SelectPoeCamModelListOne(c,a);else{var d=document.getElementById("sw_no").textContent;document.getElementById("reccond_poesw_"+d+"_model");document.getElementById("sw_portnum");if(CheckRangeSetting())for(d=camsetting_range_start;d<=camsetting_range_end;d++)0==b&&(SelectPoeCamModelListOne(d,a),SetPoeCam(d,a));else alert(s_msgwarn_allfill_outofrange);SetPoeCam(0,
0)}return Number(c)}function SelectPoePreCompCamModelList(a){var b=$(a).attr("id").split("_");b=b[b.length-2];a=a.value;if(0<Number(b))SelectPoePreCompCamModelListOne(b,a);else{if(CheckRangeSettingPreComp())for(var c=precomp_camsetting_range_start;c<=precomp_camsetting_range_end;c++)SelectPoePreCompCamModelListOne(c,a),SetPoePreCompCam(c,a);else alert(s_msgwarn_allfill_outofrange);SetPoePreCompCam(0,0)}return Number(b)}
function ClearAllCamera(){for(var a=1;a<=cur_sw_portnum;a++)SelectPoeCamModelListOne(a,0),SetPoeCam(a,0),$("#reccond_poe_"+("00"+String(a)).slice(-3)+"_psepower").val(""),$("#reccond_poe_"+("00"+String(a)).slice(-3)+"_portnum").val("");$("#sw_psepower").text("");$("#reccond_poe_range_start").val("001");$("#reccond_poe_range_end").val(("00"+String(cur_sw_portnum)).slice(-3));SaveSwitchCameraSetting();UpdatePoeCamModelList()}
function ClearAllCameraPreComp(){for(var a=1;16>=a;a++)SelectPoePreCompCamModelListOne(a,0),SetPoePreCompCam(a,0),$("#precomp_poe_"+("00"+String(a)).slice(-3)+"_numberofunits").val(""),$("#precomp_poe_"+("00"+String(a)).slice(-3)+"_psepower").val(""),$("#precomp_poe_"+("00"+String(a)).slice(-3)+"_portnum").val("");$("#precomp_poe_range_start").val("001");$("#precomp_poe_range_end").val("016");$("#precomp_result_power_totalpower").text("0.0W");$("#precomp_result_power_PoEPP").text("0.0W");$("#precomp_result_power_PoEP").text("0.0W");
$("#precomp_result_power_PoE").text("0.0W")}
function CheckPoeCamExternalPower(a){var b=$(a).attr("id").split("_");b=Number(b[b.length-2]);if(0!=b)$(a).prop("checked")&&CheckPoeCamExternalPowerOne(b,0,!1);else{$("#sw_portnum").text();if(0==camsetting_acadapter_toggle)if(camsetting_acadapter_toggle=1,CheckRangeSetting())for(b=camsetting_range_start;b<=camsetting_range_end;b++)CheckPoeCamExternalPowerOne(b,1,!0);else alert(s_msgwarn_allfill_outofrange);else if(camsetting_acadapter_toggle=0,CheckRangeSetting())for(b=camsetting_range_start;b<=camsetting_range_end;b++)CheckPoeCamExternalPowerOne(b,
1,!1);else alert(s_msgwarn_allfill_outofrange);$(a).prop("checked",!1)}}function CheckPoeCamExternalPowerOne(a,b,c){var d=Number($('[id="reccond_poe_'+("00"+a).slice(-3)+'_model"] option:selected').val());0<b&&0<d&&(a="#reccond_poe_"+("00"+a).slice(-3)+"_acadapter",0==$(a).prop("disabled")&&$(a).prop("checked",c))}
function CheckPoePreCompCamExternalPower(a){var b=$(a).attr("id").split("_");b=Number(b[b.length-2]);if(0!=b)$(a).prop("checked")&&CheckPoePreCompCamExternalPowerOne(b,0,!1);else{if(0==camsetting_acadapter_toggle)if(camsetting_acadapter_toggle=1,CheckRangeSettingPreComp())for(b=precomp_camsetting_range_start;b<=precomp_camsetting_range_end;b++)CheckPoePreCompCamExternalPowerOne(b,1,!0);else alert(s_msgwarn_allfill_outofrange);else if(camsetting_acadapter_toggle=0,CheckRangeSettingPreComp())for(b=
precomp_camsetting_range_start;b<=precomp_camsetting_range_end;b++)CheckPoePreCompCamExternalPowerOne(b,1,!1);else alert(s_msgwarn_allfill_outofrange);$(a).prop("checked",!1)}}function CheckPoePreCompCamExternalPowerOne(a,b,c){var d=Number($('[id="precomp_poe_'+("00"+a).slice(-3)+'_model"] option:selected').val());0<b&&0<d&&(a="#precomp_poe_"+("00"+a).slice(-3)+"_acadapter",0==$(a).prop("disabled")&&$(a).prop("checked",c))}
function SelectPoeCamModelListOne(a,b){var c=Number(a),d='[id^="reccond_poesw_'+("00"+a.toString()).slice(-3)+'_modeldetail"]',e=!1,f=UICamObjectTable[c][UICamObjectId.poe_powertype],g=UICamObjectTable[c][UICamObjectId.poe_powertypesel],h=UICamObjectTable[c][UICamObjectId.poe_powerclass],k=UICamObjectTable[c][UICamObjectId.poe_powerclasssel],m=UICamObjectTable[c][UICamObjectId.poe_modelpower];b==CamPoeList.length-1?($(f).hide(),$(h).hide(),$(g).show(),$(k).show()):($(f).show(),$(h).show(),$(g).hide(),
$(k).hide());$(g).val("0");$(k).val("0");$(m).val("");SetPoeCamType(a,b);SetPoePowerType(a,b);SetPoePowerClass(a,b);SetPoeModelPower(a,b);SetPoeExternalPower(a,b,0);if(0<b){var l=Number(UICamObjectTable[c][UICamObjectId.poe_cablelength].val());h=GetSwIdInCameraSetting();f=maxval_feet;g=maxval_meter;0!=SwitchPoeList[h].pw510?(f=minval_feet,g=minval_meter,e=!0):0<SwitchPoeList[h].isPRseries&&1==SwitchPoeList[h].isAcAdapter?(b==CamPoeList.length-1?(b=document.getElementById("reccond_poe_"+a+"_powertypesel"),
b=Number($(b).val())):b=GetPowerTypeIndex(CamPoeList[Number(b)].powertype),2==b&&(f=maxval_feet_prlimited_camera,g=maxval_meter_prlimited_camera)):1<=Number(b)&&50>=Number(b)&&(b=CamPoeList[Number(b)].model.substr(0,3),b=document.getElementById("reccond_poesw_"+b+"_model"),h=Number($(b).val()),0<SwitchPoeList[h].isPRseries&&0==SwitchPoeList[h].isAcAdapter&&(f=maxval_feet_prlimited_sw,g=maxval_meter_prlimited_sw));0==poe_cablelen_unit_m?SetPoeCableLength(a,f,0):SetPoeCableLength(a,g,0);0!=e&&UICamObjectTable[c][UICamObjectId.poe_cablelength].prop("disabled",
!0);$(d).prop("disabled",!1)}else SetPoeCableLength(a,0,1),UICamObjectTable[c][UICamObjectId.poe_externalpower].prop("disabled",!0),$(d).prop("disabled",!0),$("#reccond_poe_"+a+"_portnum").val(""),$(m).val(""),$(m).prop("disabled",!0);SetPoePoESwitch(c,l,0)}
function SelectPoePreCompCamModelListOne(a,b){var c=Number(a),d='[id^="reccond_poesw_'+("00"+a.toString()).slice(-3)+'_modeldetail"]',e=UIPreCompCamObjectTable[c][UICamObjectId.poe_powertype],f=UIPreCompCamObjectTable[c][UICamObjectId.poe_powertypesel],g=UIPreCompCamObjectTable[c][UICamObjectId.poe_powerclass],h=UIPreCompCamObjectTable[c][UICamObjectId.poe_powerclasssel],k=UIPreCompCamObjectTable[c][UICamObjectId.poe_modelpower];b==CamPoeList.length-1?($(e).hide(),$(g).hide(),$(f).show(),$(h).show()):
($(e).show(),$(g).show(),$(f).hide(),$(h).hide());$(f).val("0");$(h).val("0");$(k).val("");SetPoePreCompCamType(a,b);SetPoePreCompPowerType(a,b);SetPoePreCompPowerClass(a,b);SetPoePreCompModelPower(a,b);SetPoePreCompExternalPower(a,b,0);0<b?(UIPreCompCamObjectTable[c][UICamObjectId.poe_cablelength].val(),b=maxval_feet,e=maxval_meter,0==poe_cablelen_unit_m?SetPoePreCompCableLength(a,b,0):SetPoePreCompCableLength(a,e,0),$(d).prop("disabled",!1),""==UIPreCompCamObjectTable[c][UICamObjectId.poe_numberofunits].val()&&
UIPreCompCamObjectTable[c][UICamObjectId.poe_numberofunits].val("1")):(SetPoePreCompCableLength(a,0,1),UIPreCompCamObjectTable[c][UICamObjectId.poe_externalpower].prop("disabled",!0),$(d).prop("disabled",!0),$("#reccond_poe_"+a+"_portnum").val(""),$(k).val(""),$(k).prop("disabled",!0))}
function SelectPoeCamPowerTypeOne(a,b){var c=Number(a),d='[id^="reccond_poesw_'+("00"+a.toString()).slice(-3)+'_modeldetail"]',e=!1,f=UICamObjectTable[c][UICamObjectId.poe_externalpower],g=Number(UICamObjectTable[c][UICamObjectId.poe_cablelength].val()),h=GetSwIdInCameraSetting(),k=maxval_feet,m=maxval_meter;0!=SwitchPoeList[h].pw510?(k=minval_feet,m=minval_meter,e=!0):0<SwitchPoeList[h].isPRseries&&1==SwitchPoeList[h].isAcAdapter?(b==CamPoeList.length-1?(b=document.getElementById("reccond_poe_"+
a+"_powertypesel"),b=Number($(b).val())):b=GetPowerTypeIndex(CamPoeList[Number(b)].powertype),1<b&&(0==$(f).prop("checked")?0!=poe_cablelen_unit_m?m=g>maxval_meter_prlimited_camera?maxval_meter_prlimited_camera:g:k=g>maxval_feet_prlimited_camera?maxval_feet_prlimited_camera:g:0!=poe_cablelen_unit_m?m=g>maxval_meter?maxval_meter:g:k=g>maxval_feet?maxval_feet:g)):1<=Number(b)&&50>=Number(b)&&(f=CamPoeList[Number(b)].model.substr(0,3),f=document.getElementById("reccond_poesw_"+f+"_model"),h=Number($(f).val()),
0<SwitchPoeList[h].isPRseries&&0==SwitchPoeList[h].isAcAdapter&&(k=maxval_feet_prlimited_sw,m=maxval_meter_prlimited_sw));0==poe_cablelen_unit_m?SetPoeCableLength(a,k,0):SetPoeCableLength(a,m,0);0!=e&&UICamObjectTable[c][UICamObjectId.poe_cablelength].prop("disabled",!0);$(d).prop("disabled",!1);SetPoePoESwitch(c,g,0)}
function SelectPoePreCompCamPowerTypeOne(a,b){var c=Number(a);b='[id^="precomp_poesw_'+("00"+a.toString()).slice(-3)+'_modeldetail"]';UIPreCompCamObjectTable[c][UICamObjectId.poe_cablelength].val();c=maxval_feet;var d=maxval_meter;0==poe_cablelen_unit_m?SetPoePreCompCableLength(a,c,0):SetPoePreCompCableLength(a,d,0);$(b).prop("disabled",!1)}
function SelectSwitchModelDetail(a){a=$(a).attr("id").split("_");a=a[a.length-2];var b='[id="reccond_poesw_'+("00"+a).slice(-3)+'_modeldetail"] option:selected';b=$(b).text();"--"==b||"AC\u30a2\u30c0\u30d7\u30bf\u30fc"==b?UICamObjectTable[Number(a)][UICamObjectId.poe_cablelength].prop("disabled",!0):UICamObjectTable[Number(a)][UICamObjectId.poe_cablelength].prop("disabled",!1)}function SelectSwitchModelList(a){var b=$(a).attr("id").split("_");SelectSwitchModelListOne(b[b.length-2],a.value)}
function SelectSwitchPowerType(a){a=$(a).attr("id").split("_");a=a[a.length-2];var b=Number($(UICamObjectTable[Number(a)][UICamObjectId.poesw_model]).val());SetPoePowerType(a,b);SetSwitchCfgButton(a,b,!1)}function InputSwitchPsePower(a){var b=$(a).attr("id").split("_");b=b[b.length-2];a=a.value;a=a.substr(0,a.length-1);HubPoeList[Number(b)].modelpower=Number(a);a=Number($(UICamObjectTable[Number(b)][UICamObjectId.poesw_model]).val());SetSwitchCfgButton(b,a,!1)}
function InputSwitchPortNum(a){var b=$(a).attr("id").split("_");b=b[b.length-2];HubPoeList[Number(b)].portnum=Number(a.value);a=Number($(UICamObjectTable[Number(b)][UICamObjectId.poesw_model]).val());SetSwitchCfgButton(b,a,!1)}
function CreateCameraListNode(a,b){var c=("00"+String(a)).slice(-3)+"_"+SwitchPoeList[b].model;return 1==SwitchPoeList[b].isPRseries?new CamPoeType(a,c,"PoE\u7d66\u96fb\u6a5f\u80fd\u4ed8 \u540c\u8ef8-LAN\u30b3\u30f3\u30d0\u30fc\u30bf\u30fc","PoE+","Class0",0):2==SwitchPoeList[b].isPRseries?new CamPoeType(a,c,"PoE\u7d66\u96fb\u6a5f\u80fd\u4ed8 \u540c\u8ef8-LAN\u30b3\u30f3\u30d0\u30fc\u30bf\u30fc","PoE+","Class0",12.95):3==SwitchPoeList[b].isPRseries?new CamPoeType(a,c,"PoE\u7d66\u96fb\u6a5f\u80fd\u4ed8 \u540c\u8ef8-LAN\u30b3\u30f3\u30d0\u30fc\u30bf\u30fc",
"PoE+","Class0",0):4==SwitchPoeList[b].isPRseries?new CamPoeType(a,c,"PoE\u7d66\u96fb\u6a5f\u80fd\u4ed8 \u540c\u8ef8-LAN\u30b3\u30f3\u30d0\u30fc\u30bf\u30fc","PoE+","Class0",12.95):new CamPoeType(a,"--","","","",-1)}function GetCamModelIDByItemNo(a){return Number($(UICamObjectTable[a][UICamObjectId.poe_model]).val())}
function SelectSwitchModelListOne(a,b){var c=Number(a);SetSwitchPowerType(a,b,!0);SetSwitchPSEPower(a,b,!0);SetSwitchPortNum(a,b,!0);SetSwitchCfgButton(a,b,!1);b=Number(b);CamPoeList[c]=CreateCameraListNode(c,b);var d="reccond_poesw_"+("00"+c).slice(-3)+"_camnum",e="reccond_poesw_"+("00"+c).slice(-3)+"_compcfg",f="reccond_poesw_"+("00"+c).slice(-3)+"_customerdesc",g="reccond_poesw_"+("00"+c).slice(-3)+"_powertypesel";c=document.getElementById(d);e=document.getElementById(e);f=document.getElementById(f);
g=document.getElementById(g);a='[id$="reccond_poesw_'+a+'_customerdesc"]';0==b?($(a).prop("disabled",!0),$(c).val(""),$(e).html(""),$(f).val(""),$(f).prop("disabled",!0)):($(a).prop("disabled",!1),$(c).val(""),$(e).html(""),$(f).val(""));$(g).val("0")}
function SelectCamModelListOne(a,b){var c=0==Number($(UICamObjectTable[Number(a)][UICamObjectId.detail_comp]).val())?set_initial:set_normal,d=SetCamCompList(a,b,c);SetCamResoList(a,b,d,c);var e=GetCamResoIndex(a);SetCamFpsList(a,b,d,e,c);SetCamQualityList(a,b,d,c);SetCamAudioList(a,b);SetCamScheduleList(a);SetCamRecGroupList(a);SetCamSmartCodingList(a,b,d);SetCamConnectList(a,b);SetCamEncryptList(a,b,d);SetCamFaceMatchList(a,b,d);SetAIPrivacyRecGroupList(a);SetAIPrivacyOnOffList(a,b);0<Number(a)&&
(UICamObjectTable[Number(a)][UICamObjectId.advance_model].text(CamModelList[Number(b)].name),UICamObjectTable[Number(a)][UICamObjectId.aiprivacy_model].text(CamModelList[Number(b)].name),SelectCameraInfo[Number(a)-1].modelId=Number(b),SelectCameraInfo[Number(a)-1].typeId=CamModelList[b].typeid,SelectCameraInfo[Number(a)-1].vmdinfoId=CamTypeVmdInfoList[CamModelList[b].typeid],SelectCameraInfo[Number(a)-1].substreamId=CamTypeSubstreamList[CamModelList[b].typeid])}
function SetCamCompList(a,b,c){a=Number(a);var d=UICamObjectTable[a][UICamObjectId.detail_comp],e="";if(0<a){var f=CamModelList[Number(b)].typeid,g=CamTypeCompList[f].length,h=Number($(d).val());$(d).children().remove();for(var k=0;k<g;k++){var m=CamTypeCompList[f][k];e+='<option value="'+m+'">'+CamCompList[m]+"</option>"}$(d).append(e);SetCamCompValue(d,f,h,!0,b,c);SelectCameraInfo[a-1].compId=Number($(d).val());SelectCameraInfo[a-1].compTblId=CamCompRefTblList[SelectCameraInfo[a-1].compId]}else $(d).children().remove(),
Object.keys(CamCompId).forEach(function(l){l=this[l];CamCompId.H265_2!=l&&CamCompId.H264_2!=l&&(e+='<option value="'+l+'">'+CamCompList[l]+"</option>")},CamCompId),$(d).append(e);return Number($(d).val())}
function SelectCamCompList(a){var b=$(a).attr("id").split("_"),c=b[b.length-2],d=UICamObjectTable[Number(c)][UICamObjectId.detail_model].val();if("comp"==b[b.length-1])var e=a.value;else"onoff"==b[b.length-1]&&(e=document.getElementById("reccond_detail_"+c+"_comp").value);if(0<Number(c))SelectCamCompListOne(c,d,e),checkEnableAIPrivacy(a);else{for(c=1;c<=CamSettingMaxNum;c++)if(CamFaceMatchId.On!=SelectCameraInfo[Number(c)-1].facematchId&&(1!=UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked||
1!=UICamObjectTable[Number(c)][UICamObjectId.advance_smartcoding][0].disabled)){var f=("00"+c).slice(-3),g=UICamObjectTable[Number(f)][UICamObjectId.detail_comp],h=UICamObjectTable[Number(f)][UICamObjectId.detail_model].val(),k=CamModelList[Number(h)].typeid;"onoff"==b[b.length-1]&&(e=document.getElementById("reccond_detail_"+f+"_comp").value);SetCamCompValue(g,k,e,!1,d,set_normal);e==$(g).val()&&(SelectCamCompListOne(f,h,e),checkEnableAIPrivacy(g))}"comp"==b[b.length-1]?$(a).val(0):"onoff"==b[b.length-
1]&&(document.getElementById("reccond_detail_000_comp").value=0)}}function SelectCamCompListOne(a,b,c){var d=Number(a);SetCamResoList(a,b,c,set_normal);var e=GetCamResoIndex(a);SetCamFpsList(a,b,c,e,set_normal);SetCamQualityList(a,b,c,set_normal);SetCamAudioList(a,b);SetCamSmartCodingList(a,b,c);SetCamEncryptList(a,b,c);SetCamFaceMatchList(a,b,c);SelectCameraInfo[d-1].compId=Number(c);SelectCameraInfo[d-1].compTblId=CamCompRefTblList[SelectCameraInfo[d-1].compId]}
function SetCamCompValue(a,b,c,d,e,f){f==set_initial?$(a).val(List_Initial[Number(e)].comp):1==SearchOptionValue(a,c)?$(a).val(c):1==d&&$(a).val(CamTypeCompList[b][0])}
function SelectCamResoList(a){var b=$(a).attr("id").split("_"),c=b[b.length-2];b=getAIPrivacyStatus(c);var d=UICamObjectTable[Number(c)][UICamObjectId.detail_model].val(),e=UICamObjectTable[Number(c)][UICamObjectId.detail_comp].val(),f=a.value;if(0<Number(c))SelectCamResoListOne(c,d,e,f);else{for(c=1;c<=CamSettingMaxNum;c++)if(CamFaceMatchId.On!=SelectCameraInfo[Number(c)-1].facematchId&&(1!=UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked||1!=UICamObjectTable[Number(c)][UICamObjectId.advance_smartcoding][0].disabled)){d=
("00"+c).slice(-3);e=UICamObjectTable[Number(d)][UICamObjectId.detail_reso];var g=UICamObjectTable[Number(d)][UICamObjectId.detail_model].val(),h=CamModelList[Number(g)].typeid,k=UICamObjectTable[Number(d)][UICamObjectId.detail_comp].val();SetCamResoValue(e,h,k,f,!1,set_normal,b);f==$(e).val()&&SelectCamResoListOne(d,g,k,f)}$(a).val(-1)}}function SelectCamResoListOne(a,b,c,d){var e=GetCamResoIndex(a);SetCamFpsList(a,b,c,e,set_normal);SelectCameraInfo[Number(a)-1].resoId=Number(d)}
function SetCamResoList(a,b,c,d){var e=UICamObjectTable[Number(a)][UICamObjectId.detail_reso],f="",g=getAIPrivacyStatus(a);if(0<Number(a)){var h=CamModelList[b].typeid;var k=0==g?CamTypeResoList[h][c].length:CamTypeResoListAiPrv[h][c].length;var m=Number($(e).val());$(e).children().remove();if(0==g)for(var l=0;l<k;l++){var n=CamTypeResoList[h][c][l];f+='<option value="'+n+'">'+CamResoList[n]+"</option>"}else for(l=0;l<k;l++)n=CamTypeResoListAiPrv[h][c][l],f+='<option value="'+n+'">'+CamResoList[n]+
"</option>";$(e).append(f);SetCamResoValue(e,h,c,m,!0,b,d,g);SelectCameraInfo[Number(a)-1].resoId=Number($(e).val())}else $(e).children().remove(),f+='<option value="-1">'+s_blank+"</option>",Object.keys(CamResoId).forEach(function(p){p=this[p];f+='<option value="'+p+'">'+CamResoList[p]+"</option>"},CamResoId),$(e).append(f);return Number($(e).val())}
function SetCamResoValue(a,b,c,d,e,f,g,h){g==set_initial?$(a).val(List_Initial[Number(f)].reso):1==SearchOptionValue(a,d)?$(a).val(d):1==e&&(0==h?$(a).val(CamTypeResoList[b][c][0]):$(a).val(CamTypeResoListAiPrv[b][c][0]))}function GetCamCompIndex(a){a=UICamObjectTable[Number(a)][UICamObjectId.detail_comp];$(a).prop("value");return Number($(a).prop("value"))}function GetCamResoIndex(a){return Number($(UICamObjectTable[Number(a)][UICamObjectId.detail_reso]).prop("selectedIndex"))}
function SelectCamFpsList(a){var b=$(a).attr("id").split("_"),c=b[b.length-2];b=$(a).val();if(0<Number(c))SelectCamFpsListOne(c,b),checkEnableAIPrivacy(a);else{for(c=1;c<=CamSettingMaxNum;c++)if(CamFaceMatchId.On!=SelectCameraInfo[Number(c)-1].facematchId&&(1!=UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked||1!=UICamObjectTable[Number(c)][UICamObjectId.advance_smartcoding][0].disabled)){var d=("00"+c).slice(-3),e=UICamObjectTable[Number(d)][UICamObjectId.detail_fps],f=UICamObjectTable[Number(d)][UICamObjectId.detail_model].val();
f=CamModelList[Number(f)].typeid;var g=UICamObjectTable[Number(d)][UICamObjectId.detail_comp].val();UICamObjectTable[Number(d)][UICamObjectId.detail_reso].val();SetCamFpsValue(e,d,f,g,b,!1,set_normal);b==$(e).val()&&(SelectCamFpsListOne(d,b),checkEnableAIPrivacy(e))}$(a).val(-1)}}function SelectCamFpsListOne(a,b){SelectCameraInfo[Number(a)-1].fpsId=Number(b)}
function SetCamFpsList(a,b,c,d,e){var f=UICamObjectTable[Number(a)][UICamObjectId.detail_fps],g="",h=getAIPrivacyStatus(a);0==h&&(h=getAACLCStatus(a));if(0<Number(a)){var k=CamModelList[b].typeid;var m=0==h?CamTypeFpsList[k][c][d].length:CamTypeFpsListAiPrv[k][c][d].length;var l=Number($(f).val());$(f).children().remove();if(0==h)for(h=0;h<m;h++){var n=CamTypeFpsList[k][c][d][h];g+='<option value="'+n+'">'+CamFpsList[n].name+"</option>"}else for(h=0;h<m;h++)n=CamTypeFpsListAiPrv[k][c][d][h],g+='<option value="'+
n+'">'+CamFpsList[n].name+"</option>";$(f).append(g);SetCamFpsValue(f,a,k,c,l,!0,b,e);SelectCameraInfo[Number(a)-1].fpsId=Number($(f).val())}else $(f).children().remove(),g+='<option value="-1">'+s_blank+"</option>",Object.keys(CamFpsId).forEach(function(p){p=this[p];g+='<option value="'+p+'">'+CamFpsList[p].name+"</option>"},CamFpsId),$(f).append(g);return Number($(f).val())}
function SetCamFpsValue(a,b,c,d,e,f,g,h){var k=getAIPrivacyStatus(b);0==k&&(k=getAACLCStatus(b));h==set_initial?$(a).val(List_Initial[Number(g)].fps):1==SearchOptionValue(a,e)?$(a).val(e):1==f&&(b=GetCamResoIndex(b),0==k?(k=CamTypeFpsList[c][d][b].length-1,$(a).val(CamTypeFpsList[c][d][b][k])):(k=CamTypeFpsListAiPrv[c][d][b].length-1,$(a).val(CamTypeFpsListAiPrv[c][d][b][k]),IsChangedCurrentFps=1))}
function SelectCamQualityList(a){var b=$(a).attr("id").split("_"),c=b[b.length-2];b=$(a).val();if(0<Number(c))SelectCamQualityListOne(c,b);else{for(c=1;c<=CamSettingMaxNum;c++)if(CamFaceMatchId.On!=SelectCameraInfo[Number(c)-1].facematchId&&(1!=UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked||1!=UICamObjectTable[Number(c)][UICamObjectId.advance_smartcoding][0].disabled)){var d=("00"+c).slice(-3),e=UICamObjectTable[Number(d)][UICamObjectId.detail_qual];SetCamQualValue(e,b,!1,set_normal);
b==$(e).val()&&SelectCamQualityListOne(d,b)}$(a).val(-1)}}function SelectCamQualityListOne(a,b){SelectCameraInfo[Number(a)-1].qualId=Number(b)}
function SetCamQualityList(a,b,c,d){var e=UICamObjectTable[Number(a)][UICamObjectId.detail_qual],f="";if(0<Number(a)){var g=CamCompQualList[c].length,h=Number($(e).val());$(e).children().remove();for(var k=0;k<g;k++){var m=CamCompQualList[c][k];f+='<option value="'+m+'">'+CamQualList[m]+"</option>"}$(e).append(f);SetCamQualValue(e,h,!0,b,d);SelectCameraInfo[Number(a)-1].qualId=Number($(e).val())}else $(e).children().remove(),f+='<option value="-1">'+s_blank+"</option>",Object.keys(CamQualId).forEach(function(l){l=
this[l];f+='<option value="'+l+'">'+CamQualList[l]+"</option>"},CamQualId),$(e).append(f);return Number($(e).val())}function SetCamQualValue(a,b,c,d,e){e==set_initial?$(a).val(List_Initial[Number(d)].qual):1==SearchOptionValue(a,b)?$(a).val(b):1==c&&(b=$(a).attr("id").split("_"),b=UICamObjectTable[Number(b[b.length-2])][UICamObjectId.detail_comp].val(),c=CamCompQualList[b].length-1,$(a).val(CamCompQualList[b][c]))}
function SelectCamAudioList(a){var b=$(a).attr("id").split("_"),c=b[b.length-2];IsChangedCurrentFps=b=0;var d=$(a).val();if(0<Number(c))SelectCamAudioListOne(c,d),getAACLCStatus(c)&&(b=1);else{for(c=1;c<=CamSettingMaxNum;c++){var e=("00"+c).slice(-3),f=UICamObjectTable[Number(e)][UICamObjectId.detail_audio],g=UICamObjectTable[Number(e)][UICamObjectId.detail_model].val();SetCamAudioValue(f,CamModelList[Number(g)].typeid,d,!1);d==$(f).val()&&SelectCamAudioListOne(e,d);getAACLCStatus(c)&&(b=1)}$(a).val(-1)}b&&
IsChangedCurrentFps&&0==ProcTextIn&&uiMsgDialogPopup(s_msgwarn_limitips_aaclc,2)}function SelectCamAudioListOne(a,b){SelectCameraInfo[Number(a)-1].audioId=Number(b);b=UICamObjectTable[Number(a)][UICamObjectId.detail_model].val();var c=GetCamCompIndex(a),d=GetCamResoIndex(a);SetCamFpsList(a,b,c,d,set_normal)}
function SetCamAudioList(a,b){var c=UICamObjectTable[Number(a)][UICamObjectId.detail_audio],d="";if(0<Number(a)){b=CamModelList[b].typeid;var e=CamTypeAudioList[b].length,f=Number($(c).val());$(c).children().remove();for(var g=0;g<e;g++){var h=CamTypeAudioList[b][g],k=UICamObjectTable[Number(a)][UICamObjectId.detail_comp].val();if(CamAudioId.SMR10==h)if("undefined"===typeof DspSmr10Info||CamCompId.H265_1!=Number(k)&&CamCompId.H264_1!=Number(k))continue;else{if(s_app_dst_ja==s_app_dst)continue}else if(CamAudioId.G726==
h){if(s_app_dst_ja==s_app_dst)continue}else if(CamAudioId.AAC==h&&"undefined"===typeof DspAacInfo)continue;d+='<option value="'+h+'">'+CamAudioList[h].name+"</option>"}$(c).append(d);SetCamAudioValue(c,b,f,!0);SelectCameraInfo[Number(a)-1].audioId=Number($(c).val())}else $(c).children().remove(),d+='<option value="-1">'+s_blank+"</option>",Object.keys(CamAudioId).forEach(function(m){m=this[m];m<=CamAudioId.Off&&(d+='<option value="'+m+'">'+CamAudioList[m].name+"</option>");m==CamAudioId.G726?s_app_dst_ja!=
s_app_dst&&(d+='<option value="'+m+'">'+CamAudioList[m].name+"</option>"):CamAudioId.SMR10==m?"undefined"!==typeof DspSmr10Info&&s_app_dst_ja!=s_app_dst&&(d+='<option value="'+m+'">'+CamAudioList[m].name+"</option>"):CamAudioId.SMR10==m&&s_recresult_model_nx100!=s_model_name?"undefined"!==typeof DspSmr10Info&&(d+='<option value="'+m+'">'+CamAudioList[m].name+"</option>"):CamAudioId.AAC==m&&"undefined"!==typeof DspAacInfo&&(d+='<option value="'+m+'">'+CamAudioList[m].name+"</option>")},CamAudioId),
$(c).append(d);return Number($(c).val())}function SetCamAudioValue(a,b,c,d){1==SearchOptionValue(a,c)?$(a).val(c):1==d&&$(a).val(CamTypeAudioList[b][0])}function SetCamScheduleList(a){var b=UICamObjectTable[Number(a)][UICamObjectId.detail_schedule];if(!(0<$(b).children().length)){0==Number(a)&&$(b).append($("<option>").val(-1).text(s_blank));for(a=0;a<ScheduleMaxNum;a++)$(b).append($("<option>").val(a+1).text(("00"+(a+1)).slice(-2)));return Number($(b).val())}}
function SelectCamScheduleList(a){var b=$(a).attr("id").split("_"),c=b[b.length-2];b=$(a).val();if(0<Number(c))SelectCamScheduleListOne(c,b);else{for(c=1;c<=CamSettingMaxNum;c++){var d=("00"+c).slice(-3);$(UICamObjectTable[Number(d)][UICamObjectId.detail_schedule]).val(b);SelectCamScheduleListOne(d,b)}$(a).val(-1)}}function SelectCamScheduleListOne(a,b){SelectCameraInfo[Number(a)-1].scheduleId=Number(b)-1}
function SetCamRecGroupList(a){var b=UICamObjectTable[Number(a)][UICamObjectId.advance_recgroup];if(!(0<$(b).children().length)){0==Number(a)&&$(b).append($("<option>").val(-1).text(s_blank));for(a=0;a<RecGroupMaxNum;a++)$(b).append($("<option>").val(a+1).text(("00"+(a+1)).slice(-2)));return Number($(b).val())}}
function SelectCamRecGroupList(a){var b=$(a).attr("id").split("_"),c=b[b.length-2];b=b[b.length-3];var d=$(a).val();if(0<Number(c))SelectCamRecGroupListOne(c,d,b);else{for(var e=1;e<=CamSettingMaxNum;e++){var f=("00"+e).slice(-3);c="aiprivacy"==b?UICamObjectTable[Number(f)][UICamObjectId.aiprivacy_recgroup]:UICamObjectTable[Number(f)][UICamObjectId.advance_recgroup];$(c).val(d);SelectCamRecGroupListOne(f,d,b)}$(a).val(-1)}}
function SelectCamRecGroupListOne(a,b,c){"aiprivacy"==c?SelectCameraInfoAIPrivacy[Number(a)-1].recgroupId=Number(b)-1:SelectCameraInfo[Number(a)-1].recgroupId=Number(b)-1}
function SelectCamSmartCodingList(a){var b=$(a).attr("id").split("_"),c=b[b.length-2];b=$(a).val();if(0<Number(c))SelectCamSmartCodingListOne(c,b);else{for(c=1;c<=CamSettingMaxNum;c++){var d=("00"+c).slice(-3);if(1!=UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked||1!=UICamObjectTable[Number(c)][UICamObjectId.advance_smartcoding][0].disabled){var e=UICamObjectTable[Number(d)][UICamObjectId.advance_smartcoding],f=UICamObjectTable[Number(d)][UICamObjectId.detail_model].val();SetCamSmartCodingValue(e,
CamModelList[Number(f)].typeid,b,!1);b==$(e).val()&&SelectCamSmartCodingListOne(d,b)}}$(a).val(-1)}}function SelectCamSmartCodingListOne(a,b){SelectCameraInfo[Number(a)-1].smartcodingId=Number(b)}
function SetCamSmartCodingList(a,b,c){var d=UICamObjectTable[Number(a)][UICamObjectId.advance_smartcoding],e="";if(0<Number(a)){b=CamModelList[b].typeid;var f=CamTypeSmartCodingList[b].length,g=Number($(d).val());$(d).children().remove();for(var h=0;h<f;h++){var k=CamTypeSmartCodingList[b][h];if(CamSmartCodingId.Off!=k)if(s_model_name==s_recresult_model_nx400){if(CamCompId.H265_1!=Number(c))continue}else if(s_model_name==s_recresult_model_nx200||s_model_name==s_recresult_model_nx100){if(CamCompId.H265_1!=
Number(c))continue}else if(s_model_name==s_recresult_model_nu301||s_model_name==s_recresult_model_nu300||s_model_name==s_recresult_model_nu201||s_model_name==s_recresult_model_nu101){if(CamCompId.H265_1!=Number(c))continue}else if(s_model_name==s_recresult_model_nx300&&CamCompId.H265_1!=Number(c))continue;e+='<option value="'+k+'">'+CamSmartCodingList[k]+"</option>"}$(d).append(e);SetCamSmartCodingValue(d,b,g,!0);SelectCameraInfo[Number(a)-1].smartcodingId=Number($(d).val())}else $(d).children().remove(),
e+='<option value="-1">'+s_blank+"</option>",Object.keys(CamSmartCodingId).forEach(function(m){m=this[m];e+='<option value="'+m+'">'+CamSmartCodingList[m]+"</option>"},CamSmartCodingId),$(d).append(e);return Number($(d).val())}function SetCamSmartCodingValue(a,b,c,d){1==SearchOptionValue(a,c)?$(a).val(c):1==d&&$(a).val(CamTypeSmartCodingList[b][0])}
function SelectCamConnectList(a){var b=$(a).attr("id").split("_"),c=b[b.length-2],d=UICamObjectTable[Number(c)][UICamObjectId.detail_model].val();b=$(a).val();if(0<Number(c)){SelectCamConnectListOne(c,b);var e=document.getElementById("reccond_detail_"+c+"_comp").value;SetCamEncryptList(c,d,e)}else{for(c=1;c<=CamSettingMaxNum;c++){d=("00"+c).slice(-3);e=UICamObjectTable[Number(d)][UICamObjectId.advance_connect];var f=UICamObjectTable[Number(d)][UICamObjectId.detail_model].val();SetCamConnectValue(e,
CamModelList[Number(f)].typeid,b,!1);b==$(e).val()&&SelectCamConnectListOne(d,b);e=document.getElementById("reccond_detail_"+d+"_comp").value;SetCamEncryptList(d,f,e)}$(a).val(-1)}}function SelectCamConnectListOne(a,b){SelectCameraInfo[Number(a)-1].connectId=Number(b)}
function SetCamConnectList(a,b){var c=UICamObjectTable[Number(a)][UICamObjectId.advance_connect],d="";if(0<Number(a)){b=CamModelList[b].typeid;var e=CamTypeConnectList[b].length,f=Number($(c).val());$(c).children().remove();for(var g=0;g<e;g++){var h=CamTypeConnectList[b][g];d+='<option value="'+h+'">'+CamConnectList[h].name+"</option>"}$(c).append(d);SetCamConnectValue(c,b,f);SelectCameraInfo[Number(a)-1].connectId=Number($(c).val())}else $(c).children().remove(),d+='<option value="-1">'+s_blank+
"</option>",Object.keys(CamConnectId).forEach(function(k){k=this[k];d+='<option value="'+k+'">'+CamConnectList[k].name+"</option>"},CamConnectId),$(c).append(d);return Number($(c).val())}function SetCamConnectValue(a,b,c,d){1==SearchOptionValue(a,c)?$(a).val(c):1==d&&$(a).val(CamTypeConnectList[b][0])}
function SelectCamEncryptList(a){var b=$(a).attr("id").split("_"),c=b[b.length-2];b=$(a).val();if(0<Number(c))SelectCamEncryptListOne(c,b);else{for(c=1;c<=CamSettingMaxNum;c++){var d=("00"+c).slice(-3),e=UICamObjectTable[Number(d)][UICamObjectId.advance_encrypt],f=UICamObjectTable[Number(d)][UICamObjectId.detail_model].val();SetCamEncryptValue(e,CamModelList[Number(f)].typeid,b,!1);b==$(e).val()&&SelectCamEncryptListOne(d,b)}$(a).val(-1)}}
function SelectCamEncryptListOne(a,b){SelectCameraInfo[Number(a)-1].encryptId=Number(b)}
function SetCamEncryptList(a,b,c){var d=UICamObjectTable[Number(a)][UICamObjectId.advance_encrypt],e="";if(0<Number(a)){b=CamModelList[b].typeid;var f=CamTypeEncryptList[b].length,g=Number($(d).val());$(d).children().remove();for(var h=0;h<f;h++){var k=CamTypeEncryptList[b][h];if(CamEncryptId.On==k&&CamCompId.MJPEG==Number(c)){for(var m=!1,l=CamTypeCompList[b].length,n=0;n<l;n++)if(CamCompBitTblId.H265==CamCompRefTblList[CamTypeCompList[b][n]]){m=!0;break}if(0==m)continue}e+='<option value="'+k+'">'+
CamEncryptList[k]+"</option>"}$(d).append(e);SetCamEncryptValue(d,b,g,!0);SelectCameraInfo[Number(a)-1].encryptId=Number($(d).val())}else $(d).children().remove(),e+='<option value="-1">'+s_blank+"</option>",Object.keys(CamEncryptId).forEach(function(p){p=this[p];e+='<option value="'+p+'">'+CamEncryptList[p]+"</option>"},CamEncryptId),$(d).append(e);return Number($(d).val())}function SetCamEncryptValue(a,b,c,d){1==SearchOptionValue(a,c)?$(a).val(c):1==d&&$(a).val(CamTypeEncryptList[b][0])}
function SelectCamFaceMatchList(a){var b=$(a).attr("id").split("_"),c=b[b.length-2];b=Number($(a).val());if(0<Number(c))SelectCamFaceMatchListOne(c,b);else{for(c=1;c<=CamSettingMaxNum;c++){var d=("00"+c).slice(-3);if(1!=UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked||1!=UICamObjectTable[Number(c)][UICamObjectId.advance_smartcoding][0].disabled){var e=UICamObjectTable[Number(d)][UICamObjectId.advance_facematch],f=UICamObjectTable[Number(d)][UICamObjectId.detail_model].val();SetCamFaceMatchValue(e,
CamModelList[Number(f)].typeid,b,!1);b==$(e).val()&&SelectCamFaceMatchListOne(d,b)}}$(a).val(-1)}}function SetAIPrivacyRecGroupList(a){var b=UICamObjectTable[Number(a)][UICamObjectId.aiprivacy_recgroup];if(!(0<$(b).children().length)){0==Number(a)&&$(b).append($("<option>").val(-1).text(s_blank));for(a=0;a<RecGroupMaxNum;a++)$(b).append($("<option>").val(a+1).text(("00"+(a+1)).slice(-2)));return Number($(b).val())}}
function SetAIPrivacyOnOffList(a,b){b=UICamObjectTable[Number(a)][UICamObjectId.aiprivacy_onoff];if(!(0<$(b).children().length))return 0==Number(a)&&$(b).append($("<option>").val(-1).text(s_blank)),$(b).append($("<option>").val(CamAiProcessorId.Off).text(s_aiprivacy_off)),$(b).append($("<option>").val(CamAiProcessorId.On).text(s_aiprivacy_on)),Number($(b).val())}
function SelectAIPrivacyList(a){var b=$(a).attr("id").split("_"),c=b[b.length-2];b=$(a).val();if(0<Number(c))SelectAIPrivacyListOne(c,b);else{for(c=1;c<=CamSettingMaxNum;c++){var d=("00"+c).slice(-3);SelectAIPrivacyListOne(d,b)}$(a).val(-1)}}
function SelectAIPrivacyListOne(a,b){if(!(1>UICamObjectTable[Number(a)][UICamObjectId.detail_model].val())){var c=UICamObjectTable[Number(a)][UICamObjectId.aiprivacy_onoff];c.prop("disabled")||(c.val(b),SelectCameraInfoAIPrivacy[Number(a)-1].num=Number(b)?Number(UICamObjectTable[Number(a)][UICamObjectId.detail_num].val()):0)}}
function CheckChgBitrate(){for(var a=0;a<CamSettingMaxNum;a++)if(0<UICamObjectTable[a+1][UICamObjectId.detail_num].val()&&0<UICamObjectTable[a+1][UICamObjectId.detail_model].val()){UICamObjectTable[0][UICamObjectId.advance_chgbitrate].prop("disabled",!1);return}UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked=!1;SelectBitrateset(UICamObjectTable[0][UICamObjectId.advance_chgbitrate]);for(a=0;a<CamSettingMaxNum;a++)SelectCameraInfo[Number(a)].bitrate=0;UICamObjectTable[0][UICamObjectId.advance_chgbitrate].prop("disabled",
!0)}
function SelectBitrateset(a){if(1==a.checked)for(a=0;a<CamSettingMaxNum;a++){var b=("00"+(a+1)).slice(-3);b=document.getElementById("reccond_advance_"+b+"_bitrate");b.readOnly=!1}else{for(a=0;a<CamSettingMaxNum;a++)b=("00"+(a+1)).slice(-3),b=document.getElementById("reccond_advance_"+b+"_bitrate"),b.readOnly=!0,SelectCameraInfo[Number(a)].bitrate=0,UICamObjectTable[Number(a+1)][UICamObjectId.detail_model].prop("disabled",!1),s_app_dst_ipro_eu_ja!=s_app_dst&&(UICamObjectTable[Number(a+1)][UICamObjectId.detail_comp].prop("disabled",!1),
UICamObjectTable[Number(a+1)][UICamObjectId.detail_reso].prop("disabled",!1),UICamObjectTable[Number(a+1)][UICamObjectId.detail_fps].prop("disabled",!1),UICamObjectTable[Number(a+1)][UICamObjectId.detail_qual].prop("disabled",!1)),UICamObjectTable[Number(a+1)][UICamObjectId.advance_smartcoding].prop("disabled",!1),UICamObjectTable[Number(a+1)][UICamObjectId.advance_chgbitrate][0].val=0;DoCalculate()}}
function SelectCamFaceMatchListOne(a,b){SelectCameraInfo[Number(a)-1].facematchId=Number(b);CamFaceMatchId.On==b?(UICamObjectTable[Number(a)][UICamObjectId.detail_comp].prop("disabled",!0),UICamObjectTable[Number(a)][UICamObjectId.detail_reso].val(CamResoId.r1280_0960),UICamObjectTable[Number(a)][UICamObjectId.detail_reso].trigger("change"),UICamObjectTable[Number(a)][UICamObjectId.detail_reso].prop("disabled",!0),UICamObjectTable[Number(a)][UICamObjectId.detail_fps].val(CamFpsId.f05),UICamObjectTable[Number(a)][UICamObjectId.detail_fps].trigger("change"),
UICamObjectTable[Number(a)][UICamObjectId.detail_fps].prop("disabled",!0),UICamObjectTable[Number(a)][UICamObjectId.detail_qual].val(CamQualId.SF),UICamObjectTable[Number(a)][UICamObjectId.detail_qual].trigger("change"),UICamObjectTable[Number(a)][UICamObjectId.detail_qual].prop("disabled",!0)):(UICamObjectTable[Number(a)][UICamObjectId.detail_comp].prop("disabled",!1),UICamObjectTable[Number(a)][UICamObjectId.detail_reso].prop("disabled",!1),UICamObjectTable[Number(a)][UICamObjectId.detail_fps].prop("disabled",
!1),UICamObjectTable[Number(a)][UICamObjectId.detail_qual].prop("disabled",!1))}
function SetCamFaceMatchList(a,b,c){var d=UICamObjectTable[Number(a)][UICamObjectId.advance_facematch],e="";b=CamModelList[b].typeid;if(0<Number(a)){var f=CamTypeFaceMatchList[b].length,g=Number($(d).val());$(d).children().remove();for(var h=0;h<f;h++){var k=CamTypeFaceMatchList[b][h];if(CamFaceMatchId.Off==k||CamCompId.H265_1==Number(c)||CamCompId.H264_1==Number(c))e+='<option value="'+k+'">'+CamFaceMatchList[k]+"</option>"}$(d).append(e);SetCamFaceMatchValue(d,b,g,!0);SelectCameraInfo[Number(a)-
1].facematchId=Number($(d).val());CamFaceMatchId.Off==SelectCameraInfo[Number(a)-1].facematchId&&(UICamObjectTable[Number(a)][UICamObjectId.detail_comp].prop("disabled",!1),UICamObjectTable[Number(a)][UICamObjectId.detail_reso].prop("disabled",!1),UICamObjectTable[Number(a)][UICamObjectId.detail_fps].prop("disabled",!1),UICamObjectTable[Number(a)][UICamObjectId.detail_qual].prop("disabled",!1))}else $(d).children().remove(),e+='<option value="-1">'+s_blank+"</option>",Object.keys(CamFaceMatchId).forEach(function(m){m=
this[m];e+='<option value="'+m+'">'+CamFaceMatchList[m]+"</option>"},CamFaceMatchId),$(d).append(e);return Number($(d).val())}function SetCamFaceMatchValue(a,b,c,d){1==SearchOptionValue(a,c)?$(a).val(c):1==d&&$(a).val(CamTypeFaceMatchList[b][0])}
function ChgRecodingGroupToHDDMode(){if(s_model_name==s_recresult_model_nx200||s_model_name==s_recresult_model_nx100||s_model_name==s_recresult_model_nu301||s_model_name==s_recresult_model_nu300||s_model_name==s_recresult_model_nu201||s_model_name==s_recresult_model_nu101)if(HddConfigModeId.Single!=Number(UIRecObjectTable[UIRecObjectId.hddmode].val())){for(var a=0;a<=CamSettingMaxNum;a++){var b=("00"+a).slice(-3),c=UICamObjectTable[Number(b)][UICamObjectId.advance_recgroup];0<a&&($(c).val(1),SelectCamRecGroupListOne(b,
1));$(c).attr("disabled",!0)}s_model_name==s_recresult_model_nx200&&(s_app_dst_ja==s_app_dst?($("#text_recresult_hdd_recgroup1_02_01").css("display","none"),$("#text_recresult_hdd_recgroup2_02_02").css("display","none"),$("#recresult_estimaterecdays_nx200_02_2").css("display","none"),$("#text_recresult_days_unit_02_02").css("display","none"),$("#text_recresult_hdd_recgroup1_03_01").css("display","none"),$("#text_recresult_hdd_recgroup2_03_02").css("display","none"),$("#recresult_estimaterecdays_nx200_03_2").css("display",
"none"),$("#text_recresult_days_unit_03_02").css("display","none"),$("#text_recresult_hdd_recgroup1_04_01").css("display","none"),$("#text_recresult_hdd_recgroup2_04_02").css("display","none"),$("#recresult_estimaterecdays_nx200_04_2").css("display","none"),$("#text_recresult_days_unit_04_02").css("display","none")):s_app_dst_ipro_ja==s_app_dst?($("#text_recresult_hdd_recgroup1_08_01").css("display","none"),$("#text_recresult_hdd_recgroup2_08_02").css("display","none"),$("#recresult_estimaterecdays_nx200_08_2").css("display",
"none"),$("#text_recresult_days_unit_08_02").css("display","none"),$("#text_recresult_hdd_recgroup1_09_01").css("display","none"),$("#text_recresult_hdd_recgroup2_09_02").css("display","none"),$("#recresult_estimaterecdays_nx200_09_2").css("display","none"),$("#text_recresult_days_unit_09_02").css("display","none"),$("#text_recresult_hdd_recgroup1_10_01").css("display","none"),$("#text_recresult_hdd_recgroup2_10_02").css("display","none"),$("#recresult_estimaterecdays_nx200_10_2").css("display","none"),
$("#text_recresult_days_unit_10_02").css("display","none")):($("#text_recresult_hdd_recgroup1_03_01").css("display","none"),$("#text_recresult_hdd_recgroup2_03_02").css("display","none"),$("#recresult_estimaterecdays_nx200_03_2").css("display","none"),$("#text_recresult_days_unit_03_02").css("display","none"),$("#text_recresult_hdd_recgroup1_04_01").css("display","none"),$("#text_recresult_hdd_recgroup2_04_02").css("display","none"),$("#recresult_estimaterecdays_nx200_04_2").css("display","none"),
$("#text_recresult_days_unit_04_02").css("display","none"),$("#text_recresult_hdd_recgroup1_05_01").css("display","none"),$("#text_recresult_hdd_recgroup2_05_02").css("display","none"),$("#recresult_estimaterecdays_nx200_05_2").css("display","none"),$("#text_recresult_days_unit_05_02").css("display","none"),$("#text_recresult_hdd_recgroup1_06_01").css("display","none"),$("#text_recresult_hdd_recgroup2_06_02").css("display","none"),$("#recresult_estimaterecdays_nx200_06_2").css("display","none"),$("#text_recresult_days_unit_06_02").css("display",
"none"),$("#text_recresult_hdd_recgroup1_07_01").css("display","none"),$("#text_recresult_hdd_recgroup2_07_02").css("display","none"),$("#recresult_estimaterecdays_nx200_07_2").css("display","none"),$("#text_recresult_days_unit_07_02").css("display","none")))}else for(a=0;a<=CamSettingMaxNum;a++)b=("00"+a).slice(-3),c=UICamObjectTable[Number(b)][UICamObjectId.advance_recgroup],$(c).attr("disabled",!1)}
function SelectRecNumList(a){a=Number($(a).val());if(s_model_name!=s_recresult_model_nx400)return!1;RecNumId.Auto==a?($(UIOtherObjectTable_NX400[UIOtherObjectId.recgroup1]).val(RecGroupId.d000),SelectRecGroupList($(UIOtherObjectTable_NX400[UIOtherObjectId.recgroup1])),$(UIOtherObjectTable_NX400[UIOtherObjectId.recgroup1]).attr("disabled",!0),$(UIOtherObjectTable_NX400[UIOtherObjectId.recdays1]).attr("disabled",!1),$(UIOtherObjectTable_NX400[UIOtherObjectId.recgroup2]).val(RecGroupId.d000),SelectRecGroupList($(UIOtherObjectTable_NX400[UIOtherObjectId.recgroup2])),
$(UIOtherObjectTable_NX400[UIOtherObjectId.recgroup2]).attr("disabled",!0),$(UIOtherObjectTable_NX400[UIOtherObjectId.recdays2]).attr("disabled",!0)):($(UIOtherObjectTable_NX400[UIOtherObjectId.recgroup1]).attr("disabled",!1),$(UIOtherObjectTable_NX400[UIOtherObjectId.recdays1]).attr("disabled",!1),$(UIOtherObjectTable_NX400[UIOtherObjectId.recgroup2]).attr("disabled",!1),$(UIOtherObjectTable_NX400[UIOtherObjectId.recdays2]).attr("disabled",!1))}
function SelectCalcMethodList(a){var b=Number($(a).val());a=NwdrModelId.nx300_08-NwdrModelId.nx300_01+1;if(s_model_name!=s_recresult_model_nx300)return!1;if(SystemConfigId.MainUnit==b){$(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup1]).val(RecGroupId.d000);SelectRecGroupList($(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup1]));$(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup1]).attr("disabled",!0);$(UIOtherObjectTable_NX300[UIOtherObjectId.recdays1]).attr("disabled",!1);$(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup2]).val(RecGroupId.d000);
SelectRecGroupList($(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup2]));$(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup2]).attr("disabled",!0);$(UIOtherObjectTable_NX300[UIOtherObjectId.recdays2]).attr("disabled",!0);if("none"==$("#text_recresult_maxrecdays_mainunit_nx300").css("display"))for($("#text_recresult_maxrecdays_mainunit_nx300").css("display","table-cell"),b=1;b<=a;b++){var c=("00"+b).slice(-2);$("#recresult_maxrecdays_mainunit_nx300_"+c).css("display","inline")}if("none"!=$("#text_recresult_maxrecdays_calc_nx300").css("display"))for($("#text_recresult_maxrecdays_calc_nx300").css("display",
"none"),b=1;b<=a;b++)c=("00"+b).slice(-2),$("#recresult_maxrecdays_nx300_"+c).css("display","none");recdays_1_nx300=Number(UIOtherObjectTable_NX300[UIOtherObjectId.recdays1].val());DisableResultItem("reccond_estcondition_recdays_1_nx300")}else{$(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup1]).attr("disabled",!1);$(UIOtherObjectTable_NX300[UIOtherObjectId.recdays1]).attr("disabled",!1);$(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup2]).attr("disabled",!1);$(UIOtherObjectTable_NX300[UIOtherObjectId.recdays2]).attr("disabled",
!1);if("none"==$("#text_recresult_maxrecdays_calc_nx300").css("display"))for($("#text_recresult_maxrecdays_calc_nx300").css("display","table-cell"),b=1;b<=a;b++)c=("00"+b).slice(-2),$("#recresult_maxrecdays_nx300_"+c).css("display","inline");if("none"!=$("#text_recresult_maxrecdays_mainunit_nx300").css("display"))for($("#text_recresult_maxrecdays_mainunit_nx300").css("display","none"),b=1;b<=a;b++)c=("00"+b).slice(-2),$("#recresult_maxrecdays_mainunit_nx300_"+c).css("display","none");EnableResultItem("reccond_estcondition_recdays_1_nx300");
UIOtherObjectTable_NX300[UIOtherObjectId.recdays1].val(recdays_1_nx300)}}
function SelectHDDSettingList(a){if(s_model_name!=s_recresult_model_nx200)return!1;a=Number($(a).val());if(HddConfigModeId.Raid1==a){for(a=0;a<=CamSettingMaxNum;a++){var b=("00"+a).slice(-3),c=UICamObjectTable[Number(b)][UICamObjectId.advance_recgroup];0<a&&($(c).val(1),SelectCamRecGroupListOne(b,1));$(c).attr("disabled",!0)}s_app_dst_ja==s_app_dst?($("#text_recresult_hdd_recgroup1_02_01").css("display","none"),$("#text_recresult_hdd_recgroup2_02_02").css("display","none"),$("#recresult_estimaterecdays_nx200_02_2").css("display",
"none"),$("#text_recresult_days_unit_02_02").css("display","none"),$("#text_recresult_hdd_recgroup1_03_01").css("display","none"),$("#text_recresult_hdd_recgroup2_03_02").css("display","none"),$("#recresult_estimaterecdays_nx200_03_2").css("display","none"),$("#text_recresult_days_unit_03_02").css("display","none"),$("#text_recresult_hdd_recgroup1_04_01").css("display","none"),$("#text_recresult_hdd_recgroup2_04_02").css("display","none"),$("#recresult_estimaterecdays_nx200_04_2").css("display","none"),
$("#text_recresult_days_unit_04_02").css("display","none")):s_app_dst_ipro_ja==s_app_dst?($("#text_recresult_hdd_recgroup1_08_01").css("display","none"),$("#text_recresult_hdd_recgroup2_08_02").css("display","none"),$("#recresult_estimaterecdays_nx200_08_2").css("display","none"),$("#text_recresult_days_unit_08_02").css("display","none"),$("#text_recresult_hdd_recgroup1_09_01").css("display","none"),$("#text_recresult_hdd_recgroup2_09_02").css("display","none"),$("#recresult_estimaterecdays_nx200_09_2").css("display",
"none"),$("#text_recresult_days_unit_09_02").css("display","none"),$("#text_recresult_hdd_recgroup1_10_01").css("display","none"),$("#text_recresult_hdd_recgroup2_10_02").css("display","none"),$("#recresult_estimaterecdays_nx200_10_2").css("display","none"),$("#text_recresult_days_unit_10_02").css("display","none")):($("#text_recresult_hdd_recgroup1_03_01").css("display","none"),$("#text_recresult_hdd_recgroup2_03_02").css("display","none"),$("#recresult_estimaterecdays_nx200_03_2").css("display",
"none"),$("#text_recresult_days_unit_03_02").css("display","none"),$("#text_recresult_hdd_recgroup1_04_01").css("display","none"),$("#text_recresult_hdd_recgroup2_04_02").css("display","none"),$("#recresult_estimaterecdays_nx200_04_2").css("display","none"),$("#text_recresult_days_unit_04_02").css("display","none"),$("#text_recresult_hdd_recgroup1_05_01").css("display","none"),$("#text_recresult_hdd_recgroup2_05_02").css("display","none"),$("#recresult_estimaterecdays_nx200_05_2").css("display","none"),
$("#text_recresult_days_unit_05_02").css("display","none"),$("#text_recresult_hdd_recgroup1_06_01").css("display","none"),$("#text_recresult_hdd_recgroup2_06_02").css("display","none"),$("#recresult_estimaterecdays_nx200_06_2").css("display","none"),$("#text_recresult_days_unit_06_02").css("display","none"),$("#text_recresult_hdd_recgroup1_07_01").css("display","none"),$("#text_recresult_hdd_recgroup2_07_02").css("display","none"),$("#recresult_estimaterecdays_nx200_07_2").css("display","none"),$("#text_recresult_days_unit_07_02").css("display",
"none"))}else for(a=0;a<=CamSettingMaxNum;a++)b=("00"+a).slice(-3),c=UICamObjectTable[Number(b)][UICamObjectId.advance_recgroup],$(c).attr("disabled",!1)}
function SelectRecGroupList(a){var b=$(a).attr("id").split("_");b=b[b.length-2];a=Number($(a).val());b=s_model_name==s_recresult_model_nx300?$("#reccond_estcondition_recdays_"+b+"_nx300"):$("#reccond_estcondition_recdays_"+b+"_nx400");RecGroupId.d000==a?($(b).attr("disabled",!1),$(b).attr("readonly",!1)):($(b).attr("disabled",!0),$(b).attr("readonly",!0),$(b).val(RecGroupList[a].days))}
function SetPoeCam(a,b){a=UICamObjectTable[Number(a)][UICamObjectId.poe_model];$(a).val(b);return Number($(a).val())}function SetPoePreCompCam(a,b){a=UIPreCompCamObjectTable[Number(a)][UICamObjectId.poe_model];$(a).val(b);return Number($(a).val())}
function SetPoeCamType(a,b){a=Number(a);var c=UICamObjectTable[a][UICamObjectId.poe_modeltype];0<a?($(c).val(CamPoeList[b].modeltype),b==CamPoeList.length-1?($(c).attr("readonly",!1),$(c).css("background-color","#FFFFFF")):$(c).css("background-color","#E3E3E3")):c.val("");return Number($(c).val())}
function SetPoePreCompCamType(a,b){a=Number(a);var c=UIPreCompCamObjectTable[a][UICamObjectId.poe_modeltype];0<a?($(c).val(CamPoeList[b].modeltype),b==CamPoeList.length-1?($(c).attr("readonly",!1),$(c).css("background-color","#FFFFFF")):$(c).css("background-color","#E3E3E3")):c.val("");return Number($(c).val())}
function SetPoePowerType(a,b){a=Number(a);var c=UICamObjectTable[a][UICamObjectId.poe_powertype],d=UICamObjectTable[a][UICamObjectId.poe_powertypesel];0<a?$(c).val(CamPoeList[b].powertype):c.val("");b==CamPoeList.length-1&&$(d).css("background-color","#FFFFFF");return Number($(c).val())}
function SetPoePreCompPowerType(a,b){a=Number(a);var c=UIPreCompCamObjectTable[a][UICamObjectId.poe_powertype],d=UIPreCompCamObjectTable[a][UICamObjectId.poe_powertypesel];0<a?$(c).val(CamPoeList[b].powertype):c.val("");b==CamPoeList.length-1&&$(d).css("background-color","#FFFFFF");return Number($(c).val())}
function SetPoePowerClass(a,b){a=Number(a);var c=UICamObjectTable[a][UICamObjectId.poe_powerclass],d=UICamObjectTable[a][UICamObjectId.poe_powerclasssel];0<a?$(c).val(CamPoeList[b].powerclass):c.val("");b==CamPoeList.length-1&&$(d).css("background-color","#FFFFFF");return Number($(c).val())}
function SetPoePreCompPowerClass(a,b){a=Number(a);var c=UIPreCompCamObjectTable[a][UICamObjectId.poe_powerclass],d=UIPreCompCamObjectTable[a][UICamObjectId.poe_powerclasssel];0<a?$(c).val(CamPoeList[b].powerclass):c.val("");b==CamPoeList.length-1&&$(d).css("background-color","#FFFFFF");return Number($(c).val())}
function SetPoeModelPower(a,b){var c=Number(a);a=UICamObjectTable[c][UICamObjectId.poe_modelpower];var d=CamPoeList[b].modelpower;0<c?b==CamPoeList.length-1?(b=0,$(a).val(b.toFixed(1)+"W"),$(a).css("background-color","#E3E3E3"),$(a).attr("readonly",!1),$(a).css("background-color","#FFFFFF"),$(a).prop("disabled",!1)):0==b?(a.val(""),$(a).css("background-color","#E3E3E3"),$(a).prop("disabled",!0)):-1==d?$(a).val(""):(0==d?$(a).val(s_poecond_message_notsupported):(b=Math.round(10*CamPoeList[b].modelpower)/
10,$(a).val(b.toFixed(1)+"W"),$(a).css("background-color","#E3E3E3")),$(a).prop("disabled",!0)):(a.val(""),$(a).css("background-color","#E3E3E3"));return Number($(a).val())}
function SetPoePreCompModelPower(a,b){var c=Number(a);a=UIPreCompCamObjectTable[c][UICamObjectId.poe_modelpower];var d=CamPoeList[b].modelpower;0<c?b==CamPoeList.length-1?(b=0,$(a).val(b.toFixed(1)+"W"),$(a).css("background-color","#E3E3E3"),$(a).attr("readonly",!1),$(a).css("background-color","#FFFFFF"),$(a).prop("disabled",!1)):0==b?(a.val(""),$(a).css("background-color","#E3E3E3"),$(a).prop("disabled",!0)):-1==d?$(a).val(""):(0==d?$(a).val(s_poecond_message_notsupported):(b=Math.round(10*CamPoeList[b].modelpower)/
10,$(a).val(b.toFixed(1)+"W"),$(a).css("background-color","#E3E3E3")),$(a).prop("disabled",!0)):(a.val(""),$(a).css("background-color","#E3E3E3"));return Number($(a).val())}function GetModeIdInCameraSetting(a){a="reccond_poe_"+("00"+a).slice(-3)+"_model";return Number(document.getElementById(a).value)}function GetModeIdInCameraSettingPreComp(a){a="precomp_poe_"+("00"+a).slice(-3)+"_model";return Number(document.getElementById(a).value)}
function GetSwNoInCameraSetting(){var a=document.getElementById("sw_no").textContent;return Number(a)}function GetSwIdInCameraSetting(){var a=document.getElementById("sw_no").textContent;return Number(document.getElementById("reccond_poesw_"+a+"_model").value)}
function SetPoeExternalPower(a,b,c){var d=Number(a);a=UICamObjectTable[d][UICamObjectId.poe_externalpower];var e=CamPoeList[b].modelpower;if(b==CamPoeList.length-1){var f=UICamObjectTable[d][UICamObjectId.poe_powertypesel];f=Number($(f).val())}else f=UICamObjectTable[d][UICamObjectId.poe_powertype],$(f).val(),f=GetPowerTypeIndex($(f).val());var g=document.getElementById("sw_no").textContent,h=Number(document.getElementById("reccond_poesw_"+g+"_model").value);(h==SwitchPoeList.length-1?GetPowerTypeIndex(HubPoeList[Number(g)].powertype):
GetPowerTypeIndex(SwitchPoeList[h].powertype))<f&&(e=0);0<SwitchPoeList[h].isPRseries&&0==SwitchPoeList[h].isAcAdapter&&(2==SwitchPoeList[h].isPRseries?1<f&&(e=0):4==SwitchPoeList[h].isPRseries&&0<f&&(e=0));if(0<d)0==e?($(a).prop("disabled",!0),$(a).prop("checked",!0),Number(b)<default_sw_maxnum||0<SwitchPoeList[h].isPRseries||(alert_force_acadapter=1)):0==c?(b<default_sw_maxnum?$(a).prop("disabled",!0):$(a).prop("disabled",!1),$(a).prop("checked",!1)):($(a).prop("disabled",!1),$(a).prop("checked",
!0));else{for(c=1;c<=CamSettingMaxNum;c++)a=UICamObjectTable[c][UICamObjectId.poe_externalpower],b=$(a).prop("disabled"),0==b&&(0==poe_extpow_toggle?$(a).prop("checked",!0):$(a).prop("checked",!1));a=UICamObjectTable[0][UICamObjectId.poe_externalpower];$(a).prop("checked",!1);poe_extpow_toggle=0==poe_extpow_toggle?!0:!1}return Number($(a).val())}
function SetPoePreCompExternalPower(a,b,c){var d=Number(a);a=UIPreCompCamObjectTable[d][UICamObjectId.poe_externalpower];var e=CamPoeList[b].modelpower;if(b==CamPoeList.length-1){var f=UIPreCompCamObjectTable[d][UICamObjectId.poe_powertypesel];$(f).val()}else f=UIPreCompCamObjectTable[d][UICamObjectId.poe_powertype],$(f).val(),GetPowerTypeIndex($(f).val());if(0<d)0==e?($(a).prop("disabled",!0),$(a).prop("checked",!0),Number(b)<default_sw_maxnum||0<SwitchPoeList[swid].isPRseries||(alert_force_acadapter=
1)):0==c?(b<default_sw_maxnum?$(a).prop("disabled",!0):$(a).prop("disabled",!1),$(a).prop("checked",!1)):($(a).prop("disabled",!1),$(a).prop("checked",!0));else{for(c=1;c<=CamSettingMaxNum;c++)a=UIPreCompCamObjectTable[c][UICamObjectId.poe_externalpower],b=$(a).prop("disabled"),0==b&&(0==poe_extpow_toggle?$(a).prop("checked",!0):$(a).prop("checked",!1));a=UIPreCompCamObjectTable[0][UICamObjectId.poe_externalpower];$(a).prop("checked",!1);poe_extpow_toggle=0==poe_extpow_toggle?!0:!1}return Number($(a).val())}
function SetPoeCableLength(a,b,c){var d=Number(a),e=UICamObjectTable[d][UICamObjectId.poe_cablelength];0<d?1==c?(e.val(""),e.prop("disabled",!0)):0==poe_cablelen_unit_m?(e.prop("disabled",!1),b=b<minval_feet?minval_feet:b>maxval_feet?maxval_feet:b,e.val(String(b)),array_poe_cablelen_m[Number(a)]=Math.ceil(b*meter_per_feet),array_poe_cablelen_ft[Number(a)]=b):(e.prop("disabled",!1),b=b<minval_meter?minval_meter:b>maxval_meter?maxval_meter:b,e.val(String(b)),array_poe_cablelen_m[Number(a)]=b,array_poe_cablelen_ft[Number(a)]=
Math.floor(b*feet_per_meter)):e.val("")}
function SetPoePreCompCableLength(a,b,c){var d=Number(a),e=UIPreCompCamObjectTable[d][UICamObjectId.poe_cablelength];0<d?1==c?(e.val(""),e.prop("disabled",!0)):0==poe_precomp_cablelen_unit_m?(e.prop("disabled",!1),b=b<minval_feet?minval_feet:b>maxval_feet?maxval_feet:b,e.val(String(b)),array_poe_precomp_cablelen_m[Number(a)]=Math.ceil(b*meter_per_feet),array_poe_precomp_cablelen_ft[Number(a)]=b):(e.prop("disabled",!1),b=b<minval_meter?minval_meter:b>maxval_meter?maxval_meter:b,e.val(String(b)),array_poe_precomp_cablelen_m[Number(a)]=
b,array_poe_precomp_cablelen_ft[Number(a)]=Math.floor(b*feet_per_meter)):e.val("")}function createPoeHubInfoTable(a,b,c,d,e,f,g,h){for(var k=[],m=0;m<g;m++)k.push(new PoeCamInfo(m+1,-1,"","","","",0,!1,!0,100,0,-1));return new PoeHubInfo(a,b,c,d,e,f,g,h,0,k,!1,!1,!1)}
function LoadSwitchCameraSetting(){var a=document.getElementById("sw_no"),b=a.textContent,c=Number(document.getElementById("reccond_poesw_"+b+"_model").value);0!=SwitchPoeList[c].isPRseries&&(document.getElementById("sw_model").innerHTML=hubname_prseries+"<br>(WJ-PC200 x "+GetSwConnectedCamNum(Number(b)-1)+")");if(c==resultPoEHubInfo[Number(b)-1].hubno){UpdatePoeCamModelList();for(var d=0;d<resultPoEHubInfo[Number(b)-1].maxportnum;d++){var e="reccond_poe_"+("00"+(d+1)).slice(-3),f=e+"_model";f=document.getElementById(f);
a=resultPoEHubInfo[Number(b)-1].caminfolist[d].camno;if(0>a)a=0,$(f).val(a);else{$(f).val(a);f=e+"_modeltype";f=document.getElementById(f);$(f).val(resultPoEHubInfo[Number(b)-1].caminfolist[d].camtype);Number(a)==CamPoeList.length-1?($(f).attr("readonly",!1),$(f).css("background-color","#FFFFFF")):($(f).attr("readonly",!0),$(f).css("background-color","#E3E3E3"));f=e+"_powertype";f=document.getElementById(f);var g=e+"_powertypesel";g=document.getElementById(g);Number(a)==CamPoeList.length-1?($(g).val(resultPoEHubInfo[Number(b)-
1].caminfolist[d].powertype),$(g).show(),$(f).hide()):($(f).val(resultPoEHubInfo[Number(b)-1].caminfolist[d].powertype),$(g).hide(),$(f).show());f=e+"_powerclass";f=document.getElementById(f);g=e+"_powerclasssel";g=document.getElementById(g);Number(a)==CamPoeList.length-1?(InitPoePowerClass(d+1,Number(resultPoEHubInfo[Number(b)-1].caminfolist[d].powertype)),$(g).val(resultPoEHubInfo[Number(b)-1].caminfolist[d].powerclass),$(g).show(),$(f).hide()):($(f).val(resultPoEHubInfo[Number(b)-1].caminfolist[d].powerclass),
$(g).hide(),$(f).show());f=e+"_modelpower";f=document.getElementById(f);$(f).val(resultPoEHubInfo[Number(b)-1].caminfolist[d].power);f=e+"_acadapter";f=document.getElementById(f);a="reccond_poesw_"+("00"+(d+1)).slice(-3)+"_model";a=document.getElementById(a);$(a).val();a=cur_sw_id;0<SwitchPoeList[a].isPRseries?($(f).prop("checked",resultPoEHubInfo[Number(b)-1].caminfolist[d].acadapter),$(f).prop("disabled",resultPoEHubInfo[Number(b)-1].caminfolist[d].disabledacadapter)):0==Number(resultPoEHubInfo[Number(b)-
1].caminfolist[d].camno)?($(f).prop("checked",!1),$(f).prop("disabled",!0)):c==SwitchPoeList.length-1?GetPowerTypeIndex(HubPoeList[Number(b)].powertype)>=GetPowerTypeIndex(resultPoEHubInfo[Number(b)-1].caminfolist[d].powertype)?($(f).prop("checked",resultPoEHubInfo[Number(b)-1].caminfolist[d].acadapter),$(f).prop("disabled",resultPoEHubInfo[Number(b)-1].caminfolist[d].disabledacadapter)):($(f).prop("checked",!0),$(f).prop("disabled",!0)):GetPowerTypeIndex(SwitchPoeList[c].powertype)>=GetPowerTypeIndex(resultPoEHubInfo[Number(b)-
1].caminfolist[d].powertype)?($(f).prop("checked",resultPoEHubInfo[Number(b)-1].caminfolist[d].acadapter),$(f).prop("disabled",resultPoEHubInfo[Number(b)-1].caminfolist[d].disabledacadapter)):($(f).prop("checked",!0),$(f).prop("disabled",!0));f=e+"_cablelength";f=document.getElementById(f);0==Number(resultPoEHubInfo[Number(b)-1].caminfolist[d].camno)?($(f).val(""),$(f).prop("disabled",!0)):($(f).val(resultPoEHubInfo[Number(b)-1].caminfolist[d].cablelength),$(f).prop("disabled",!1));f=e+"_psepower";
f=document.getElementById(f);$(f).val(resultPoEHubInfo[Number(b)-1].caminfolist[d].psepower);f=e+"_portnum";f=document.getElementById(f);e=resultPoEHubInfo[Number(b)-1].caminfolist[d].portnum;9999==e?$(f).val(""):$(f).val(e)}}}}function GetSwitchNoInCameraSetting(){var a="",b=document.getElementById("sw_no");null!=b&&(a=b.textContent);return a}
function SetResultPoeHubInfo(a){var b="#reccond_poesw_"+("00"+a).slice(-3),c=Number($(b+"_model").val());if(0==resultPoEHubInfo[a-1].caminfolist.length){var d=("00"+a).slice(-3);if(c==SwitchPoeList.length-1){var e=$(b+"_powertypesel").val(),f=$(b+"_psepower").val();f=Number(f.substr(0,f.length-1));var g=$(b+"_portnum").val();hubinfo=createPoeHubInfoTable(Number(d),c,SwitchPoeList[c].model,SwitchPoeList[c].modeltype,PoePowerTypeList[e].powertype,f,g,0);HubPoeList[a].powertype=PoePowerTypeList[e].powertype}else hubinfo=
createPoeHubInfoTable(Number(d),c,SwitchPoeList[c].model,SwitchPoeList[c].modeltype,SwitchPoeList[c].powertype,SwitchPoeList[c].modelpower,SwitchPoeList[c].hubportnum,0);resultPoEHubInfo[a-1]=hubinfo}b=Number($(b+"_customerdesc").val());resultPoEHubInfo[a-1].text=b}
function SaveSwitchCameraSetting(){var a=document.getElementById("sw_no").textContent,b=Number(document.getElementById("reccond_poesw_"+a+"_model").value);var c=b==SwitchPoeList.length-1?createPoeHubInfoTable(Number(a),b,SwitchPoeList[b].model,SwitchPoeList[b].modeltype,cur_sw_powertype,cur_sw_modelpower,cur_sw_portnum,0):createPoeHubInfoTable(Number(a),b,SwitchPoeList[b].model,SwitchPoeList[b].modeltype,SwitchPoeList[b].powertype,SwitchPoeList[b].modelpower,SwitchPoeList[b].hubportnum,0);$('[id^="reccond_poe_"]').each(function(d,
e){d=$(e).attr("id");if(-1==d.indexOf("develop")){var f=d.split("_");d=f[1];var g=f[f.length-1];f=f[f.length-2];0<Number(f)&&-1!=d.indexOf("poe")&&(-1!=g.indexOf("modeltype")?c.caminfolist[Number(f)-1].camtype=e.value:-1!=g.indexOf("modelpower")?c.caminfolist[Number(f)-1].power=e.value:-1!=g.indexOf("model")?(c.caminfolist[Number(f)-1].camno=e.value,SaveSwitchCameraSettingModelId=Number(e.value),c.caminfolist[Number(f)-1].camname=CamPoeList[SaveSwitchCameraSettingModelId].model):-1!=g.indexOf("powertypesel")?
SaveSwitchCameraSettingModelId==CamPoeList.length-1&&(c.caminfolist[Number(f)-1].powertype=e.value):-1!=g.indexOf("powertype")?SaveSwitchCameraSettingModelId!=CamPoeList.length-1&&(c.caminfolist[Number(f)-1].powertype=e.value):-1!=g.indexOf("powerclasssel")?SaveSwitchCameraSettingModelId==CamPoeList.length-1&&(c.caminfolist[Number(f)-1].powerclass=e.value):-1!=g.indexOf("powerclass")?SaveSwitchCameraSettingModelId!=CamPoeList.length-1&&(c.caminfolist[Number(f)-1].powerclass=e.value):-1!=g.indexOf("acadapter")?
(c.caminfolist[Number(f)-1].acadapter=$(e).prop("checked"),c.caminfolist[Number(f)-1].disabledacadapter=$(e).prop("disabled")):-1!=g.indexOf("cablelength")?c.caminfolist[Number(f)-1].cablelength=e.value:-1!=g.indexOf("psepower")?c.caminfolist[Number(f)-1].psepower=e.value:-1!=g.indexOf("portnum")?c.caminfolist[Number(f)-1].portnum=e.value:g.indexOf("externalpower"))}});c.overpower=flag_overpower;resultPoEHubInfo[Number(a)-1]=c;return b}
function checkCameraSettingsOnLoad(a,b,c){a=!0;for(var d=0;d<b.caminfolist.length;d++){var e=Number(b.caminfolist[d].camno);if(0<e)if(e==CamPoeList.length-1){e=b.caminfolist[d].power;e=Number(e.substr(0,e.length-1));if(e>maxval_pdpower){a=!1;break}e=maxval_meter;0==c&&(e=maxval_feet);if(b.caminfolist[d].cablelength>e){a=!1;break}}else{if(0>e||e>CamPoeList.length){a=!1;break}if(50<Number(b.caminfolist[d].camno)&&b.caminfolist[d].powertype!=CamPoeList[Number(b.caminfolist[d].camno)].powertype){a=!1;
break}if(50<Number(b.caminfolist[d].camno)&&b.caminfolist[d].powerclass!=CamPoeList[Number(b.caminfolist[d].camno)].powerclass){a=!1;break}e=maxval_meter;0==c&&(e=maxval_feet);if(b.caminfolist[d].cablelength>e){a=!1;break}e=b.caminfolist[d].power;e=Number(e.substr(0,e.length-1));var f=Math.round(10*CamPoeList[Number(b.caminfolist[d].camno)].modelpower)/10;if(50<Number(b.caminfolist[d].camno)&&e!=f){a=!1;break}}}return a}
function fileChanged(a){for(var b=new FileReader,c=0;c<a.files.length;c++)b.readAsText(a.files[c],"UTF-8"),b.onload=()=>{var d=JSON.parse(b.result);document.getElementById("file1").value="";if("1.1.0.0"==d.toolversion&&"1.0.0.0"==d.dataversion&&d.language==s_LANG)console.log("data format ok.");else if("1.2.0.0"==d.toolversion&&"1.0.0.0"==d.dataversion&&d.language==s_LANG)console.log("data format ok.");else if("1.3.0.0"!=d.toolversion&&"1.3.1.0"!=d.toolversion||"1.0.0.0"!=d.dataversion||d.language!=
s_LANG)if("1.4.0.0"==d.toolversion&&"1.1.0.0"==d.dataversion&&d.language==s_LANG)console.log("data format ok.");else{alert(s_reccomp_load_error);return}else console.log("data format ok.");if("1.1.0.0"==d.toolversion)for(var e=0;e<d.data.length;e++)for(var f=0;f<d.data[e].caminfolist.length;f++)"0"!=d.data[e].caminfolist[f].camno&&(d.data[e].caminfolist[f].camno=String(convertmodelno_fromv11[Number(d.data[e].caminfolist[f].camno)]));else if("1.2.0.0"==d.toolversion)for(e=0;e<d.data.length;e++)for(f=
0;f<d.data[e].caminfolist.length;f++)"0"!=d.data[e].caminfolist[f].camno&&(d.data[e].caminfolist[f].camno=convertmodelno_fromv12[Number(d.data[e].caminfolist[f].camno)]);else if("1.3.0.0"==d.toolversion||"1.3.1.0"==d.toolversion)for(e=0;e<d.data.length;e++)for(f=0;f<d.data[e].caminfolist.length;f++)"0"!=d.data[e].caminfolist[f].camno&&(d.data[e].caminfolist[f].camno=convertmodelno_fromv13[Number(d.data[e].caminfolist[f].camno)]);else for(e=0;e<d.data.length;e++)for(f=0;f<d.data[e].caminfolist.length;f++)if("0"!=
d.data[e].caminfolist[f].camno){for(var g=0;g<CamPoeList.length;g++){var h=!1;if(d.data[e].caminfolist[f].camname==CamPoeList[g].model){h=!0;break}}h&&(d.data[e].caminfolist[f].camno=g)}for(e=0;e<d.dispswnum;e++)if(!(0>d.data[e].hubno))if(d.data[e].hubno==SwitchPoeList.length-1){if(d.data[e].maxportnum>maxval_portnum){alert(s_reccomp_load_error);return}if(d.data[e].maxpower>maxval_pdpower){alert(s_reccomp_load_error);return}}else{if(d.data[e].hubname!=SwitchPoeList[d.data[e].hubno].model){alert(s_reccomp_load_error);
return}if(d.data[e].powertype!=SwitchPoeList[d.data[e].hubno].powertype){alert(s_reccomp_load_error);return}if(d.data[e].maxportnum!=SwitchPoeList[d.data[e].hubno].hubportnum){alert(s_reccomp_load_error);return}if(d.data[e].maxpower!=SwitchPoeList[d.data[e].hubno].modelpower){alert(s_reccomp_load_error);return}}resultPoEHubInfo=d.data;current_sw_dispnum=d.dispswnum;poe_cablelen_unit_m=d.cablelengthunit;SetDispLineSwitch(current_sw_dispnum);for(e=0;e<default_sw_maxnum;e++){f="#reccond_poesw_"+("00"+
(e+1)).slice(-3)+"_model";$(f).val(resultPoEHubInfo[e].hubno);if(0<resultPoEHubInfo[e].hubno){0<SwitchPoeList[resultPoEHubInfo[e].hubno].isPRseries&&(CamPoeList[e+1].model=("00"+(e+1)).slice(-3)+"_"+resultPoEHubInfo[e].hubname,CamPoeList[e+1].modelpower=2==SwitchPoeList[resultPoEHubInfo[e].hubno].isPRseries?12.95:4==SwitchPoeList[resultPoEHubInfo[e].hubno].isPRseries?12.95:0,CamPoeList[e+1].modeltype=resultPoEHubInfo[e].text,CamPoeList[e+1].powertype=resultPoEHubInfo[e].powertype);f="#reccond_poesw_"+
("00"+(e+1)).slice(-3)+"_customerdesc";$(f).val(resultPoEHubInfo[e].text);$(f).prop("disabled",!1);f="reccond_poesw_"+("00"+(e+1)).slice(-3);d=document.getElementById(f+"_powertype");g=document.getElementById(f+"_powertypesel");if(resultPoEHubInfo[e].hubno==SwitchPoeList.length-1){for(f=h=0;f<PoePowerTypeList.length;f++)if(PoePowerTypeList[f].powertype==resultPoEHubInfo[e].powertype){h=f;break}$(g).val(h);$(g).show();$(d).hide()}else $(d).val(resultPoEHubInfo[e].powertype),$(g).hide(),$(d).show();
f="#reccond_poesw_"+("00"+(e+1)).slice(-3)+"_psepower";$(f).val(resultPoEHubInfo[e].maxpower.toFixed(1)+"W");resultPoEHubInfo[e].hubno==SwitchPoeList.length-1?($(f).attr("readonly",!1),$(f).css("background-color","#ffffff")):($(f).attr("readonly",!0),$(f).css("background-color","#e3e3e3"));f="#reccond_poesw_"+("00"+(e+1)).slice(-3)+"_portnum";$(f).val(resultPoEHubInfo[e].maxportnum);resultPoEHubInfo[e].hubno==SwitchPoeList.length-1?($(f).attr("readonly",!1),$(f).css("background-color","#ffffff")):
($(f).attr("readonly",!0),$(f).css("background-color","#e3e3e3"));for(f=g=d=0;f<resultPoEHubInfo[e].caminfolist.length;f++)0<Number(resultPoEHubInfo[e].caminfolist[f].camno)&&(d+=1,h=resultPoEHubInfo[e].caminfolist[f].psepower,g+=Number(h.substr(0,h.length-1)));f="#reccond_poesw_"+("00"+(e+1)).slice(-3)+"_camnum";$(f).val(d);h="";h=0<d?g>resultPoEHubInfo[e].maxpower?h+('<div id="reccond_poesw_'+("00"+(e+1)).slice(-3)+'_compcfg" class="reccond_data_style reccond_column_style reccond_txt_style_poe_no"><font color="red"><b>X</b></font></div>'):
h+('<div id="reccond_poesw_'+("00"+(e+1)).slice(-3)+'_compcfg" class="reccond_data_style reccond_column_style reccond_txt_style_poe_no"><font color="darkgreen"><b>\u2714</b></font></div>'):h+('<div id="reccond_poesw_'+("00"+(e+1)).slice(-3)+'_compcfg" class="reccond_data_style reccond_column_style reccond_txt_style_poe_no"></div>');f="#reccond_poesw_"+("00"+(e+1)).slice(-3)+"_compcfg";$(f).replaceWith(h)}else SelectSwitchModelListOne(String(e+1),"0");HubPoeList[e+1].connected_port_num=resultPoEHubInfo[e].camnum;
HubPoeList[e+1].modelpower=resultPoEHubInfo[e].maxpower;HubPoeList[e+1].powertype=resultPoEHubInfo[e].powertype;HubPoeList[e+1].portnum=resultPoEHubInfo[e].maxportnum;f=resultPoEHubInfo[e].hubno;-1==f&&(f=0);SetSwitchCfgButton(("00"+(e+1)).slice(-3),("00"+f).slice(-3),!0)}}}function sha256(a){a=(new TextEncoder).encode(a);a=crypto.subtle.digest("SHA-256",a);return Array.from(new Uint8Array(a)).map(b=>b.toString(16).padStart(2,"0")).join("")}
function hash(a){a=(new TextEncoder).encode(a);return crypto.subtle.digest("SHA-256",a).then(b=>Array.from(new Uint8Array(b)).map(c=>c.toString(16).padStart(2,"0")).join(""))}
function SavePoeHubInfoToFile(){$("#btn_savefile").prop("disabled",!0);var a=new Date,b=a.getFullYear(),c=("00"+String(Number(a.getMonth())+1)).slice(-2),d=("00"+a.getDate()).slice(-2),e=("00"+a.getHours()).slice(-2),f=("00"+a.getMinutes()).slice(-2);a=("00"+a.getSeconds()).slice(-2);for(var g=0;g<resultPoEHubInfo.length;g++){var h="#reccond_poesw_"+("00"+(g+1)).slice(-3)+"_customerdesc";resultPoEHubInfo[g].text=$(h).val()}fileinfo=new saveHubInfo(s_toolversion,s_dataversion,b+c+d+e+f+a,s_LANG,current_sw_dispnum,
poe_cablelen_unit_m,resultPoEHubInfo);h=JSON.stringify(fileinfo,null," ");console.log(h);JSON.parse(h);hash(h).then(m=>console.log(m));g=document.getElementById("recdond_poe_filename").value;h=new Blob([h],{type:"text/plan"});var k=document.createElement("a");k.href=URL.createObjectURL(h);k.download=g+"_"+b+c+d+e+f+a+".json";k.click();setTimeout(function(){$("#btn_savefile").prop("disabled",!1)},1E3)}
function CheckRangeSetting(){var a=!0,b=Number($("#reccond_poe_range_start").val()),c=Number($("#reccond_poe_range_end").val());b>c?a=!1:c>cur_sw_portnum?a=!1:(camsetting_range_start=b,camsetting_range_end=c);return a}function CheckRangeSettingPreComp(){var a=!0,b=Number($("#precomp_poe_range_start").val()),c=Number($("#precomp_poe_range_end").val());b>c?a=!1:16<c?a=!1:(precomp_camsetting_range_start=b,precomp_camsetting_range_end=c);return a}
function SetDispLineSwitch(a){a>default_sw_maxnum&&(a=default_sw_maxnum);for(var b=1;b<=a;b++){var c='[id^="reccond_poesw_'+("00"+b.toString()).slice(-3)+'_rowstep"]';$(c).show()}for(;b<=default_sw_maxnum;b++)c='[id^="reccond_poesw_'+("00"+b.toString()).slice(-3)+'_rowstep"]',$(c).hide()}
function SetDispLineCamera(a){a>default_cam_maxnum&&(a=default_cam_maxnum);for(var b=1;b<=a;b++){var c='[id^="reccond_poe_'+("00"+b.toString()).slice(-3)+'_rowstep"]';$(c).show()}for(;b<=default_sw_maxnum;b++)c='[id^="reccond_poe_'+("00"+b.toString()).slice(-3)+'_rowstep"]',$(c).hide()}
function SetSwitchPowerType(a,b,c){a=Number(a);b=Number(b);var d=UICamObjectTable[a][UICamObjectId.poesw_powertype],e=UICamObjectTable[a][UICamObjectId.poesw_powertype];a=UICamObjectTable[a][UICamObjectId.poesw_powertypesel];b==SwitchPoeList.length-1?($(d).attr("readonly",!1),$(d).css("background-color","#FFFFFF"),$(d).css("border-color","#000000"),$(e).hide(),$(a).show()):($(d).attr("readonly",!0),$(d).css("background-color","#E3E3E3"),$(d).css("border-color","#E3E3E3"),$(e).show(),$(a).hide());
b==SwitchPoeList.length-1?(0!=c&&$(d).val(0),$(d).prop("disabled",!1)):($(e).val(SwitchPoeList[b].powertype),$(e).prop("disabled",!0));return Number($(d).val())}
function SetSwitchPSEPower(a,b,c){var d=Number(a);a=Number(b);var e=UICamObjectTable[d][UICamObjectId.poesw_psepower];a==SwitchPoeList.length-1?($(e).attr("readonly",!1),$(e).css("background-color","#FFFFFF"),$(e).css("border-width","2px"),$(e).css("border-color","#000000")):($(e).attr("readonly",!0),$(e).css("background-color","#E3E3E3"),$(e).css("border-color","#E3E3E3"));0==a?$(e).val(""):(d=Math.round(10*Number(HubPoeList[d].modelpower))/10,a==SwitchPoeList.length-1?0!=c?$(e).val(""):$(e).val(d.toFixed(1)+
"W"):(d=Math.round(10*SwitchPoeList[Number(b)].modelpower)/10,$(e).val(d.toFixed(1)+"W")));return Number($(e).val())}
function SetPoePoESwitch(a,b,c){b=current_sw_dispnum;a='[id^="reccond_poesw_'+("00"+a.toString()).slice(-3)+'_modeldetail"]';$(a).empty();$(a).append($("<option>").val(-1).text("--"));for(var d=1;d<=b;d++){var e=UICamObjectTable[d][UICamObjectId.poesw_model];e.prop("selectedIndex");if("undefined"!==typeof SwitchPoeList[e.prop("selectedIndex")]&&"--"!=SwitchPoeList[e.prop("selectedIndex")].model){var f='[id^="reccond_poesw_'+("00"+d).slice(-3)+'_customerdesc"]';c=("00"+d).slice(-3);c+="__";c+=SwitchPoeList[e.prop("selectedIndex")].model;
c+="__";c+=$(f)[1].value;$(a).append($("<option>").val(d).text(c))}}}
function SetSwitchPortNum(a,b,c){b=Number(b);a=UICamObjectTable[Number(a)][UICamObjectId.poesw_portnum];b==SwitchPoeList.length-1?($(a).attr("readonly",!1),$(a).css("background-color","#FFFFFF"),$(a).css("border-color","#000000")):($(a).attr("readonly",!0),$(a).css("background-color","#E3E3E3"),$(a).css("border-color","#E3E3E3"));0==b?$(a).val(""):b==SwitchPoeList.length-1?0!=c?$(a).val(""):$(a).val(HubPoeList[b].portnum):$(a).val(SwitchPoeList[b].hubportnum);return Number($(a).val())}
function IsSwOtherConfigured(a,b){var c=!1,d=Number(a),e=UICamObjectTable[d][UICamObjectId.poesw_powertypesel];a=UICamObjectTable[d][UICamObjectId.poesw_psepower];d=UICamObjectTable[d][UICamObjectId.poesw_portnum];Number(b)==SwitchPoeList.length-1&&(b=Number($(e).val()),a=$(a).val(),a=a.substr(0,a.length-1),d=Number($(d).val()),0<b&&0<a&&0<d&&(c=!0));return c}
function SetSwitchCfgButton(a,b,c){c=Number(a);var d=Number(b),e=UICamObjectTable[c][UICamObjectId.poesw_cfgbtn];var f='<div id="reccond_poesw_'+a+'_cfg" class="reccond_data_style reccond_column_style reccond_txt_style_poe_cfg">';0!=d&&(d==SwitchPoeList.length-1?0<resultPoEHubInfo[c-1].maxportnum&&0<resultPoEHubInfo[c-1].maxpower?(f+='<button type="button" onclick="btnCameraConfigSetting(this)"> <img src="html/gear.png" height="10px" width="10px"> </button>',resultPoEHubInfo[c-1].cfgbtn=!0):0!=IsSwOtherConfigured(a,
b)&&(f+='<button type="button" onclick="btnCameraConfigSetting(this)"> <img src="html/gear.png" height="10px" width="10px"> </button>',resultPoEHubInfo[c-1].cfgbtn=!0):(f+='<button type="button" onclick="btnCameraConfigSetting(this)"> <img src="html/gear.png" height="10px" width="10px"> </button>',resultPoEHubInfo[c-1].cfgbtn=!0));$(e).val(SwitchPoeList[d].hubportnum);$("#reccond_poesw_"+a+"_cfg").replaceWith(f);return Number($(e).val())}
function SetPoeCableLength(a,b,c){var d=Number(a),e=UICamObjectTable[d][UICamObjectId.poe_cablelength];0<d&&(1==c?(e.val(""),e.prop("disabled",!0)):0==poe_cablelen_unit_m?(e.prop("disabled",!1),b=b<minval_feet?minval_feet:b>maxval_feet?maxval_feet:b,e.val(String(b)),array_poe_cablelen_m[Number(a)]=Math.ceil(b*meter_per_feet),array_poe_cablelen_ft[Number(a)]=b):($(e).prop("disabled",!1),b=b<minval_meter?minval_meter:b>maxval_meter?maxval_meter:b,$(e).val(String(b)),array_poe_cablelen_m[Number(a)]=
b,array_poe_cablelen_ft[Number(a)]=Math.floor(b*feet_per_meter)))}
function SetPoePreCompCableLength(a,b,c){var d=Number(a),e=UIPreCompCamObjectTable[d][UICamObjectId.poe_cablelength];0<d&&(1==c?(e.val(""),e.prop("disabled",!0)):0==poe_cablelen_unit_m?(e.prop("disabled",!1),b=b<minval_feet?minval_feet:b>maxval_feet?maxval_feet:b,e.val(String(b)),array_poe_cablelen_m[Number(a)]=Math.ceil(b*meter_per_feet),array_poe_cablelen_ft[Number(a)]=b):($(e).prop("disabled",!1),b=b<minval_meter?minval_meter:b>maxval_meter?maxval_meter:b,$(e).val(String(b)),array_poe_precomp_cablelen_m[Number(a)]=
b,array_poe_precomp_cablelen_ft[Number(a)]=Math.floor(b*feet_per_meter)))}
function DoAllocatePort(a){var b=InitPortAllocInfo(a);b=SortAllocPortInfo(b);a=0==SwitchPoeList[a].portalloctype?DoAllocatePortNormal(a,b):DoAllocatePortPU108(a,b);flag_overpower=0==a?!0:!1;if(1==a)for(var c=0;c<b.length;c++){if(0>b[c].classNum){error_portnum_on_alloc_port=c+1;break}psepowerstr="reccond_poe_"+("00"+String(b[c].no)).slice(-3)+"_portnum";obj=document.getElementById(psepowerstr);$(obj).val(b[c].portnum)}return a}
function DoAllocatePortNormal(a,b){var c=!0,d=0,e=1;if(a==SwitchPoeList.length-1){var f=GetSwNoInCameraSetting();f=HubPoeList[f].modelpower}else f=SwitchPoeList[a].modelpower;for(var g=0;g<b.length&&!(0>b[g].classNum);g++){if(0!=SwitchPoeList[a].pw510){b[g].portnum=e;break}var h=0;0!=b[g].power&&(h=0!=SwitchPoeList[a].needmargin?b[g].power>PowerPoeTable[b[g].classNum].pse_power?b[g].power:PowerPoeTable[b[g].classNum].pse_power:b[g].power);if(f>=d+h)d+=h,b[g].portnum=e,e++;else{c=!1;break}}return c}
function DoAllocatePortOther(a,b){var c=!0,d=0,e=1;if(a==SwitchPoeList.length-1){var f=GetSwNoInCameraSetting();f=HubPoeList[f].modelpower}else f=SwitchPoeList[a].modelpower;for(var g=0;g<b.length&&!(0>b[g].classNum);g++){if(0!=SwitchPoeList[a].pw510){b[g].portnum=e;break}var h=0;0!=b[g].power&&(h=b[g].power);if(f>=d+h)d+=h,b[g].portnum=e,e++;else{c=!1;break}}return c}
function DoAllocatePortPU108(a,b){for(var c=!0,d=0,e=0,f=1,g=5,h=0,k=0;k<b.length&&!(0>b[k].classNum);k++){var m=0;0!=b[k].power&&(m=0!=SwitchPoeList[a].needmargin?b[k].power>PowerPoeTable[b[k].classNum].pse_power?b[k].power:PowerPoeTable[b[k].classNum].pse_power:b[k].power);if(0==h)if(SwitchPoeList[a].powergroup[0].grouppower>=d+m)d+=m,b[k].portnum=f,f++,h=1;else if(SwitchPoeList[a].powergroup[1].grouppower>=e+m)e+=m,b[k].portnum=g,g++;else{c=!1;break}else if(SwitchPoeList[a].powergroup[1].grouppower>=
e+m)e+=m,b[k].portnum=g,g++,h=0;else if(SwitchPoeList[a].powergroup[0].grouppower>=d+m)d+=m,b[k].portnum=f,f++;else{c=!1;break}}return c}
function InitPortAllocInfo(a){a=[];var b=document.getElementById("sw_portnum").textContent;b=Number(b);for(var c=0;c<b;c++){var d="reccond_poe_"+("00"+String(c+1)).slice(-3)+"_model";var e=document.getElementById(d);var f=$(e).val();0==f?a.push(new PortAllocInfo(c+1,-1,0,0)):(d="reccond_poe_"+("00"+String(c+1)).slice(-3)+"_powerclass",e=document.getElementById(d),d=Number($(e).val().slice(-1)),f==CamPoeList.length-1&&(d="reccond_poe_"+("00"+String(c+1)).slice(-3)+"_powerclasssel",e=document.getElementById(d),
$(e).val(),d=Number($(e).val().slice(-1))-1),f="reccond_poe_"+("00"+String(c+1)).slice(-3)+"_psepower",e=document.getElementById(f),f=$(e).val(),f=Number(f.substr(0,f.length-1)),a.push(new PortAllocInfo(c+1,d,f,0)))}return a}
function SortAllocPortInfo(a){for(var b=0;b<a.length;b++)0==a[b].classNum&&(a[b].classNum=3);a=a.sort(function(e,f){return e.classNum>f.classNum?-1:e.classNum<f.classNum?1:e.power>f.power?-1:e.power<f.power?1:0});var c=[],d=[];for(b=0;b<a.length;b++)0==a[b].power?c.push(a[b]):d.push(a[b]);for(b=0;b<c.length;b++)d.push(c[b]);return d}function InitPortNumPool(a){pool_portnum=[];for(var b=0;b<a;b++)pool_portnum[b]=0}function CheckPortNumPool(a){pool_portnum[a-1]=1}
function AllocPortNumPool(){for(var a=0,b=0;b<pool_portnum.length;b++)if(0==pool_portnum[b]){pool_portnum[b]=1;a=b+1;break}return a}
function SortResultByPort(a){var b=[];InitPortNumPool(a.length);for(var c=0;c<a.length;c++){var d=new PoeCamInfo(a[c].no,a[c].camno,a[c].camname,a[c].camtype,a[c].powertype,a[c].powerclass,a[c].power,a[c].acadapter,a[c].enableacadapter,a[c].cablelength,a[c].psepower,a[c].portnum);""!=d.portnum&&CheckPortNumPool(d.portnum);b.push(d)}for(c=0;c<b.length;c++)""==b[c].portnum&&(b[c].portnum=String(AllocPortNumPool()));return b.sort(function(e,f){return Number(e.portnum)>Number(f.portnum)?1:Number(e.portnum)<
Number(f.portnum)?-1:0})}
function DispSwPsePower(a,b){var c=0,d=document.getElementById("sw_portnum").textContent;d=Number(d);for(i=0;i<d;i++){var e="reccond_poe_"+("00"+(i+1)).slice(-3)+"_psepower";e=document.getElementById(e).value;c+=Number(e.substr(0,e.length-1))}document.getElementById("sw_psepower");document.getElementById("sw_psepower").innerHTML=(Math.round(10*c)/10).toFixed(1)+"W";b?((a==SwitchPoeList.length-1?HubPoeList[cur_sw_no].modelpower:SwitchPoeList[a].modelpower)>c&&(document.getElementById("sw_psepower").innerHTML+="<br>"+
s_msgwarn_insufficientmargin),$("#sw_psepower").css("color","red"),$("#sw_psepower").css("font-weight","bold")):"WJ-PR204(AC adapter)"==SwitchPoeList[a].model?1==CheckLimitationForPR204(cur_sw_no)?(alert(s_msgwarn_overconnectlimit),document.getElementById("sw_psepower").innerHTML+="<br>"+s_msgwarn_insufficientmargin,$("#sw_psepower").css("color","red"),$("#sw_psepower").css("font-weight","bold")):($("#sw_psepower").css("color","black"),$("#sw_psepower").css("font-weight","normal")):($("#sw_psepower").css("color",
"black"),$("#sw_psepower").css("font-weight","normal"))}
function DoCalculatePoe(a){if("undefined"!==typeof a){var b=0,c=0,d=0;poe_camnum=0;var e=document.getElementById("sw_portnum").textContent;e=Number(e);HubPoeList[a].connected_port_num=0;HubPoeList[a].pse_power=0;for(var f=1;f<=e;f++){var g=Number(UICamObjectTable[f][UICamObjectId.poe_model].val());psepwrs=[];0!=g?(psepwrs[f]=DoCalculatePoeOne(f,g),poe_camnum++):(psepwrs[f]=0,UICamObjectTable[f][UICamObjectId.poe_psepower].val(""))}for(e=1;e<psepwrs.length;e++)0==psepwrs_extflg[e]&&(c+=psepwrs[e]);
for(e=1;e<HubPoeList.length;e++)d+=HubPoeList[e].pse_power;b=c+d;$('[id="poe_result_power_value"]').each(function(k,m){0==poe_camnum?($(m).val(s_blank),$(m).prop("disabled",!0)):($(m).val(b.toFixed(1)),$(m).prop("disabled",!1))});$('[id="poe_result_power_value_recorder"]').each(function(k,m){0==poe_camnum?($(m).val(s_blank),$(m).prop("disabled",!0)):($(m).val(c.toFixed(1)),$(m).prop("disabled",!1))});$('[id="poe_result_power_value_hub"]').each(function(k,m){0==poe_camnum?($(m).val(s_blank),$(m).prop("disabled",
!0)):($(m).val(d.toFixed(1)),$(m).prop("disabled",!1))});var h=0;$('[id^="poe_result_desc"]').each(function(k,m){RecPoeList[h].portnum==RecPoeList[h].maxconnectnum?0==poe_camnum?($(m).text(""),$(m).css("color","black"),$(m).css("font-weight","normal")):RecPoeList[h].maxconnectnum<poe_camnum?($(m).text(" "+s_poecond_result_camnumover_part1+RecPoeList[h].maxconnectnum+s_poecond_result_camnumover_part2),$(m).css("color","red"),$(m).css("font-weight","bold")):RecPoeList[h].maxpower<c?($(m).text(" "+s_poecond_result_overpowerupperlimit),
$(m).css("color","red"),$(m).css("font-weight","bold")):($(m).text(" "+s_poecond_result_ok),$(m).css("color","black"),$(m).css("font-weight","normal")):0==poe_camnum?($(m).text(""),$(m).css("color","black"),$(m).css("font-weight","normal")):RecPoeList[h].maxconnectnum<poe_camnum?($(m).text(" "+s_poecond_result_camnumover_part1+RecPoeList[h].maxconnectnum+s_poecond_result_camnumover_part2),$(m).css("color","red"),$(m).css("font-weight","bold")):RecPoeList[h].maxpower<c?($(m).text(" "+s_poecond_result_overpowerupperlimit),
$(m).css("color","red"),$(m).css("font-weight","bold")):($(m).text(" "+s_poecond_result_ok2_part1+(RecPoeList[h].portnum+1)+s_poecond_result_ok2_part2),$(m).css("color","black"),$(m).css("font-weight","normal"));h+=1});e=DoAllocatePort(a);0==e&&(alert(s_msgwarn_overconnectlimit),continual_blur_flag=!0,$(this).val(0));f=!1;0==e&&(f=!0);DispSwPsePower(a,f)}}
function DoCalculatePoePreComp(){var a=0,b=0,c=0,d=0,e=0,f=0;poe_camnum=0;psepwrs=[];for(var g=1;16>=g;g++){var h=Number(UIPreCompCamObjectTable[g][UICamObjectId.poe_model].val());0!=h?(psepwrs[g]=DoCalculatePoeOnePreComp(g,h),poe_camnum++):(psepwrs[g]=[0,"--"],UIPreCompCamObjectTable[g][UICamObjectId.poe_psepower].val(""))}for(g=1;g<psepwrs.length;g++)0==psepwrs_extflg[g]&&(b+=psepwrs[g][0]*psepwrs[g][2]),"PoE++"==psepwrs[g][1]?c+=psepwrs[g][0]*psepwrs[g][2]:"PoE+"==psepwrs[g][1]?d+=psepwrs[g][0]*
psepwrs[g][2]:"PoE"==psepwrs[g][1]&&(e+=psepwrs[g][0]*psepwrs[g][2]);for(g=1;g<HubPoeList.length;g++)f+=HubPoeList[g].pse_power;a=b+f;$("#precomp_result_power_totalpower").text(b.toFixed(1)+"W");$("#precomp_result_power_PoEPP").text(c.toFixed(1)+"W");$("#precomp_result_power_PoEP").text(d.toFixed(1)+"W");$("#precomp_result_power_PoE").text(e.toFixed(1)+"W");$('[id="poe_result_power_value"]').each(function(m,l){0==poe_camnum?($(l).val(s_blank),$(l).prop("disabled",!0)):($(l).val(a.toFixed(1)),$(l).prop("disabled",
!1))});$('[id="poe_result_power_value_recorder"]').each(function(m,l){0==poe_camnum?($(l).val(s_blank),$(l).prop("disabled",!0)):($(l).val(b.toFixed(1)),$(l).prop("disabled",!1))});$('[id="poe_result_power_value_hub"]').each(function(m,l){0==poe_camnum?($(l).val(s_blank),$(l).prop("disabled",!0)):($(l).val(f.toFixed(1)),$(l).prop("disabled",!1))});var k=0;$('[id^="poe_result_desc"]').each(function(m,l){RecPoeList[k].portnum==RecPoeList[k].maxconnectnum?0==poe_camnum?($(l).text(""),$(l).css("color",
"black"),$(l).css("font-weight","normal")):RecPoeList[k].maxconnectnum<poe_camnum?($(l).text(" "+s_poecond_result_camnumover_part1+RecPoeList[k].maxconnectnum+s_poecond_result_camnumover_part2),$(l).css("color","red"),$(l).css("font-weight","bold")):RecPoeList[k].maxpower<b?($(l).text(" "+s_poecond_result_overpowerupperlimit),$(l).css("color","red"),$(l).css("font-weight","bold")):($(l).text(" "+s_poecond_result_ok),$(l).css("color","black"),$(l).css("font-weight","normal")):0==poe_camnum?($(l).text(""),
$(l).css("color","black"),$(l).css("font-weight","normal")):RecPoeList[k].maxconnectnum<poe_camnum?($(l).text(" "+s_poecond_result_camnumover_part1+RecPoeList[k].maxconnectnum+s_poecond_result_camnumover_part2),$(l).css("color","red"),$(l).css("font-weight","bold")):RecPoeList[k].maxpower<b?($(l).text(" "+s_poecond_result_overpowerupperlimit),$(l).css("color","red"),$(l).css("font-weight","bold")):($(l).text(" "+s_poecond_result_ok2_part1+(RecPoeList[k].portnum+1)+s_poecond_result_ok2_part2),$(l).css("color",
"black"),$(l).css("font-weight","normal"));k+=1})}
function SetPoePSEPower(a,b,c){var d=Number(a);a=UICamObjectTable[d][UICamObjectId.poe_externalpower];b=CamPoeList[b].modelpower;if(0<d)0==b?(a.prop("disabled",!0),a.prop("checked",!0)):0==c?(a.prop("disabled",!1),a.prop("checked",!1)):(a.prop("disabled",!1),a.prop("checked",!0));else{for(b=1;b<=CamSettingMaxNum;b++)a=UICamObjectTable[b][UICamObjectId.poe_externalpower],c=a.prop("disabled"),0==c&&(0==poe_extpow_toggle?a.prop("checked",!0):a.prop("checked",!1));a=UICamObjectTable[0][UICamObjectId.poe_externalpower];
a.prop("checked",!1);poe_extpow_toggle=0==poe_extpow_toggle?!0:!1}return Number($(a).val())}function getCamIndexFromModelId(a){for(var b=a=0;b<CamPoeList.length;b++)if(CamPoeList[b].id==modeid){a=b;break}return a}
function IsOtherSettingCompleted(a){var b=!0,c="reccond_poe_"+("00"+a).slice(-3)+"_powertypesel",d="reccond_poe_"+("00"+a).slice(-3)+"_powerclasssel";a="reccond_poe_"+("00"+a).slice(-3)+"_modelpower";c=document.getElementById(c);d=document.getElementById(d);a=document.getElementById(a);0==Number($(c).val())&&(b=!1);0==Number($(d).val())&&(b=!1);d=$(a).val();d=d.substr(0,d.length-1);0>=Number(d)&&(b=!1);return b}
function IsOtherSettingCompletedPreComp(a){var b=!0,c="precomp_poe_"+("00"+a).slice(-3)+"_powertypesel",d="precomp_poe_"+("00"+a).slice(-3)+"_powerclasssel";a="precomp_poe_"+("00"+a).slice(-3)+"_modelpower";c=document.getElementById(c);d=document.getElementById(d);a=document.getElementById(a);0==Number($(c).val())&&(b=!1);0==Number($(d).val())&&(b=!1);d=$(a).val();d=d.substr(0,d.length-1);0>=Number(d)&&(b=!1);return b}
function CheckCableLength(a){var b=ConverZenNum2HanNum($(a)[0].value),c=$($(a)[0]).attr("id").split("_");c=Number(c[c.length-2]);if(isNumberString(b)&&(b=parseInt(b,10),0==poe_cablelen_unit_m?Number(b)>maxval_feet?(b=String(maxval_feet),array_poe_cablelen_ft[c]=maxval_feet,array_poe_cablelen_m[c]=maxval_meter):Number(b)<minval_feet&&(b=String(minval_feet),array_poe_cablelen_ft[c]=minval_feet,array_poe_cablelen_m[c]=minval_meter):Number(b)>maxval_meter?(b=String(maxval_meter),array_poe_cablelen_ft[c]=
maxval_feet,array_poe_cablelen_m[c]=maxval_meter):Number(b)<minval_meter&&(b=String(minval_meter),array_poe_cablelen_ft[c]=minval_feet,array_poe_cablelen_m[c]=minval_meter),$("#"+$($(a)[0]).attr("id")).val(b),0==poe_cablelen_unit_m?(array_poe_cablelen_ft[c]=Number($(a)[0].value),array_poe_cablelen_m[c]=Math.ceil($(a)[0].value*meter_per_feet)):(array_poe_cablelen_m[c]=Number($(a)[0].value),array_poe_cablelen_ft[c]=Math.floor($(a)[0].value*feet_per_meter)),0==c))if("precomp_poe_000_cablelength"==a.id){if(CheckRangeSettingPreComp())for(a=
precomp_camsetting_range_start;a<=precomp_camsetting_range_end;a++)objCableLength=UIPreCompCamObjectTable[a][UICamObjectId.poe_cablelength],0==UIPreCompCamObjectTable[a][UICamObjectId.poe_cablelength].prop("disabled")&&(objCableLength.val(b),0==poe_precomp_cablelen_unit_m?(array_poe_precomp_cablelen_ft[a]=b,array_poe_precomp_cablelen_m[a]=Math.floor(b*maxval_meter/maxval_feet)):(array_poe_precomp_cablelen_ft[a]=Math.floor(b*maxval_feet/maxval_meter),array_poe_precomp_cablelen_m[a]=b));else alert(s_msgwarn_allfill_outofrange);
$($(this)[0]).text("");$("#"+$($(this)[0]).attr("id")).val("")}else for(a=1;a<=cur_sw_portnum;a++)objCableLength=UICamObjectTable[a][UICamObjectId.poe_cablelength],0==UICamObjectTable[a][UICamObjectId.poe_cablelength].prop("disabled")&&(objCableLength.val(b),array_poe_cablelen_ft[a]=array_poe_cablelen_ft[0],array_poe_cablelen_m[a]=array_poe_cablelen_m[0])}
function CheckNumOfUnits(a){var b=ConverZenNum2HanNum($(a)[0].value),c=$($(a)[0]).attr("id").split("_");c=Number(c[c.length-2]);if(isNumberString(b)){if(b=parseInt(b,10),Number(b)>default_precomp_unitnum_max&&(b=String(default_precomp_unitnum_max)),$("#"+$($(a)[0]).attr("id")).val(b),0==c)for(var d=precomp_camsetting_range_start;d<=precomp_camsetting_range_end;d++)objNumOfUnits=UIPreCompCamObjectTable[d][UICamObjectId.poe_numberofunits],"0"==$("#precomp_poe_"+("00"+d).slice(-3)+"_model").val()?objNumOfUnits.val(""):
objNumOfUnits.val(b)}else""!=b&&("0"==$("#precomp_poe_"+("00"+d).slice(-3)+"_model").val()?$("#"+$($(a)[0]).attr("id")).val(""):$("#"+$($(a)[0]).attr("id")).val("1"))}
function DoCalculatePoeOne(a,b){var c=UICamObjectTable[a][UICamObjectId.poe_externalpower],d=UICamObjectTable[a][UICamObjectId.poe_cablelength],e=UICamObjectTable[a][UICamObjectId.poe_psepower],f=CamPoeList[b].modelpower,g=$(UICamObjectTable[a][UICamObjectId.poe_powerclass]).val(),h=Number(g.slice(-1));g=Number(d.val());var k=c.prop("checked"),m='[id="reccond_poesw_'+("00"+a).slice(-3)+'_modeldetail"] option:selected',l=$(m).text();$(m).val();c=0;d="";m=!1;b==CamPoeList.length-1&&(b="reccond_poe_"+
("00"+a).slice(-3)+"_powerclasssel",f="reccond_poe_"+("00"+a).slice(-3)+"_modelpower",b=document.getElementById(b),f=document.getElementById(f),0!=IsOtherSettingCompleted(a)?(h=Number($(b).val())-1,f=$(f).val(),f=Number(f.substr(0,f.length-1))):(f=h=0,m=!0));psepwrs_extflg[a]=0;g>maxval_meter&&(g=maxval_meter);0==k?0==g?c=f:0!=m?c=0:(c=f+(PowerPoeTable[h].pse_power-PowerPoeTable[h].pd_power)*g/100,c=Math.round(10*c)/10):("AC\u30a2\u30c0\u30d7\u30bf\u30fc"==l?k=0:(d=l.split("__"),d=d[0],k=Number(d)),
0!=k&&"--"!=l&&(psepwrs_extflg[a]=1,0==g?c=f:(c=pse_voltage*(pse_voltage-Math.sqrt(pse_voltage*pse_voltage-4*g*cable_loss*f))/(2*g*cable_loss),c=Math.round(10*c)/10),g='[id="reccond_poesw_'+d+'_model"] option:selected',$(g).text(),g=$(g).val(),$('[id="reccond_poesw_001_modeldetail"] option:selected').text(),m='[id="reccond_poesw_'+("00"+a).slice(-3)+'_modeldetail"]',a=SwitchPoeList[Number(g)].hubportnum,l=SwitchPoeList[Number(g)].modelpower,g==SwitchPoeList.length-2&&(g='[id="reccond_poesw_'+("00"+
d).slice(-3)+'_portnum"]',a=Number($(g).val()),g='[id="reccond_poesw_'+("00"+d).slice(-3)+'_psepower"]',l=Number($(g).val())),HubPoeList[k].connected_port_num+1>a?(uiMsgDialogPopup(s_msgwarn_unsupported_hubportnum,2),$(m).val(-1)):HubPoeList[k].pse_power+c>l?(uiMsgDialogPopup(s_msgwarn_unsupported_over_psemaxpower,2),$(m).val(-1)):(HubPoeList[k].connected_port_num+=1,HubPoeList[k].pse_power+=c)));e.val(c.toFixed(1)+"W");return c}
function DoCalculatePoeOnePreComp(a,b){var c=UIPreCompCamObjectTable[a][UICamObjectId.poe_externalpower],d=UIPreCompCamObjectTable[a][UICamObjectId.poe_cablelength],e=UIPreCompCamObjectTable[a][UICamObjectId.poe_psepower],f=UIPreCompCamObjectTable[a][UICamObjectId.poe_powerclass],g=UIPreCompCamObjectTable[a][UICamObjectId.poe_numberofunits],h=CamPoeList[b].modelpower,k=$(UIPreCompCamObjectTable[a][UICamObjectId.poe_powertype]).val();f=$(f).val();g=Number($(g).val());var m=Number(f.slice(-1));f=Number(d.val());
var l=c.prop("checked"),n='[id="reccond_poesw_'+("00"+a).slice(-3)+'_modeldetail"] option:selected',p=$(n).text();$(n).val();c=0;d="";n=!1;if(b==CamPoeList.length-1){h="precomp_poe_"+("00"+a).slice(-3)+"_powertypesel";b="precomp_poe_"+("00"+a).slice(-3)+"_powerclasssel";k="precomp_poe_"+("00"+a).slice(-3)+"_modelpower";h=document.getElementById(h);b=document.getElementById(b);var u=document.getElementById(k);0!=IsOtherSettingCompletedPreComp(a)?(k=PoePowerTypeList[Number($(h).val())].powertype,m=
Number($(b).val())-1,h=$(u).val(),h=Number(h.substr(0,h.length-1))):(h=m=k=0,n=!0)}psepwrs_extflg[a]=0;f>maxval_meter&&(f=maxval_meter);0==l?0==f?c=h:0!=n?c=0:(c=h+(PowerPoeTable[m].pse_power-PowerPoeTable[m].pd_power)*f/100,c=Math.round(10*c)/10):("AC\u30a2\u30c0\u30d7\u30bf\u30fc"==p?l=0:(d=p.split("__"),d=d[0],l=Number(d)),0!=l&&"--"!=p&&(psepwrs_extflg[a]=1,0==f?c=h:(c=pse_voltage*(pse_voltage-Math.sqrt(pse_voltage*pse_voltage-4*f*cable_loss*h))/(2*f*cable_loss),c=Math.round(10*c)/10),f='[id="reccond_poesw_'+
d+'_model"] option:selected',$(f).text(),f=$(f).val(),$('[id="reccond_poesw_001_modeldetail"] option:selected').text(),n='[id="reccond_poesw_'+("00"+a).slice(-3)+'_modeldetail"]',a=SwitchPoeList[Number(f)].hubportnum,p=SwitchPoeList[Number(f)].modelpower,f==SwitchPoeList.length-2&&(f='[id="reccond_poesw_'+("00"+d).slice(-3)+'_portnum"]',a=Number($(f).val()),f='[id="reccond_poesw_'+("00"+d).slice(-3)+'_psepower"]',p=Number($(f).val())),HubPoeList[l].connected_port_num+1>a?(uiMsgDialogPopup(s_msgwarn_unsupported_hubportnum,
2),$(n).val(-1)):HubPoeList[l].pse_power+c>p?(uiMsgDialogPopup(s_msgwarn_unsupported_over_psemaxpower,2),$(n).val(-1)):(HubPoeList[l].connected_port_num+=1,HubPoeList[l].pse_power+=c)));e.val((c*g).toFixed(1)+"W");return[c,k,g]}function DispAlertMsg(){0<alert_force_acadapter&&(alert_force_acadapter=0,alert(s_msgwarn_forceacadapter))}function isNumberString(a){var b=!1;"string"!==typeof a||""===a||isNaN(a)||(b=!0);return b}function uiMsgDialogPopup(a,b){alert(a)}
function getBrowserVersion(){return window.opera?opera.version().replace(/\d$/,"")-0:parseFloat((/(?:IE |fox\/|ome\/|ion\/)(\d+\.\d)/.exec(navigator.userAgent)||[,0])[1])}function DbgLog(a){debugoutput&&console.log(a)};function SetResultCommon(a,b,c,d){a=GetResultMessage(a);s_model_name==s_recresult_model_nx400?document.getElementById("recresult_error_nx400").innerHTML=a:s_model_name==s_recresult_model_nx300?document.getElementById("recresult_error_nx300").innerHTML=a:s_model_name==s_recresult_model_nx200?document.getElementById("recresult_error_nx200").innerHTML=a:s_model_name==s_recresult_model_nx100&&s_app_dst_ch!=s_app_dst?document.getElementById("recresult_error_nu301").innerHTML=a:s_model_name==s_recresult_model_nu301?
document.getElementById("recresult_error_nu301").innerHTML=a:s_model_name==s_recresult_model_nu300?document.getElementById("recresult_error_nu300").innerHTML=a:s_model_name==s_recresult_model_nu201?document.getElementById("recresult_error_nu201").innerHTML=a:s_model_name==s_recresult_model_nu101&&(document.getElementById("recresult_error_nu101").innerHTML=a);0<b?s_model_name==s_recresult_model_nx400?(EnableResultItem("recresult_bitrate_net_nx400"),$("#recresult_bitrate_net_nx400").val((Math.ceil(b/
1024*100)/100).toLocaleString())):s_model_name==s_recresult_model_nx300?(EnableResultItem("recresult_bitrate_net_nx300"),$("#recresult_bitrate_net_nx300").val((Math.ceil(b/1024*100)/100).toLocaleString())):s_model_name==s_recresult_model_nx200?(EnableResultItem("recresult_bitrate_net_nx200"),$("#recresult_bitrate_net_nx200").val((Math.ceil(b/1024*100)/100).toLocaleString())):s_model_name!=s_recresult_model_nx100||s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=s_app_dst?
s_model_name==s_recresult_model_nu301?(EnableResultItem("recresult_bitrate_net_nu301"),$("#recresult_bitrate_net_nu301").val((Math.ceil(b/1024*100)/100).toLocaleString())):s_model_name==s_recresult_model_nu300?(EnableResultItem("recresult_bitrate_net_nu300"),$("#recresult_bitrate_net_nu300").val((Math.ceil(b/1024*100)/100).toLocaleString())):s_model_name==s_recresult_model_nu201?(EnableResultItem("recresult_bitrate_net_nu201"),$("#recresult_bitrate_net_nu201").val((Math.ceil(b/1024*100)/100).toLocaleString())):
s_model_name==s_recresult_model_nu101?(EnableResultItem("recresult_bitrate_net_nu101"),$("#recresult_bitrate_net_nu101").val((Math.ceil(b/1024*100)/100).toLocaleString())):s_model_name==s_recresult_model_vms&&s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=s_app_dst&&(EnableResultItem("recresult_bitrate_net_vms"),$("#recresult_bitrate_net_vms").val((Math.ceil(b/1024*100)/100).toLocaleString())):(EnableResultItem("recresult_bitrate_net_nx100"),$("#recresult_bitrate_net_nx100").val((Math.ceil(b/
1024*100)/100).toLocaleString())):s_model_name==s_recresult_model_nx400?DisableResultItem("recresult_bitrate_net_nx400"):s_model_name==s_recresult_model_nx300?DisableResultItem("recresult_bitrate_net_nx300"):s_model_name==s_recresult_model_nx200?DisableResultItem("recresult_bitrate_net_nx200"):s_model_name!=s_recresult_model_nx100||s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=s_app_dst?s_model_name==s_recresult_model_nu301?DisableResultItem("recresult_bitrate_net_nu301"):
s_model_name==s_recresult_model_nu300?DisableResultItem("recresult_bitrate_net_nu300"):s_model_name==s_recresult_model_nu201?DisableResultItem("recresult_bitrate_net_nu201"):s_model_name==s_recresult_model_nu101?DisableResultItem("recresult_bitrate_net_nu101"):s_model_name==s_recresult_model_vms&&s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=s_app_dst&&DisableResultItem("recresult_bitrate_net_vms"):DisableResultItem("recresult_bitrate_net_nx100");b=0;if(1==UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked)for(a=
1;a<CamSettingMaxNum;a++)""!=UICamObjectTable[Number(a)][UICamObjectId.advance_bitrate][0].value&&(b=1);else b=1;0<c&&1==b?s_model_name==s_recresult_model_nx400?(EnableResultItem("recresult_datasize_nx400"),$("#recresult_datasize_nx400").val((Math.ceil(c/8/1E3/1E3/1E3*100)/100).toLocaleString())):s_model_name==s_recresult_model_nx300?(EnableResultItem("recresult_datasize_nx300"),$("#recresult_datasize_nx300").val((Math.ceil(c/8/1E3/1E3/1E3*100)/100).toLocaleString())):s_model_name==s_recresult_model_vms&&
s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=s_app_dst&&(EnableResultItem("recresult_datasize_vms"),$("#recresult_datasize_vms").val((Math.ceil(c/8/1E3/1E3/1E3*100)/100).toLocaleString())):s_model_name==s_recresult_model_nx400?DisableResultItem("recresult_datasize_nx400"):s_model_name==s_recresult_model_nx300?DisableResultItem("recresult_datasize_nx300"):s_model_name==s_recresult_model_vms&&s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=
s_app_dst&&DisableResultItem("recresult_datasize_vms");0<d.maxconfig?(EnableResultItem("recresult_maxrecdays"),$("#recresult_maxrecdays").val(d.samehdd+" / "+d.sameunit+" / "+d.maxconfig)):DisableResultItem("recresult_maxrecdays")}
function GetResultMessage(a){var b="";switch(a){case CalcResultCode.invalidrectime:b=s_recresult_message_invalidrectime;break;case CalcResultCode.norectime:b=s_recresult_message_norectime;break;case CalcResultCode.nwdrnumover:b=s_recresult_message_nwdrnumover;break;case CalcResultCode.camrecsizeover:b=s_recresult_message_camrecsizeover;break;case CalcResultCode.camnumover:s_model_name==s_recresult_model_nx400?b=s_recresult_message_camnumover_NX400:s_model_name==s_recresult_model_nx300?b=s_recresult_message_camnumover_NX300:
s_model_name==s_recresult_model_nx200?b=s_app_dst_ja==s_app_dst?s_recresult_message_camnumover_NX200_ja:s_app_dst_ipro_ja==s_app_dst?s_recresult_message_camnumover_NX200_ja:s_app_dst_en_p==s_app_dst?s_recresult_message_camnumover_NX200_p:s_recresult_message_camnumover_NX200_other:s_model_name==s_recresult_model_nx100?b=s_recresult_message_camnumover_NX100:s_model_name==s_recresult_model_nu301?b=s_recresult_message_camnumover_NU30x:s_model_name==s_recresult_model_nu300?b=s_recresult_message_camnumover_NU30x:
s_model_name==s_recresult_model_nu201?b=s_recresult_message_camnumover_NU201:s_model_name==s_recresult_model_nu101&&(b=s_recresult_message_camnumover_NX100);break;case CalcResultCode.hddcapaover:b=s_recresult_message_hddcapaover;break;case CalcResultCode.bitratenetover:if(s_model_name==s_recresult_model_nx400)b=s_recresult_message_bitrateover_NX400;else if(s_model_name==s_recresult_model_nx300)b=s_recresult_message_bitrateover_NX300;else if(s_model_name==s_recresult_model_nx200)b=s_recresult_message_bitrateover_NX200;
else if(s_model_name==s_recresult_model_nx100||s_model_name==s_recresult_model_nu301||s_model_name==s_recresult_model_nu300||s_model_name==s_recresult_model_nu201||s_model_name==s_recresult_model_nu101)b=s_recresult_message_bitrateover_NX100;break;case CalcResultCode.chnumover:b=s_recresult_message_chnumover;break;case CalcResultCode.totalrecsizeover:b=s_recresult_message_totaldatasizeover;break;case CalcResultCode.facenumover:b=s_recresult_message_facenumover;break;case CalcResultCode.notsupportmodel:b=
s_recresult_message_notsupportmodel;break;case CalcResultCode.notsupportfacematch:b=s_recresult_message_notsupportfacematch;break;case CalcResultCode.notsupporthdmi:b=s_recresult_message_notsupporthdmi;break;case CalcResultCode.notsupporthddcapa:b=s_recresult_message_notsupporthddcapa;break;case CalcResultCode.notsupporthddmode:b=s_recresult_message_notsupporthddmode;break;case CalcResultCode.notsupporthddmoderaid1:b=s_recresult_message_notsupporthddmode_raid1;break;case CalcResultCode.notsupportmultirec:b=
s_recresult_message_notsupportmultirec;break;case CalcResultCode.notsupportext:b=s_recresult_message_notsupportext;break;case CalcResultCode.notsupporthighresomode:b=s_recresult_message_notsupporthighresomode;break;case CalcResultCode.notsupportrecgroup02_nx400:b=s_recresult_message_notsupportrecgroup02_nx400;break;case CalcResultCode.notsupportrecgroup02_nx300:b=s_recresult_message_notsupportrecgroup02_nx300;break;case CalcResultCode.notsupportrecgroup:b=s_recresult_message_notsupportrecgroup;break;
case CalcResultCode.notsupportsmr10:b=s_recresult_message_notsupportsmr10;break;case CalcResultCode.notsupportg726:b=s_recresult_message_notsupportg726;break;case CalcResultCode.nomodel:b=s_recresult_message_nomodel;break;case CalcResultCode.notsupportmirroring:b=s_recresult_message_notsupportmirroring;break;case CalcResultCode.ng:b=s_recresult_message_totaldatasizeover}return b}
function SetResultItem(a,b){$("#"+a);0>=b?DisableResultItem(a):(EnableResultItem(a),$("#"+a).val(Number(b).toLocaleString()))}function EnableResultItem(a){a=$("#"+a);$(a).val("");$(a).removeClass("disable_text_style");$(a).addClass("enable_text_style")}function SetResultItem2(a,b){$("#"+a);0>=b?DisableResultItem(a):(EnableResultItem2(a),$("#"+a).val(Number(b).toLocaleString()))}
function EnableResultItem2(a){a=$("#"+a);$(a).val("");$(a).removeClass("disable_text_style");$(a).addClass("enable_text_style2")}function DisableResultItem(a){a=$("#"+a);$(a).val(s_blank);$(a).removeClass("enable_text_style");$(a).addClass("disable_text_style")};function DisplayTextOut(){var a="",b=TextOutFormatId.Html;$("#textout_format_csv").prop("checked")&&(b=TextOutFormatId.Csv);var c=new Date;a+=GetTextOutStartDocTag(b);a+=GetAppInfoText(b,c);a+=GetTextOutCrLfTag(b);a+=GetParameterText(b);a+=GetTextOutCrLfTag(b);a+=GetTextOutCrLfTag(b);var d=s_model_name;s_app_dst_ch!=s_app_dst&&((d==s_recresult_model_nx100||d==s_recresult_model_nu301||d==s_recresult_model_nu300||d==s_recresult_model_nu201||d==s_recresult_model_nu101)&&s_app_dst_ch!=s_app_dst||$("#textout_format_model").prop("checked")&&
s_app_dst_ch!=s_app_dst)&&(s_model_name=s_recresult_model_nx100,DoCalculate(),s_model_name=d,a+=GetResultText(b),a+=GetTextOutCrLfTag(b),a+=GetResultTextNx100(b),a+=GetTextOutCrLfTag(b));if(d==s_recresult_model_vms&&s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=s_app_dst||$("#textout_format_model").prop("checked")&&s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=s_app_dst)s_model_name=s_recresult_model_vms,DoCalculate(),$("#textout_format_model").prop("checked"),
a+=GetResultTextVMS(b);s_model_name=d;a+=GetTextOutEndDocTag(b);TextOutFormatId.Html==b?(c=window.open("about:blank","_blank"),null!=c&&(c.document.open(),c.document.write(a),c.document.close())):window.navigator.msSaveOrOpenBlob?(b=new Uint8Array([239,187,191]),a=new Blob([b,a],{type:"text/plain"}),b=s_textout_fname,b+=c.getFullYear()+("0"+(c.getMonth()+1)).slice(-2)+("0"+c.getDate()).slice(-2),b=b+"_"+(("0"+c.getHours()).slice(-2)+("0"+c.getMinutes()).slice(-2)+("0"+c.getSeconds()).slice(-2)),window.navigator.msSaveOrOpenBlob(a,
b+".csv")):(c=new Uint8Array([239,187,191]),a=new Blob([c,a],{type:"text/plain"}),a=window.URL.createObjectURL(a),window.open(a))}
function GetAppInfoText(a,b){var c=""+GetTextOutStartTableTag(a,s_textout_appinfo,TextOutStyle.reccond);c+=GetTextOutStartHeaderTag(a);c+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);c+=s_textout_date;c+=GetTextOutEndHeaderItemTag(a);c+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);c+=s_textout_appname;c+=GetTextOutEndHeaderItemTag(a);c+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);c+=s_textout_ver;c+=GetTextOutEndHeaderItemTag(a);c+=GetTextOutEndHeaderTag(a);c+=GetTextOutStartRowTag(a);
c+=GetTextOutStartColumnTag(a,TextOutStyle.center);c+=b.toLocaleString();c+=GetTextOutEndColumnTag(a);c+=GetTextOutStartColumnTag(a,TextOutStyle.center);c+=s_app_name+" ["+s_title_name+" ]";c+=GetTextOutEndColumnTag(a);c+=GetTextOutStartColumnTag(a,TextOutStyle.center);c+=s_app_ver;c+=GetTextOutEndColumnTag(a);c+=GetTextOutEndRowTag(a);return c+=GetTextOutEndTableTag(a)}
function GetParameterText(a){var b=""+GetParameterScheduleText(a);b+=GetParameterCameraText(a);b+=GetTextOutCrLfTag(a);s_app_dst!=s_app_dst_ch&&s_app_dst!=s_app_dst_ipro_eu_ja&&(b+=GetParameterAIPrivacyText(a),b+=GetTextOutCrLfTag(a));b+=GetParameterRecConfigText(a);b+=GetTextOutCrLfTag(a);s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=s_app_dst&&(s_app_dst_ja!=s_app_dst&&(b+=GetEstConditionTextNumberNuSeries(a),b+=GetTextOutCrLfTag(a)),s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&
(b+=GetEstConditionTextNumberVms(a),b+=GetTextOutCrLfTag(a)));return b}
function GetParameterScheduleText(a){for(var b="",c=Array(ScheduleMaxNum),d=0;d<ScheduleMaxNum;d++)c[d]=!1;d=SelectCameraInfo.length;for(var e=0;e<d;e++){("00"+(e+1)).slice(-3);var f=SelectCameraInfo[e];0!=f.num&&CamBitTblId.b00!=CamTypeRateTblList[f.typeId]&&(c[SelectCameraInfo[e].scheduleId]=!0)}e=ScheduleRecWeekList.length;for(d=0;d<ScheduleMaxNum;d++)if(0!=c[d]){var g=("0"+(d+1)).slice(-2);b+=GetTextOutStartTableTag(a,s_textout_scheduleinfo+g+"("+s_textout_schedule_weekinfo+")",TextOutStyle.reccond);
b+=GetTextOutStartHeaderTag(a);b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);b+=s_reccond_schedule_week;b+=GetTextOutEndHeaderItemTag(a);for(var h=0;h<e;h++)b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond),b+=ScheduleRecWeekList[h].name,b+=GetTextOutEndHeaderItemTag(a);b+=GetTextOutEndHeaderTag(a);f=ScheduleRecTimeTableList.length;for(var k=0;k<f;k++){b+=GetTextOutStartRowTag(a);b+=GetTextOutStartColumnTag(a,TextOutStyle.center);b+=ScheduleRecTimeTableList[k].name;b+=GetTextOutEndColumnTag(a);
for(h=0;h<e;h++)b+=GetTextOutStartColumnTag(a,TextOutStyle.center),ScheduleRecTimeTableList[k].id==SelectScheduleWeekInfo[d][h]&&(b+=s_textout_schedule_weekchecked),b+=GetTextOutEndColumnTag(a);b+=GetTextOutEndRowTag(a)}b+=GetTextOutEndTableTag(a);b+=GetTextOutStartTableTag(a,s_textout_scheduleinfo+g+"("+s_textout_schedule_rectimeinfo+")",TextOutStyle.reccond);b+=GetTextOutStartHeaderTag(a);b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);b+=GetTextOutEndHeaderItemTag(a);for(g=1;g<=TimeTableItemMaxNum;g++)b+=
GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond),b+=g,b+=GetTextOutEndHeaderItemTag(a);b+=GetTextOutEndHeaderTag(a);for(k=0;k<f;k++)if(ScheduleRecTimeTableId.t0!=ScheduleRecTimeTableList[k].id){b+=GetTextOutStartRowTag(a);b+=GetTextOutStartColumnTag(a,TextOutStyle.center);b+=ScheduleRecTimeTableList[k].name;b+=GetTextOutEndColumnTag(a);h=ScheduleRecTimeTableList[k].id-1;for(g=0;g<TimeTableItemMaxNum;g++){var m=UISchObjectTable[d][UISchObjectId.timetable][h][g][UISchTimeObjectId.shour].val(),l=
UISchObjectTable[d][UISchObjectId.timetable][h][g][UISchTimeObjectId.sminute].val(),n=UISchObjectTable[d][UISchObjectId.timetable][h][g][UISchTimeObjectId.ehour].val(),p=UISchObjectTable[d][UISchObjectId.timetable][h][g][UISchTimeObjectId.eminute].val();b+=GetTextOutStartColumnTag(a,TextOutStyle.center);if(m!=n||l!=p)b+=("0"+m).slice(-2)+s_reccond_shcedule_rectime_separator1+("0"+l).slice(-2),b+=" "+s_reccond_shcedule_rectime_separator2+" ",b+=("0"+n).slice(-2)+":"+("0"+p).slice(-2);b+=GetTextOutEndColumnTag(a)}b+=
GetTextOutEndRowTag(a)}b+=GetTextOutEndTableTag(a);b+=GetTextOutCrLfTag(a)}return b}
function GetParameterCameraText(a){var b=""+GetTextOutStartTableTag(a,s_textout_caminfo,TextOutStyle.reccond);b+=GetTextOutStartHeaderTag(a);b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);b+=s_reccond_detail_no;b+=GetTextOutEndHeaderItemTag(a);b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);b+=s_reccond_detail_num;b+=GetTextOutEndHeaderItemTag(a);b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);b+=s_reccond_detail_model;b+=GetTextOutEndHeaderItemTag(a);b+=GetTextOutStartHeaderItemTag(a,
TextOutStyle.reccond);b+=s_reccond_detail_comp;b+=GetTextOutEndHeaderItemTag(a);b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);b+=s_reccond_detail_reso;b+=GetTextOutEndHeaderItemTag(a);b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);b+=s_reccond_detail_fps;b+=GetTextOutEndHeaderItemTag(a);b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);b+=s_reccond_detail_qual;b+=GetTextOutEndHeaderItemTag(a);b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);b+=s_reccond_detail_audio;
b+=GetTextOutEndHeaderItemTag(a);b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);b+=s_reccond_detail_schedule;b+=GetTextOutEndHeaderItemTag(a);b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);b+=s_reccond_advance_smartcoding;b+=GetTextOutEndHeaderItemTag(a);s_app_dst_ch!=s_app_dst&&(b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond),b+=s_reccond_advance_connect,b+=GetTextOutEndHeaderItemTag(a));b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);b+=s_reccond_advance_chgbitrate;
b+=GetTextOutEndHeaderItemTag(a);b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);b+=s_reccond_advance_bitrate+"("+s_reccond_advance_bitrate_unit+")";b+=GetTextOutEndHeaderItemTag(a);"undefined"!==typeof DspDevelopmentInfo&&(b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond),b+=s_reccond_advance_develop_bitrate_rec,b+=GetTextOutEndHeaderItemTag(a),b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond),b+=s_reccond_advance_develop_bitrate_net,b+=GetTextOutEndHeaderItemTag(a));b+=GetTextOutEndHeaderTag(a);
for(var c=0;c<CamSettingMaxNum;c++){var d=("00"+(c+1)).slice(-3),e=SelectCameraInfo[c];if(0!=e.num){var f=CamTypeRateTblList[e.typeId];if(CamBitTblId.b00!=f){CamSmartCodingId.On==e.smartcodingId&&f++;b+=GetTextOutStartRowTag(a);b+=GetTextOutStartColumnTag(a,TextOutStyle.center);b+=d;b+=GetTextOutEndColumnTag(a);b+=GetTextOutStartColumnTag(a,TextOutStyle.right);b+=e.num;b+=GetTextOutEndColumnTag(a);b+=GetTextOutStartColumnTag(a,TextOutStyle.center);b+=CamModelList[e.modelId].name;b+=GetTextOutEndColumnTag(a);
1==UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked&&1==UICamObjectTable[Number(c+1)][UICamObjectId.advance_smartcoding][0].disabled?(b+=GetTextOutStartColumnTag(a,TextOutStyle.center),b+=s_blank,b+=GetTextOutEndColumnTag(a),b+=GetTextOutStartColumnTag(a,TextOutStyle.center),b+=s_blank,b+=GetTextOutEndColumnTag(a),b+=GetTextOutStartColumnTag(a,TextOutStyle.center),b+=s_blank,b+=GetTextOutEndColumnTag(a),b+=GetTextOutStartColumnTag(a,TextOutStyle.center),b+=s_blank):(b+=GetTextOutStartColumnTag(a,
TextOutStyle.center),b+=CamCompList[e.compId],b+=GetTextOutEndColumnTag(a),b+=GetTextOutStartColumnTag(a,TextOutStyle.center),b+=CamResoList[e.resoId],b+=GetTextOutEndColumnTag(a),b+=GetTextOutStartColumnTag(a,TextOutStyle.center),b+=CamFpsList[e.fpsId].name,b+=GetTextOutEndColumnTag(a),b+=GetTextOutStartColumnTag(a,TextOutStyle.center),b+=CamQualList[e.qualId]);b+=GetTextOutEndColumnTag(a);b+=GetTextOutStartColumnTag(a,TextOutStyle.center);b+=CamAudioList[e.audioId].name;b+=GetTextOutEndColumnTag(a);
b+=GetTextOutStartColumnTag(a,TextOutStyle.right);b+=("0"+(e.scheduleId+1)).slice(-2);b+=GetTextOutEndColumnTag(a);b+=GetTextOutStartColumnTag(a,TextOutStyle.center);b=1==UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked&&1==UICamObjectTable[Number(c+1)][UICamObjectId.advance_smartcoding][0].disabled?b+s_blank:b+CamSmartCodingList[e.smartcodingId];b+=GetTextOutEndColumnTag(a);s_app_dst_ch!=s_app_dst&&(b+=GetTextOutStartColumnTag(a,TextOutStyle.center),b+=CamConnectList[e.connectId].name,
b+=GetTextOutEndColumnTag(a));b+=GetTextOutStartColumnTag(a,TextOutStyle.center);b=-1==UICamObjectTable[Number(c+1)][UICamObjectId.advance_chgbitrate][0].val?b+"On":b+"Off";b+=GetTextOutEndColumnTag(a);var g=UICamObjectTable[Number(c+1)][UICamObjectId.advance_bitrate].val();""==ConverBlankToNumber(UICamObjectTable[Number(c+1)][UICamObjectId.advance_bitrate].val())?g=0:(1!=UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked||1!=UICamObjectTable[Number(c+1)][UICamObjectId.advance_smartcoding][0].disabled)&&
s_facematch_on==CamFaceMatchList[e.facematchId]&&(g=HighResoModeId.On==Number(UIRecObjectTable[UIRecObjectId.highresomode].val())?bitrate_rec_video_4M:GetFaceMatchBitrate(e.compTblId,f));b+=GetTextOutStartColumnTag(a,TextOutStyle.right);b+=g;b+=GetTextOutEndColumnTag(a);"undefined"!==typeof DspDevelopmentInfo&&(b+=GetTextOutStartColumnTag(a,TextOutStyle.right),b+=$("#reccond_advance_"+d+"_develop_bitrate_rec_total").val(),b+=GetTextOutEndColumnTag(a),b+=GetTextOutStartColumnTag(a,TextOutStyle.right),
b+=$("#reccond_advance_"+d+"_develop_bitrate_net_total").val(),b+=GetTextOutEndColumnTag(a));b+=GetTextOutEndRowTag(a)}}}return b+=GetTextOutEndTableTag(a)}
function GetParameterAIPrivacyText(a){var b=""+GetTextOutStartTableTag(a,s_textout_aiprivacy,TextOutStyle.reccond);b+=GetTextOutStartHeaderTag(a);b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);b+=s_reccond_aiprivacy_no;b+=GetTextOutEndHeaderItemTag(a);b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);b+=s_reccond_aiprivacy_num;b+=GetTextOutEndHeaderItemTag(a);b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);b+=s_reccond_aiprivacy_model;b+=GetTextOutEndHeaderItemTag(a);b+=GetTextOutStartHeaderItemTag(a,
TextOutStyle.reccond);b+=s_reccond_aiprivacy_onoff;b+=GetTextOutEndHeaderItemTag(a);b+=GetTextOutEndHeaderTag(a);for(var c=0;c<CamSettingMaxNum;c++){var d=("00"+(c+1)).slice(-3),e=SelectCameraInfoAIPrivacy[c];0!=e.num&&(b+=GetTextOutStartRowTag(a),b+=GetTextOutStartColumnTag(a,TextOutStyle.center),b+=d,b+=GetTextOutEndColumnTag(a),b+=GetTextOutStartColumnTag(a,TextOutStyle.right),b+=e.num,b+=GetTextOutEndColumnTag(a),b+=GetTextOutStartColumnTag(a,TextOutStyle.center),b+=CamModelList[e.modelId].name,
b+=GetTextOutEndColumnTag(a),b+=GetTextOutStartColumnTag(a,TextOutStyle.right),b+=s_aiprivacy_on,b+=GetTextOutEndColumnTag(a),b+=GetTextOutEndRowTag(a))}return b+=GetTextOutEndTableTag(a)}
function GetParameterRecConfigText(a){var b=""+GetTextOutStartTableTag(a,s_textout_recconfiginfo,TextOutStyle.reccond);b+=GetTextOutStartHeaderTag(a);b+=GetTextOutStartHeaderItemTag(a,TextOutStyle.reccond);b+=s_reccond_recconfig_hddmode;b+=GetTextOutEndHeaderItemTag(a);b+=GetTextOutEndHeaderTag(a);b+=GetTextOutStartRowTag(a);b+=GetTextOutStartColumnTag(a,TextOutStyle.center);b+=HddConfigModeList[Number(UIRecObjectTable[UIRecObjectId.hddmode].val())].name;b+=GetTextOutEndColumnTag(a);b+=GetTextOutEndRowTag(a);
return b+=GetTextOutEndTableTag(a)}
function GetResultText(a){var b=s_model_name;var c=""+GetTextOutStartTableTag(a,s_textout_resultinfo_data,TextOutStyle.result);c+=GetTextOutStartHeaderTag(a);c+=GetTextOutStartHeaderItemTag(a,TextOutStyle.result);c+=s_recresult_bitrate+"("+s_recresult_bitrate_unit+")";c+=GetTextOutEndHeaderItemTag(a);c+=GetTextOutEndHeaderTag(a);c+=GetTextOutStartRowTag(a);b==s_recresult_model_nu301?(c+=GetTextOutStartColumnTag(a,TextOutStyle.center),c+=$("#recresult_bitrate_net_nu301").val(),c+=GetTextOutEndColumnTag(a)):
b==s_recresult_model_nu300?(c+=GetTextOutStartColumnTag(a,TextOutStyle.center),c+=$("#recresult_bitrate_net_nu300").val(),c+=GetTextOutEndColumnTag(a)):b==s_recresult_model_nu201?(c+=GetTextOutStartColumnTag(a,TextOutStyle.center),c+=$("#recresult_bitrate_net_nu201").val(),c+=GetTextOutEndColumnTag(a)):b==s_recresult_model_nu101&&(c+=GetTextOutStartColumnTag(a,TextOutStyle.center),c+=$("#recresult_bitrate_net_nu101").val(),c+=GetTextOutEndColumnTag(a));c+=GetTextOutEndRowTag(a);return c+=GetTextOutEndTableTag(a)}
function ConverBlankToNumber(a){return s_blank==a?0:a}function GetTextOutStartDocTag(a){var b="";TextOutFormatId.Html==a&&(b=b+'<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>'+(s_textout_label+"</title>"),b+='<link rel="stylesheet" href="css/style.css"></head><body>');return b}
function GetTextOutEndDocTag(a){var b="";TextOutFormatId.Html==a&&(b+="</body></html>");return b}function GetTextOutStartTableTag(a,b,c){var d="";TextOutFormatId.Html==a?(d=b==s_textout_estconditioninfo_vms?d+'<table class="textout_html_vms_table_style">':d+'<table class="textout_html_table_style">',d=d+('<caption class="textout_html_caption_style textout_html_header_'+c+'_style_ipro textout_html_title_style"><strong>')+b+"</strong>",d+="</caption>"):d+='"'+b+'"\n';return d}
function GetTextOutStartHeaderTag(a){var b="";TextOutFormatId.Html==a&&(b+="<thead><tr>");return b}function GetTextOutStartHeaderItemTag(a,b){var c="";return c=TextOutFormatId.Html==a?c+('<th class="textout_html_table_style textout_html_header_'+b+'_style_ipro">&nbsp;'):c+'"'}
function GetTextOutStartHeaderRecNum_SysConfigTag(a,b){var c="";return c=TextOutFormatId.Html==a?s_app_dst_ipro_ja==s_app_dst||s_app_dst_ipro_eu_ja==s_app_dst?c+('<th class="textout_html_recnum_sysconfig_table_style textout_html_header_'+b+'_style_ipro">&nbsp;'):c+('<th class="textout_html_recnum_sysconfig_table_style textout_html_header_'+b+'_style">&nbsp;'):c+'"'}
function GetTextOutStartHeaderModelTag(a,b){var c="";return c=TextOutFormatId.Html==a?c+('<th class="textout_html_model_table_style textout_html_header_'+b+'_style_ipro">&nbsp;'):c+'"'}
function GetTextOutStartHeaderReserveTag(a,b){var c="";return c=TextOutFormatId.Html==a?s_app_dst_ipro_ja==s_app_dst||s_app_dst_ipro_eu_ja==s_app_dst?c+('<th class="textout_html_reserve_style textout_html_header_'+b+'_style_ipro">&nbsp;'):c+('<th class="textout_html_reserve_style textout_html_header_'+b+'_style">&nbsp;'):c+'"'}function GetTextOutEndHeaderItemTag(a){var b="";return b=TextOutFormatId.Html==a?b+"&nbsp;</th>":b+'",'}
function GetTextOutEndHeaderTag(a){var b="";return b=TextOutFormatId.Html==a?b+"</tr></thead><tbody>":b+"\n"}function GetTextOutStartRowTag(a){var b="";TextOutFormatId.Html==a&&(b+="<tr>");return b}function GetTextOutStartColumnTag(a,b){var c="";return c=TextOutFormatId.Html==a?c+('<td class="textout_html_table_style textout_html_data_result_'+b+'_style">&nbsp;'):c+'"'}
function GetTextOutStartColumnRedTag(a,b){var c="";return c=TextOutFormatId.Html==a?c+('<td class="textout_html_table_style textout_html_data_result_'+b+'_style recresult_messages_red_style">&nbsp;'):c+'"'}function GetTextOutEndColumnTag(a){var b="";return b=TextOutFormatId.Html==a?b+"&nbsp;</td>":b+'",'}function GetTextOutEndRowTag(a){var b="";return b=TextOutFormatId.Html==a?b+"</tr>":b+"\r\n"}function GetTextOutEndTableTag(a){var b="";TextOutFormatId.Html==a&&(b+="</tbody></table>");return b}
function GetTextOutStartInnerTableTag(a){var b="";TextOutFormatId.Html==a&&(b+="<table><tbody>");return b}function GetTextOutStartInnerRowTag(a){var b="";TextOutFormatId.Html==a&&(b+="<tr>");return b}function GetTextOutStartInnerColumnTag(a,b){var c="";TextOutFormatId.Html==a&&(c+='<td class="textout_html_data_result_'+b+'_style">&nbsp;');return c}function GetTextOutEndInnerColumnTag(a){var b="";TextOutFormatId.Html==a&&(b+="&nbsp;</td>");return b}
function GetTextOutEndInnerRowTag(a){var b="";return b=TextOutFormatId.Html==a?b+"</tr>":b+"\n"}function GetTextOutEndInnerTableTag(a){var b="";TextOutFormatId.Html==a&&(b+="</tbody></table>");return b}function GetTextOutCrLfTag(a){var b="";return b=TextOutFormatId.Html==a?b+"<br>":b+"\n"}function DisplayTextIn(){$("#textinput_area").val("");$("#textinput_dialog").dialog("open")}
function ImportTextIn(a){CalcPauseFlag=!0;ProcTextIn=1;SetDefaultValueAllItem();a=a.split("\n");var b=a.length;if(3>b||-1==a[0].indexOf(s_textout_appinfo)||-1==a[2].indexOf(s_app_name))ImportTextInError();else{for(var c=1,d=0;d<CamSettingMaxNum;d++)UIRecGroupTable[d]=-1,UIRecGroupTableAIPrivacy[d]=-1;for(var e=3;e<b;e++)if(-1!=a[e].indexOf(s_textout_scheduleinfo)&&-1!=a[e].indexOf(s_textout_schedule_weekinfo)){var f=ScheduleRecTimeTableList.length;if(e+f+1>=b){ImportTextInError();return}d=Number(a[e].match(/\d+/))-
1;for(var g=Object.keys(ScheduleRecWeekId).length+1,h=0;h<f;h++){var k=SplitCsvText(a[e+2+h]);if(g!=k.length){ImportTextInError();return}for(var m=1;m<g;m++)-1!=k[m].indexOf(s_textout_schedule_weekchecked)&&(UISchObjectTable[d][UISchObjectId.week][ScheduleRecWeekList[m-1].id][ScheduleRecTimeTableList[h].id].prop("checked",!0),UISchObjectTable[d][UISchObjectId.week][ScheduleRecWeekList[m-1].id][ScheduleRecTimeTableList[h].id].trigger("change"))}e+=f+1}else if(-1!=a[e].indexOf(s_textout_scheduleinfo)&&
-1!=a[e].indexOf(s_textout_schedule_rectimeinfo)){f=ScheduleRecTimeTableList.length-1;if(e+f+1>=b){ImportTextInError();return}d=Number(a[e].match(/\d+/))-1;g=TimeTableItemMaxNum;for(h=0;h<f;h++){k=SplitCsvText(a[e+2+h]);if(g+1!=k.length){ImportTextInError();return}for(m=0;m<g;m++)if(""!=k[m+1]){var l=k[m+1].match(/[0-9]{2}/g);if(null==l||4!=l.length){ImportTextInError();return}var n=ScheduleRecTimeTableList[h].id-1;UISchObjectTable[d][UISchObjectId.timetable][n][m][UISchTimeObjectId.shour].val(Number(l[0]));
UISchObjectTable[d][UISchObjectId.timetable][n][m][UISchTimeObjectId.shour].trigger("change");UISchObjectTable[d][UISchObjectId.timetable][n][m][UISchTimeObjectId.sminute].val(Number(l[1]));UISchObjectTable[d][UISchObjectId.timetable][n][m][UISchTimeObjectId.sminute].trigger("change");UISchObjectTable[d][UISchObjectId.timetable][n][m][UISchTimeObjectId.ehour].val(Number(l[2]));UISchObjectTable[d][UISchObjectId.timetable][n][m][UISchTimeObjectId.ehour].trigger("change");UISchObjectTable[d][UISchObjectId.timetable][n][m][UISchTimeObjectId.eminute].val(Number(l[3]));
UISchObjectTable[d][UISchObjectId.timetable][n][m][UISchTimeObjectId.eminute].trigger("change")}}e+=f+1}else if(-1!=a[e].indexOf(s_textout_caminfo)){d=0;g=13;s_model_name==s_recresult_model_nx300&&(g=14);for(s_app_dst_ch==s_app_dst&&(g-=2);;){h=SplitCsvText(a[e+2+d]);if(null==h||0==h.length)break;if(g>h.length){ImportTextInError();break}f=0;k=Number(h[f]);if(isNaN(k)||0>k||CamSettingMaxNum<k){ImportTextInError();return}f++;m=Number(h[f]);if(isNaN(m)||0>m||999<m){ImportTextInError();return}UICamObjectTable[k][UICamObjectId.detail_num].val(m);
UICamObjectTable[k][UICamObjectId.detail_num].trigger("keyup");f++;s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=s_app_dst&&0==h[2].indexOf("U")&&(h[2]=h[2].replace("(30IPS)",""),h[3]=h[3].replace("(3/4)","(1)"));m=-1;l=CamModelList.length;for(n=0;n<l;n++)if(CamModelList[n].name==h[f]){m=n;var p=s_model_name==s_recresult_model_nx300?s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=s_app_dst?CamModelList[n].nx300eng:CamModelList[n].nx300jpn:
s_model_name==s_recresult_model_nx200?s_app_dst_ja==s_app_dst?CamModelList[n].nx200jpn:s_app_dst_ipro_ja==s_app_dst?CamModelList[n].nx200iprojpn:CamModelList[n].nx200eng:s_model_name==s_recresult_model_nx100?s_app_dst_ja==s_app_dst?CamModelList[n].nx100jpn:s_app_dst_ipro_ja==s_app_dst?CamModelList[n].nx100iprojpn:CamModelList[n].nx100eng:s_model_name==s_recresult_model_nu301||s_model_name==s_recresult_model_nu300||s_model_name==s_recresult_model_nu201||s_model_name==s_recresult_model_nu101?s_app_dst_ja==
s_app_dst?CamModelList[n].nx100jpn:CamModelList[n].nx100eng:s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=s_app_dst?CamModelList[n].nx400eng:CamModelList[n].nx400jpn;break}if(-1==m){ImportTextInError();return}if(0==p){ImportTextInError();return}UICamObjectTable[k][UICamObjectId.detail_model].val(CamModelList[m].id);UICamObjectTable[k][UICamObjectId.detail_model].trigger("change");m=CamModelList[m].typeid;f++;if("--"==h[f]){var u=f+6;f+=4}else{var r=-1;l=CamTypeCompList[m].length;
for(n=0;n<l;n++)if(CamCompList[CamTypeCompList[m][n]]==h[f]){r=CamTypeCompList[m][n];break}if(-1==r){ImportTextInError();return}UICamObjectTable[k][UICamObjectId.detail_comp].val(r);UICamObjectTable[k][UICamObjectId.detail_comp].trigger("change");f++;l=-1;n=CamTypeResoList[m][r].length;for(var q=0;q<n;q++)if(CamResoList[CamTypeResoList[m][r][q]]==h[f]){l=CamTypeResoList[m][r][q];break}if(-1==l){ImportTextInError();return}UICamObjectTable[k][UICamObjectId.detail_reso].val(l);UICamObjectTable[k][UICamObjectId.detail_reso].trigger("change");
f++;l=-1;n=GetCamResoIndex(k);q=CamTypeFpsList[m][r][n].length;for(var w=0;w<q;w++)if(CamFpsList[CamTypeFpsList[m][r][n][w]].name==h[f]){l=CamTypeFpsList[m][r][n][w];break}if(-1==l){ImportTextInError();return}UICamObjectTable[k][UICamObjectId.detail_fps].val(l);UICamObjectTable[k][UICamObjectId.detail_fps].trigger("change");f++;l=-1;n=CamCompQualList[r].length;for(q=0;q<n;q++)if(CamQualList[CamCompQualList[r][q]]==h[f]){l=CamCompQualList[r][q];break}if(-1==l){ImportTextInError();return}UICamObjectTable[k][UICamObjectId.detail_qual].val(l);
UICamObjectTable[k][UICamObjectId.detail_qual].trigger("change");f++}l=-1;n=CamTypeAudioList[m].length;for(q=0;q<n;q++)if(CamAudioList[CamTypeAudioList[m][q]].name==h[f]){l="SMR10"!=h[f]&&"On"!=h[f]||s_app_dst_ja!=s_app_dst?CamTypeAudioList[m][q]:CamAudioId.Off;break}if(-1==l){ImportTextInError();return}UICamObjectTable[k][UICamObjectId.detail_audio].val(l);UICamObjectTable[k][UICamObjectId.detail_audio].trigger("change");f++;l=Number(h[f]);if(isNaN(l)||0>=l||ScheduleMaxNum<l){ImportTextInError();
return}UICamObjectTable[k][UICamObjectId.detail_schedule].val(l);UICamObjectTable[k][UICamObjectId.detail_schedule].trigger("change");f++;if("--"!=h[u]){l=-1;n=CamTypeSmartCodingList[m].length;for(q=0;q<n;q++)if(CamSmartCodingList[CamTypeSmartCodingList[m][q]]==h[f]){l=CamTypeSmartCodingList[m][q];break}if(-1==l){ImportTextInError();return}s_model_name==s_recresult_model_nx400?CamCompId.H265_1!=r&&(l=CamSmartCodingId.Off):s_model_name==s_recresult_model_nx100?CamCompId.H265_1!=r&&(l=CamSmartCodingId.Off):
s_model_name==s_recresult_model_nu101?CamCompId.H265_1!=r&&(l=CamSmartCodingId.Off):s_model_name==s_recresult_model_nu201?CamCompId.H265_1!=r&&(l=CamSmartCodingId.Off):s_model_name==s_recresult_model_nu300?CamCompId.H265_1!=r&&(l=CamSmartCodingId.Off):s_model_name==s_recresult_model_nu301?CamCompId.H265_1!=r&&(l=CamSmartCodingId.Off):s_model_name==s_recresult_model_nx200?CamCompId.H265_1!=r&&(l=CamSmartCodingId.Off):s_model_name==s_recresult_model_nx300&&CamCompId.H265_1!=r&&(l=CamSmartCodingId.Off);
UICamObjectTable[k][UICamObjectId.advance_smartcoding].val(l);UICamObjectTable[k][UICamObjectId.advance_smartcoding].trigger("change")}f++;if(s_app_dst_ch!=s_app_dst){l=-1;n=CamTypeConnectList[m].length;for(q=0;q<n;q++)if(CamConnectList[CamTypeConnectList[m][q]].name==h[f]){l=CamTypeConnectList[m][q];break}if(-1==l){ImportTextInError();return}UICamObjectTable[k][UICamObjectId.advance_connect].val(l);UICamObjectTable[k][UICamObjectId.advance_connect].trigger("change");f++}"On"==h[f]&&(UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked=
!0,UICamObjectTable[0][UICamObjectId.advance_chgbitrate].trigger("change"),f++,"--"==h[u]&&(UICamObjectTable[k][UICamObjectId.advance_bitrate].val(h[f]),UICamObjectTable[k][UICamObjectId.advance_bitrate].trigger("keyup")));d++}e+=d+2}else if(-1!=a[e].indexOf(s_textout_aiprivacy)){d=0;for(g=4;;){h=SplitCsvText(a[e+2+d]);if(null==h||0==h.length)break;if(g>h.length){ImportTextInError();break}f=0;k=Number(h[f]);if(isNaN(k)||0>k||CamSettingMaxNum<k){ImportTextInError();return}f++;m=Number(h[f]);if(isNaN(m)||
0>m||999<m){ImportTextInError();return}s_app_dst!=s_app_dst_ch&&UICamObjectTable[k][UICamObjectId.aiprivacy_num].val(m);f++;m=-1;l=CamModelList.length;for(n=0;n<l;n++)if(CamModelList[n].name==h[f]){m=n;p=s_model_name==s_recresult_model_nx300?s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=s_app_dst?CamModelList[n].nx300eng:CamModelList[n].nx300jpn:s_model_name==s_recresult_model_nx200?s_app_dst_ja==s_app_dst?CamModelList[n].nx200jpn:s_app_dst_ipro_ja==s_app_dst?CamModelList[n].nx200iprojpn:
CamModelList[n].nx200eng:s_model_name==s_recresult_model_nx100||s_model_name==s_recresult_model_nu301||s_model_name==s_recresult_model_nu300||s_model_name==s_recresult_model_nu201||s_model_name==s_recresult_model_nu101?s_app_dst_ja==s_app_dst?CamModelList[n].nx100jpn:s_app_dst_ipro_ja==s_app_dst?CamModelList[n].nx100iprojpn:CamModelList[n].nx100eng:s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=s_app_dst?CamModelList[n].nx400eng:CamModelList[n].nx400jpn;break}if(-1==
m){ImportTextInError();return}if(0==p){ImportTextInError();return}s_app_dst!=s_app_dst_ch&&(UICamObjectTable[k][UICamObjectId.aiprivacy_model].val(CamModelList[m].id),UICamObjectTable[k][UICamObjectId.aiprivacy_model].trigger("change"));s_app_dst!=s_app_dst_ch&&(UICamObjectTable[k][UICamObjectId.aiprivacy_onoff].val(CamAiProcessorId.On),UICamObjectTable[k][UICamObjectId.aiprivacy_onoff].trigger("change"));d++}e+=d+2}else if(-1!=a[e].indexOf(s_textout_recconfiginfo)){if(e+1>=b){ImportTextInError();
return}g=1;h=SplitCsvText(a[e+2]);if(g>h.length){ImportTextInError();return}f=0;g=-1;d=HddConfigModeList.length;for(k=0;k<d;k++)if(HddConfigModeList[k].name==h[f]){g=HddConfigModeList[k].id;break}if(-1==g){ImportTextInError();return}UIRecObjectTable[UIRecObjectId.hddmode].val(g);UIRecObjectTable[UIRecObjectId.hddmode].trigger("change")}else if(-1!=a[e].indexOf(s_textout_estconditioninfo_nu301)){k=s_model_name;s_model_name=s_recresult_model_nu301;c=0;if(e+1>=b){ImportTextInError();return}g=1;h=SplitCsvText(a[e+
2]);if(g>h.length){ImportTextInError();return}f=0;d=-1;l=HddCapaList.length;for(n=0;n<l;n++)if(HddCapaList[n].name==h[f]){d=HddCapaList[n].id;break}if(-1==d){ImportTextInError();return}UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu301].val(d);UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu301].trigger("change");s_model_name=k}else if(-1!=a[e].indexOf(s_textout_estconditioninfo_nu300)){k=s_model_name;s_model_name=s_recresult_model_nu300;c=0;if(e+1>=b){ImportTextInError();return}g=1;h=SplitCsvText(a[e+
2]);if(g>h.length){ImportTextInError();return}f=0;d=-1;l=HddCapaList.length;for(n=0;n<l;n++)if(HddCapaList[n].name==h[f]){d=HddCapaList[n].id;break}if(-1==d){ImportTextInError();return}UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu300].val(d);UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu300].trigger("change");s_model_name=k}else if(-1!=a[e].indexOf(s_textout_estconditioninfo_nu201)){k=s_model_name;s_model_name=s_recresult_model_nu201;c=0;if(e+1>=b){ImportTextInError();return}g=1;h=SplitCsvText(a[e+
2]);if(g>h.length){ImportTextInError();return}f=0;d=-1;l=HddCapaList.length;for(n=0;n<l;n++)if(HddCapaList[n].name==h[f]){d=HddCapaList[n].id;break}if(-1==d){ImportTextInError();return}UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu201].val(d);UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu201].trigger("change");s_model_name=k}else if(-1!=a[e].indexOf(s_textout_estconditioninfo_nu101)){k=s_model_name;s_model_name=s_recresult_model_nu101;c=0;if(e+1>=b){ImportTextInError();return}g=1;h=SplitCsvText(a[e+
2]);if(g>h.length){ImportTextInError();return}f=0;d=-1;l=HddCapaList.length;for(n=0;n<l;n++)if(HddCapaList[n].name==h[f]){d=HddCapaList[n].id;break}if(-1==d){ImportTextInError();return}UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa].val(d);UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa].trigger("change");s_model_name=k}else if(-1!=a[e].indexOf(s_textout_estconditioninfo_nx400)){k=s_model_name;s_model_name=s_recresult_model_nx400;c=0;if(e+1>=b){ImportTextInError();return}g=4;h=SplitCsvText(a[e+
2]);if(g>h.length){ImportTextInError();return}f=0;d=-1;m=RecNumList.length;for(l=0;l<m;l++)if(RecNumList[l].name==h[f]){d=RecNumList[l].id;break}if(-1==d){ImportTextInError();return}UIOtherObjectTable_NX400[UIOtherObjectId.recnum].val(d);UIOtherObjectTable_NX400[UIOtherObjectId.recnum].trigger("change");f++;if(11==camItemslength)for(d=0;d<CamSettingMaxNum;d++)l=1,UICamObjectTable[d+1][UICamObjectId.advance_recgroup].val(l),UICamObjectTable[d+1][UICamObjectId.advance_recgroup].trigger("change"),UICamObjectTable[d+
1][UICamObjectId.aiprivacy_recgroup].val(l),UICamObjectTable[d+1][UICamObjectId.aiprivacy_recgroup].trigger("change");else{for(d=0;d<CamSettingMaxNum;d++)if(-1!=UIRecGroupTable[d]){l=Number(UIRecGroupTable[d]);if(isNaN(l)||0>=l||RecGroupMaxNum<l){ImportTextInError();return}UICamObjectTable[d+1][UICamObjectId.advance_recgroup].val(l);UICamObjectTable[d+1][UICamObjectId.advance_recgroup].trigger("change")}for(d=0;d<CamSettingMaxNum;d++)if(-1!=UIRecGroupTableAIPrivacy[d]){l=Number(UIRecGroupTableAIPrivacy[d]);
if(isNaN(l)||0>=l||RecGroupMaxNum<l){ImportTextInError();return}UICamObjectTable[d+1][UICamObjectId.aiprivacy_recgroup].val(l);UICamObjectTable[d+1][UICamObjectId.aiprivacy_recgroup].trigger("change")}}d=-1;l=HddCapaList.length;for(n=0;n<l;n++)if(HddCapaList[n].name==h[f]){d=HddCapaList[n].id;break}if(-1==d){ImportTextInError();return}UIOtherObjectTable_NX400[UIOtherObjectId.hddcapa].val(d);UIOtherObjectTable_NX400[UIOtherObjectId.hddcapa].trigger("change");f++;if(4!=g){d=-1;var v=RecGroupList.length;
for(l=0;l<v;l++)if(RecGroupList[l].name==h[f]){d=RecGroupList[l].id;break}if(-1==d){ImportTextInError();return}UIOtherObjectTable_NX400[UIOtherObjectId.recgroup1].val(d);UIOtherObjectTable_NX400[UIOtherObjectId.recgroup1].trigger("change");f++}d=Number(h[f]);if(isNaN(d)||0>d||9999<d){ImportTextInError();return}UIOtherObjectTable_NX400[UIOtherObjectId.recdays1].val(d);UIOtherObjectTable_NX400[UIOtherObjectId.recdays1].trigger("change");f++;if(4!=g){d=-1;for(l=0;l<v;l++)if(RecGroupList[l].name==h[f]){d=
RecGroupList[l].id;break}if(-1==d){ImportTextInError();return}UIOtherObjectTable_NX400[UIOtherObjectId.recgroup2].val(d);UIOtherObjectTable_NX400[UIOtherObjectId.recgroup2].trigger("change");f++;d=Number(h[f]);if(isNaN(d)||0>d||9999<d){ImportTextInError();return}UIOtherObjectTable_NX400[UIOtherObjectId.recdays2].val(d);UIOtherObjectTable_NX400[UIOtherObjectId.recdays2].trigger("change");f++}RecNumId.Auto==Number(UIOtherObjectTable_NX400[UIOtherObjectId.recnum].val())&&$(UIOtherObjectTable_NX400[UIOtherObjectId.recdays2]).attr("disabled",
!0);ChangeSettingRecodingGroup();g=-1;d=HdmiOutputList.length;for(m=0;m<d;m++)if(HdmiOutputList[m].name==h[f]){g=HdmiOutputList[m].id;break}if(-1==g){ImportTextInError();return}UIOtherObjectTable_NX400[UIOtherObjectId.hdmi].val(g);UIOtherObjectTable_NX400[UIOtherObjectId.hdmi].trigger("change");e+=2;s_model_name=k}else if(-1!=a[e].indexOf(s_textout_estconditioninfo_nx300)&&s_app_dst_ch!=s_app_dst){k=s_model_name;s_model_name=s_recresult_model_nx300;c=0;if(e+1>=b){ImportTextInError();return}g=3;h=
SplitCsvText(a[e+2]);if(g>h.length){ImportTextInError();return}f=0;m=-1;d=SystemConfigList.length;for(l=0;l<d;l++)if(SystemConfigList[l].name==h[f]){m=SystemConfigList[l].id;break}if(-1==m){ImportTextInError();return}UIOtherObjectTable_NX300[UIOtherObjectId.systemconfig].val(m);UIOtherObjectTable_NX300[UIOtherObjectId.systemconfig].trigger("change");f++;for(d=0;d<CamSettingMaxNum;d++)if(-1!=UIRecGroupTable[d]){l=Number(UIRecGroupTable[d]);if(isNaN(l)||0>=l||RecGroupMaxNum<l){ImportTextInError();return}UICamObjectTable[d+
1][UICamObjectId.advance_recgroup].val(l);UICamObjectTable[d+1][UICamObjectId.advance_recgroup].trigger("change")}for(d=0;d<CamSettingMaxNum;d++)if(-1!=UIRecGroupTableAIPrivacy[d]){l=Number(UIRecGroupTableAIPrivacy[d]);if(isNaN(l)||0>=l||RecGroupMaxNum<l){ImportTextInError();return}UICamObjectTable[d+1][UICamObjectId.aiprivacy_recgroup].val(l);UICamObjectTable[d+1][UICamObjectId.aiprivacy_recgroup].trigger("change")}d=-1;l=HddCapaList.length;for(n=0;n<l;n++)if(HddCapaList[n].name==h[f]){d=HddCapaList[n].id;
break}if(-1==d){ImportTextInError();return}UIOtherObjectTable_NX300[UIOtherObjectId.hddcapa].val(d);UIOtherObjectTable_NX300[UIOtherObjectId.hddcapa].trigger("change");f++;if(3!=g){d=-1;v=RecGroupList.length;for(l=0;l<v;l++)if(RecGroupList[l].name==h[f]){d=RecGroupList[l].id;break}if(-1==d){ImportTextInError();return}UIOtherObjectTable_NX300[UIOtherObjectId.recgroup1].val(d);UIOtherObjectTable_NX300[UIOtherObjectId.recgroup1].trigger("change");f++}if(1!=m){d=Number(h[f]);if(isNaN(d)||0>d||9999<d){ImportTextInError();
return}UIOtherObjectTable_NX300[UIOtherObjectId.recdays1].val(d);UIOtherObjectTable_NX300[UIOtherObjectId.recdays1].trigger("change")}f++;if(3!=g){d=-1;for(l=0;l<v;l++)if(RecGroupList[l].name==h[f]){d=RecGroupList[l].id;break}if(-1==d){ImportTextInError();return}UIOtherObjectTable_NX300[UIOtherObjectId.recgroup2].val(d);UIOtherObjectTable_NX300[UIOtherObjectId.recgroup2].trigger("change");f++;if(1!=m){d=Number(h[f]);if(isNaN(d)||0>d||9999<d){ImportTextInError();return}UIOtherObjectTable_NX300[UIOtherObjectId.recdays2].val(d);
UIOtherObjectTable_NX300[UIOtherObjectId.recdays2].trigger("change")}}g=GetSettingRecGroup();RecGroup1==g&&($(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup2]).attr("disabled",!0),$(UIOtherObjectTable_NX300[UIOtherObjectId.recdays2]).attr("disabled",!0));ChangeSettingRecodingGroup();s_model_name=k;if(s_app_dst_ja==s_app_dst||s_app_dst_ipro_ja==s_app_dst||s_app_dst_ipro_eu_ja==s_app_dst)break}else if(-1!=a[e].indexOf(s_textout_estconditioninfo_vms)){k=s_model_name;s_model_name=s_recresult_model_vms;
if(e+1>=b){ImportTextInError();return}g=1;h=SplitCsvText(a[e+2]);if(g>h.length){ImportTextInError();return}f=0;d=Number(h[f]);if(isNaN(d)||0>d||9999<d){ImportTextInError();return}UIOtherObjectTable_VMS[UIOtherObjectId.recdays1].val(d);UIOtherObjectTable_VMS[UIOtherObjectId.recdays1].trigger("change");s_model_name=k;break}if(1==c){for(d=0;d<CamSettingMaxNum;d++)if(-1!=UIRecGroupTable[d]){l=Number(UIRecGroupTable[d]);if(isNaN(l)||0>=l||RecGroupMaxNum<l){ImportTextInError();return}UICamObjectTable[d+
1][UICamObjectId.advance_recgroup].val(l);UICamObjectTable[d+1][UICamObjectId.advance_recgroup].trigger("change")}for(d=0;d<CamSettingMaxNum;d++)if(-1!=UIRecGroupTableAIPrivacy[d]){l=Number(UIRecGroupTableAIPrivacy[d]);if(isNaN(l)||0>=l||RecGroupMaxNum<l){ImportTextInError();return}UICamObjectTable[d+1][UICamObjectId.aiprivacy_recgroup].val(l);UICamObjectTable[d+1][UICamObjectId.aiprivacy_recgroup].trigger("change")}}ChangeAllSettingRecGroup();CalcPauseFlag=!1;DoCalculate();ProcTextIn=0}}
function ImportTextInError(){alert(s_textin_dlg_errmsg);CalcPauseFlag=!1}function SplitCsvText(a){a=a.match(/"[^"]*"|[^,]+/g);if(null==a)a=[];else for(var b=a.length,c=0;c<b;c++)a[c]=a[c].replace(/^"|"$/g,"");return a};function SetEventHandler(){$('[id^="reccond_"]').off();$('[id^="reccond_resulttab_"][id$="_no"]').click(function(a){s_model_name=a.target.text;if(1!=CheckSettingResultTab())return!1;ChangeSettingSystemConfig();ChangeAllSettingRecGroup();DoCalculate()});$('[name^="reccond_shcedule"][name*="_reftable_"]').change(function(){SelectScheduleWeek($(this)[0]);DoCalculate()});$('[id^="reccond_shcedule"][id$="hour"],[id^="reccond_shcedule"][id$="minute"]').change(function(){SelectScheduleTimeTable($(this)[0]);
DoCalculate()});$('[id^="reccond_detail_"][id$="_num"]').on("paste",function(){return!1});$('[id^="reccond_detail_"][id$="_num"]').keydown(function(a){return CheckInputNumberOnly(a.keyCode)});$('[id^="reccond_detail_"][id$="_num"]').keyup(function(a){if(37!=a.keyCode&&39!=a.keyCode){for(a=1;a<=CamSettingMaxNum;a++){var b=UICamObjectTable[a][UICamObjectId.detail_num],c=ConverZenNum2HanNum(b[0].value);c.match(/[0-9]+/)?$("#"+$(b[0]).attr("id")).val(c):$("#"+$(b[0]).attr("id")).val("");InputCamNum(b[0]);
ChangeAllSettingRecGroup()}CheckChgBitrate();DoCalculate()}});$('[id^="reccond_poe_"][id$="_modeltype"]').focus(function(){var a=$(this)[0];a=$(a).attr("id").split("_");a=a[a.length-2];var b=Number(document.getElementById("reccond_poe_"+a+"_model").value);0<Number(a)&&(b!=CamPoeList.length-1&&($($(this)[0]).attr("readonly",!1),$($(this)[0]).css("background-color","#FFFFFF")),CamPoeList[b].modeltype==$($(this)[0]).val()&&$($(this)[0]).val(""))});$('[id^="reccond_poe_"][id$="_modeltype"]').blur(function(){var a=
$(this)[0];a=$(a).attr("id").split("_");a=a[a.length-2];var b=Number(document.getElementById("reccond_poe_"+a+"_model").value);0<Number(a)&&(b!=CamPoeList.length-1&&""==$($(this)[0]).val()?($($(this)[0]).attr("readonly",!0),$($(this)[0]).css("background-color","#E3E3E3"),$($(this)[0]).val(CamPoeList[b].modeltype)):b!=CamPoeList.length-1&&$($(this)[0]).val()==CamPoeList[b].modeltype&&($($(this)[0]).attr("readonly",!0),$($(this)[0]).css("background-color","#E3E3E3")))});$('[id^="reccond_poe_"][id$="_modelpower"]').focus(function(){var a=
$(this)[0];$(a).attr("id").split("_");if(0==$(a).prop("readonly")){var b=a.value;b=b.substr(0,b.length-1);a.value=b}});$('[id^="reccond_poe_"][id$="_modelpower"]').blur(function(){var a=$(this)[0];$(a).attr("id").split("_");if(0==$(a).prop("readonly")){var b=ConverZenNum2HanNum($(this)[0].value);$($(this)[0]).attr("id").split("_");isNumberString(b)&&(b=parseFloat(b,10),Number(b)>maxval_pdpower?b=String(maxval_pdpower):Number(b)<minval_pdpower&&(b=String(minval_pdpower)),$("#"+$($(this)[0]).attr("id")).val(b));
b=Math.round(10*Number(a.value))/10;$(a).val(b.toFixed(1)+"W");a=SaveSwitchCameraSetting();DoCalculatePoe(a)}});$('[id^="precomp_poe_"][id$="_numberofunits"]').on("paste",function(){return!1});$('[id^="precomp_poe_"][id$="_modelpower"]').focus(function(){var a=$(this)[0];$(a).attr("id").split("_");if(0==$(a).prop("readonly")){var b=a.value;b=b.substr(0,b.length-1);a.value=b}});$('[id^="precomp_poe_"][id$="_modelpower"]').blur(function(){var a=$(this)[0];$(a).attr("id").split("_");if(0==$(a).prop("readonly")){var b=
ConverZenNum2HanNum($(this)[0].value);$($(this)[0]).attr("id").split("_");isNumberString(b)&&(b=parseFloat(b,10),Number(b)>maxval_pdpower?b=String(maxval_pdpower):Number(b)<minval_pdpower&&(b=String(minval_pdpower)),$("#"+$($(this)[0]).attr("id")).val(b));b=Math.round(10*Number(a.value))/10;$(a).val(b.toFixed(1)+"W");DoCalculatePoePreComp()}});$('[id^="reccond_poesw_"][id$="_psepower"]').focus(function(){var a=$(this)[0];$(a).attr("id").split("_");if(0==$(a).prop("readonly")){var b=a.value;power_str_lastch=
b.slice(-1);b=b.substr(0,b.length-1);a.value=b}});$('[id^="reccond_poesw_"][id$="_psepower"]').blur(function(){var a=$(this)[0];$(a).attr("id").split("_");if(0==$(a).prop("readonly")){var b=ConverZenNum2HanNum($(this)[0].value);$($(this)[0]).attr("id").split("_");isNumberString(b)?(b=parseFloat(b,10),Number(b)>maxval_pdpower?b=String(maxval_pdpower):Number(b)<minval_pdpower&&(b=String(minval_pdpower)),b=Math.round(10*Number(b))/10):b=0;$(a).val(b.toFixed(1)+"W");InputSwitchPsePower($(this)[0])}});
$('[id^="reccond_poesw_"][id$="_portnum"]').blur(function(){var a=$(this)[0];$(a).attr("id").split("_");if(0==$(a).prop("readonly")){var b=ConverZenNum2HanNum($(this)[0].value);var c=$($(this)[0]).attr("id").split("_");c=Number(c[c.length-2]);if(isNumberString(b)){b=parseFloat(b,10);Number(b)>maxval_portnum?b=String(maxval_portnum):Number(b)<minval_portnum&&(b=String(minval_portnum));var d=Number(b)}else d="";$(a).val(d);HubPoeList[Number(c)].portnum=Number(b)}InputSwitchPortNum($(this)[0]);c=$($(this)[0]).attr("id").split("_");
c=c[c.length-2];SetResultPoeHubInfo(Number(c))});$('[id^="reccond_poe_"][id$="_model"]').change(function(){SelectPoeCamModelList($(this)[0],!1);var a=SaveSwitchCameraSetting();DoCalculatePoe(a);var b=document.getElementById("sw_no").textContent;0!=SwitchPoeList[a].isPRseries&&(document.getElementById("sw_model").innerHTML=hubname_prseries+"<br>(WJ-PC200 x "+GetSwConnectedCamNum(Number(b)-1)+")");UpdatePoeCamModelList();DispAlertMsg()});$('[id^="precomp_poe_"][id$="_model"]').change(function(){SelectPoePreCompCamModelList($(this)[0]);
DoCalculatePoePreComp()});$('[id^="reccond_poesw_"][id$="_powertypesel"]').change(function(){var a=$($(this)[0]).attr("id").split("_");a=a[a.length-2];SetResultPoeHubInfo(Number(a));var b=Number($(UICamObjectTable[Number(a)][UICamObjectId.poesw_model]).val());SetSwitchCfgButton(a,b,!1)});$('[id^="reccond_poe_"][id$="_powertypesel"]').change(function(){var a=$($(this)[0]).attr("id").split("_");a=a[a.length-2];var b=GetModeIdInCameraSetting(Number(a)),c=$('[id="reccond_poe_'+a+'_powertypesel"] option:selected').val();
InitPoePowerClass(Number(a),c);SetPoeExternalPower(a,b,0);SelectPoeCamPowerTypeOne(a,b);SetPoeExternalPower(a,b,0);a=SaveSwitchCameraSetting();DoCalculatePoe(a)});$('[id^="precomp_poe_"][id$="_powertypesel"]').change(function(){var a=$($(this)[0]).attr("id").split("_");a=a[a.length-2];var b=GetModeIdInCameraSettingPreComp(Number(a)),c=$('[id="precomp_poe_'+a+'_powertypesel"] option:selected').val();InitPoePowerClassPreComp(Number(a),c);SetPoePreCompExternalPower(a,b,0);SelectPoePreCompCamPowerTypeOne(a,
b);SetPoePreCompExternalPower(a,b,0);DoCalculatePoePreComp()});$('[id^="reccond_poe_"][id$="_powerclasssel"]').change(function(){var a=SaveSwitchCameraSetting();DoCalculatePoe(a)});$('[id^="precomp_poe_"][id$="_powerclasssel"]').change(function(){DoCalculatePoePreComp()});$('[id^="reccond_poesw_"][id$="_customerdesc"]').change(function(){var a=$($(this)[0]).attr("id").split("_");resultPoEHubInfo[Number(a[a.length-2])-1].text=$($(this)[0]).val()});$('[id^="reccond_poesw_"][id$="_modeldetail"]').change(function(){SelectSwitchModelDetail($(this)[0]);
var a=SaveSwitchCameraSetting();DoCalculatePoe(a)});$('[id^="reccond_poesw_"][id$="_model"]').change(function(){var a=$(this)[0];a=$(a).attr("id").split("_");a=a[a.length-2];resultPoEHubInfo[Number(a)-1]=new PoeHubInfo(Number(a)-1,-1,"","","",-1,-1,0,0,[],!1,!1,!1);var b=pre_swmodelid[Number(a)-1];0<b&&0<SwitchPoeList[b].isPRseries&&checkPRinResultAsCamera(Number(a))&&(b=deletePRinResultAsCamera(Number(a)),alert(s_msgconfirm_prseriesdeletedascamera),0<=b&&showPoEHubCameraSetting(b));SelectSwitchModelList($(this)[0]);
pre_swmodelid[Number(a)-1]=Number($($(this)[0]).val());SetResultPoeHubInfo(Number(a))});$('[id^="reccond_poesw_"][id$="_psepower"]').change(function(){var a=$($(this)[0]).attr("id").split("_");SetResultPoeHubInfo(Number(a[a.length-2]))});$('[id^="reccond_poesw_"][id$="_powertype"]').change(function(){SelectSwitchPowerType($(this)[0]);SetSwitchCfgButton(itemNo,modelId,!1)});$('[id^="reccond_poesw_"][id$="_portnum"]').change(function(){InputSwitchPortNum($(this)[0]);var a=$($(this)[0]).attr("id").split("_");
SetResultPoeHubInfo(Number(a[a.length-2]))});$('[id^="reccond_poe_"][id$="_externalpower"]').change(function(){CheckPoeCamExternalPower($(this)[0]);var a=SaveSwitchCameraSetting();DoCalculatePoe(a)});$('[id^="reccond_poe_"][id$="_acadapter"]').change(function(){var a=$(this)[0];a=$(a).attr("id").split("_");a=a[a.length-2];var b=GetModeIdInCameraSetting(Number(a));CheckPoeCamExternalPower($(this)[0]);SelectPoeCamPowerTypeOne(a,b);a=SaveSwitchCameraSetting();DoCalculatePoe(a)});$('[id^="precomp_poe_"][id$="_acadapter"]').change(function(){var a=
$(this)[0];a=$(a).attr("id").split("_");a=a[a.length-2];var b=GetModeIdInCameraSettingPreComp(Number(a));CheckPoePreCompCamExternalPower($(this)[0]);SelectPoePreCompCamPowerTypeOne(a,b);DoCalculatePoePreComp()});$('[id^="reccond_detail_"][id$="_model"]').change(function(){SelectCamModelList($(this)[0]);ChangeAllSettingRecGroup();CheckChgBitrate();DoCalculate()});$('[id^="reccond_detail_"][id$="_comp"]').change(function(){SelectCamCompList($(this)[0]);DoCalculate()});$('[id^="reccond_detail_"][id$="_reso"]').change(function(){SelectCamResoList($(this)[0]);
DoCalculate()});$('[id^="reccond_detail_"][id$="_fps"]').change(function(){SelectCamFpsList($(this)[0]);DoCalculate()});$('[id^="reccond_detail_"][id$="_qual"]').change(function(){SelectCamQualityList($(this)[0]);DoCalculate()});$('[id^="reccond_detail_"][id$="_audio"]').change(function(){SelectCamAudioList($(this)[0]);DoCalculate()});$('[id^="reccond_detail_"][id$="_schedule"]').change(function(){SelectCamScheduleList($(this)[0]);DoCalculate()});$('[id^="reccond_advance_"][id$="_recgroup"]').change(function(){SelectCamRecGroupList($(this)[0]);
ChangeAllSettingRecGroup();DoCalculate()});$('[id^="reccond_advance_"][id$="_smartcoding"]').change(function(){SelectCamSmartCodingList($(this)[0]);DoCalculate()});$('[id^="reccond_advance_"][id$="_connect"]').change(function(){SelectCamConnectList($(this)[0]);DoCalculate()});$('[id^="reccond_advance_"][id$="_encrypt"]').change(function(){SelectCamEncryptList($(this)[0]);DoCalculate()});$('[id^="reccond_advance_"][id$="_facematch"]').change(function(){SelectCamFaceMatchList($(this)[0]);DoCalculate()});
$('[id^="reccond_advance_checkbitrate"]').change(function(){SelectBitrateset($(this)[0])});$("#reccond_estcondition_hdmi_nx400, #reccond_recconfig_substream").change(function(){DoCalculate()});$("#reccond_estcondition_recnum_nx400").change(function(){SelectRecNumList($(this)[0]);ChangeAllSettingRecGroup();DoCalculate()});$("#reccond_recconfig_hddmode, #reccond_estcondition_hddcapa_nx400, #reccond_estcondition_hddcapa_nx300, #reccond_estcondition_hddcapa_nx200, #reccond_estcondition_hddcapa_nx100, #reccond_estcondition_hddcapa_nu101, #reccond_estcondition_hddcapa_nu201, #reccond_estcondition_hddcapa_nu300, #reccond_estcondition_hddcapa_nu301").change(function(){DoCalculate()});
$('[id^="reccond_estcondition_recgroup_"]').change(function(){SelectRecGroupList($(this)[0]);DoCalculate()});$('[id^="reccond_estcondition_recdays_"]').on("paste",function(){return!1});$('[id^="reccond_estcondition_recdays_"]').keydown(function(a){return CheckInputNumberOnly(a.keyCode)});$('[id^="reccond_estcondition_recdays_"]').keyup(function(a){if(37!=a.keyCode&&39!=a.keyCode){a=ConverZenNum2HanNum($(this)[0].value);if(a.match(/[0-9]+/))if($("#"+$($(this)[0]).attr("id")).val(a),"reccond_estcondition_recdays_1_nx400"==
$($(this)[0]).attr("id")||"reccond_estcondition_recdays_1_nx300"==$($(this)[0]).attr("id")||"reccond_estcondition_recdays_vms"==$($(this)[0]).attr("id"))UIOtherObjectTable_VMS[UIOtherObjectId.recdays1].val(a);else{if("reccond_estcondition_recdays_2_nx400"==$($(this)[0]).attr("id")||"reccond_estcondition_recdays_2_nx300"==$($(this)[0]).attr("id"))UIOtherObjectTable_NX400[UIOtherObjectId.recdays2].val(a),s_app_dst_ch!=s_app_dst&&UIOtherObjectTable_NX300[UIOtherObjectId.recdays2].val(a)}else $("#"+$($(this)[0]).attr("id")).val("");
DoCalculate()}});$('[id^="reccond_estcondition_systemconfig_nx300"]').change(function(){SelectCalcMethodList($(this)[0]);ChangeSettingSystemConfig();ChangeAllSettingRecGroup();DoCalculate()});$('[id^="reccond_recconfig_highresomode"]').change(function(){DoCalculate()});$('[id^="reccond_advance_"][id$="_bitrate"]').keydown(function(a){return CheckInputNumberOnly(a.keyCode)});$('[id^="reccond_advance_"][id$="_bitrate"]').keyup(function(a){if(37!=a.keyCode&&39!=a.keyCode){for(a=1;a<=CamSettingMaxNum;a++){var b=
UICamObjectTable[a][UICamObjectId.advance_bitrate],c=ConverZenNum2HanNum(b[0].value);c.match(/[0-9]+/)?$("#"+$(b[0]).attr("id")).val(c):$("#"+$(b[0]).attr("id")).val("")}InputCamBitrate($(this)[0]);ChangeAllSettingRecGroup();DoCalculate()}});$('[id^="reccond_aiprivacy_"][id$="_recgroup"]').change(function(){SelectCamRecGroupList($(this)[0]);ChangeAllSettingRecGroup();DoCalculate()});$('[id^="reccond_aiprivacy_"][id$="_onoff"]').change(function(){SelectAIPrivacyList($(this)[0]);SelectCamCompList($(this)[0]);
ChangeAllSettingRecGroup();DoCalculate()});$('[name="reccond_poe_unit"]:radio').change(function(){"m"==$('[name="reccond_poe_unit"]:checked').val()?(poe_cablelen_unit_m=!0,$('[id="cable_length"]').html(s_poecond_cablelength)):(poe_cablelen_unit_m=!1,$('[id="cable_length"]').html(s_poecond_cablelength_feet));var a=document.getElementById("sw_no").textContent;a=Number(document.getElementById("reccond_poesw_"+a+"_model").value);for(var b=1;b<=SwitchPoeList[a].hubportnum;b++){var c=UICamObjectTable[b][UICamObjectId.poe_cablelength];
0!=Number(UICamObjectTable[b][UICamObjectId.poe_model].val())&&(0==poe_cablelen_unit_m?c.val(array_poe_cablelen_ft[b]):c.val(array_poe_cablelen_m[b]))}});$('[name="precomp_poe_unit"]:radio').change(function(){"m"==$('[name="precomp_poe_unit"]:checked').val()?(poe_precomp_cablelen_unit_m=!0,$('[id="precomp_cable_length"]').html(s_poecond_cablelength)):(poe_precomp_cablelen_unit_m=!1,$('[id="precomp_cable_length"]').html(s_poecond_cablelength_feet));for(var a=1;16>=a;a++){var b=UIPreCompCamObjectTable[a][UICamObjectId.poe_cablelength];
0!=Number(UIPreCompCamObjectTable[a][UICamObjectId.poe_model].val())&&(0==poe_precomp_cablelen_unit_m?b.val(array_poe_precomp_cablelen_ft[a]):b.val(array_poe_precomp_cablelen_m[a]))}});$('[id^="reccond_poe_"][id$="externalpower"]').change(function(){var a=$($(this)[0]).attr("id").split("_");a=Number(a[a.length-2]);$(this).prop("checked"),0==a&&SetPoeExternalPower(a,0,0),a=SaveSwitchCameraSetting();DoCalculatePoe(a)});$('[id^="reccond_poe_range_start"]').blur(function(a){a=ConverZenNum2HanNum($(this)[0].value);
a=parseInt(a,10);a=isNaN(a)?"001":0>=a||a>cur_sw_portnum?"001":("00"+a).slice(-3);$("#"+$($(this)[0]).attr("id")).val(a)});$('[id^="reccond_poe_range_end"]').blur(function(a){a=ConverZenNum2HanNum($(this)[0].value);a=parseInt(a,10);a=isNaN(a)?("00"+String(cur_sw_portnum)).slice(-3):0>=a||a>cur_sw_portnum?("00"+String(cur_sw_portnum)).slice(-3):("00"+a).slice(-3);$("#"+$($(this)[0]).attr("id")).val(a)});$('[id^="precomp_poe_range_start"]').blur(function(a){a=ConverZenNum2HanNum($(this)[0].value);a=
parseInt(a,10);a=isNaN(a)?"001":0>=a||16<a?"001":("00"+a).slice(-3);$("#"+$($(this)[0]).attr("id")).val(a)});$('[id^="precomp_poe_range_end"]').blur(function(a){a=ConverZenNum2HanNum($(this)[0].value);a=parseInt(a,10);a=isNaN(a)?"016".slice(-3):0>=a||16<a?"016".slice(-3):("00"+a).slice(-3);$("#"+$($(this)[0]).attr("id")).val(a)});$('[id^="reccond_poe_"][id$="_cablelength"]').blur(function(a){DbgLog("blur");a=ConverZenNum2HanNum($(this)[0].value);var b=$($(this)[0]).attr("id").split("_"),c=b[b.length-
2];b=Number(c);if(0!=continual_blur_flag)continual_blur_flag=!1;else{if(isNumberString(a)){var d=$(UICamObjectTable[b][UICamObjectId.poe_model]).val(),e=$(UICamObjectTable[b][UICamObjectId.poe_externalpower]).prop("checked"),f=maxval_feet,g=maxval_meter,h=GetSwIdInCameraSetting();0<SwitchPoeList[h].isPRseries&&1==SwitchPoeList[h].isAcAdapter?(d==CamPoeList.length-1?(c=document.getElementById("reccond_poe_"+c+"_powertypesel"),c=Number($(c).val())):c=GetPowerTypeIndex(CamPoeList[Number(d)].powertype),
0==e&&1<c&&(f=maxval_feet_prlimited_camera,g=maxval_meter_prlimited_camera)):1<=Number(d)&&50>=Number(d)&&(e=CamPoeList[Number(d)].model.substr(0,3),e=document.getElementById("reccond_poesw_"+e+"_model"),h=Number($(e).val()),0<SwitchPoeList[h].isPRseries&&0==SwitchPoeList[h].isAcAdapter&&(f=maxval_feet_prlimited_sw,g=maxval_meter_prlimited_sw));a=parseInt(a,10);0==poe_cablelen_unit_m?Number(a)>f?(a=String(f),array_poe_cablelen_ft[b]=f,array_poe_cablelen_m[b]=g):Number(a)<minval_feet&&(a=String(minval_feet),
array_poe_cablelen_ft[b]=minval_feet,array_poe_cablelen_m[b]=minval_meter):Number(a)>g?(a=String(g),array_poe_cablelen_ft[b]=f,array_poe_cablelen_m[b]=g):Number(a)<minval_meter&&(a=String(minval_meter),array_poe_cablelen_ft[b]=minval_feet,array_poe_cablelen_m[b]=minval_meter);$("#"+$($(this)[0]).attr("id")).val(a);if(0==b){$("#sw_portnum").text();if(CheckRangeSetting())for(b=camsetting_range_start;b<=camsetting_range_end;b++)objCableLength=UICamObjectTable[b][UICamObjectId.poe_cablelength],0==UICamObjectTable[b][UICamObjectId.poe_cablelength].prop("disabled")&&
(objCableLength.val(a),array_poe_cablelen_ft[b]=array_poe_cablelen_ft[0],array_poe_cablelen_m[b]=array_poe_cablelen_m[0]);else alert(s_msgwarn_allfill_outofrange);$($(this)[0]).text("");$("#"+$($(this)[0]).attr("id")).val("")}}h=SaveSwitchCameraSetting();DoCalculatePoe(h)}});$('[id^="precomp_poe_"][id$="_cablelength"]').blur(function(a){DbgLog("blur2");a=ConverZenNum2HanNum($(this)[0].value);var b=$($(this)[0]).attr("id").split("_");b=Number(b[b.length-2]);if(0!=continual_blur_flag)continual_blur_flag=
!1;else{if(isNumberString(a)){$(UIPreCompCamObjectTable[b][UICamObjectId.poe_model]).val();$(UIPreCompCamObjectTable[b][UICamObjectId.poe_externalpower]).prop("checked");var c=maxval_feet,d=maxval_meter;a=parseInt(a,10);0==poe_precomp_cablelen_unit_m?Number(a)>c?(a=String(c),array_poe_precomp_cablelen_ft[b]=c,array_poe_precomp_cablelen_m[b]=d):Number(a)<minval_feet&&(a=String(minval_feet),array_poe_precomp_cablelen_ft[b]=minval_feet,array_poe_precomp_cablelen_m[b]=minval_meter):Number(a)>d?(a=String(d),
array_poe_precomp_cablelen_ft[b]=c,array_poe_precomp_cablelen_m[b]=d):Number(a)<minval_meter&&(a=String(minval_meter),array_poe_precomp_cablelen_ft[b]=minval_feet,array_poe_precomp_cablelen_m[b]=minval_meter);$("#"+$($(this)[0]).attr("id")).val(a);if(0==b){if(CheckRangeSettingPreComp())for(c=precomp_camsetting_range_start;c<=precomp_camsetting_range_end;c++)objCableLength=UIPreCompCamObjectTable[c][UICamObjectId.poe_cablelength],0==UIPreCompCamObjectTable[c][UICamObjectId.poe_cablelength].prop("disabled")&&
(objCableLength.val(a),0==poe_precomp_cablelen_unit_m?(array_poe_precomp_cablelen_ft[c]=a,array_poe_precomp_cablelen_m[c]=Math.floor(a*maxval_meter/maxval_feet)):(array_poe_precomp_cablelen_ft[c]=Math.floor(a*maxval_feet/maxval_meter),array_poe_precomp_cablelen_m[c]=a));else alert(s_msgwarn_allfill_outofrange);$($(this)[0]).text("");$("#"+$($(this)[0]).attr("id")).val("")}}if(0==b){if(CheckRangeSettingPreComp())for(c=precomp_camsetting_range_start;c<=precomp_camsetting_range_end;c++)0==UIPreCompCamObjectTable[c][UICamObjectId.poe_cablelength].prop("disabled")&&
(d="precomp_poe_"+("00"+String(c)).slice(-3)+"_cablelength",d=document.getElementById(d),$(d).val(a));else alert(s_msgwarn_allfill_outofrange);UIPreCompCamObjectTable[Number(b)][UICamObjectId.poe_cablelength].val("")}DoCalculatePoePreComp()}});$('[id^="reccond_poe_"][id$="_modelpower2"]').blur(function(a){a=ConverZenNum2HanNum($(this)[0].value);var b=$($(this)[0]).attr("id").split("_");b=Number(b[b.length-2]);if(isNumberString(a)){if(a=parseInt(a,10),0==poe_cablelen_unit_m?Number(a)>maxval_feet?(a=
String(maxval_feet),array_poe_cablelen_ft[b]=maxval_feet,array_poe_cablelen_m[b]=maxval_meter):Number(a)<minval_feet&&(a=String(minval_feet),array_poe_cablelen_ft[b]=minval_feet,array_poe_cablelen_m[b]=minval_meter):Number(a)>maxval_meter?(a=String(maxval_meter),array_poe_cablelen_ft[b]=maxval_feet,array_poe_cablelen_m[b]=maxval_meter):Number(a)<minval_meter&&(a=String(minval_meter),array_poe_cablelen_ft[b]=minval_feet,array_poe_cablelen_m[b]=minval_meter),$("#"+$($(this)[0]).attr("id")).val(a),0==
b){for(b=1;b<=CamSettingMaxNum;b++)objCableLength=UICamObjectTable[b][UICamObjectId.poe_cablelength],0==UICamObjectTable[b][UICamObjectId.poe_cablelength].prop("disabled")&&(objCableLength.val(a),array_poe_cablelen_ft[b]=array_poe_cablelen_ft[0],array_poe_cablelen_m[b]=array_poe_cablelen_m[0]);$("#"+$($(this)[0]).attr("id")).val("")}}else $("#"+$($(this)[0]).attr("id")).val("0.0W");a=SaveSwitchCameraSetting();DoCalculatePoe(a)});$('[id$="_numberofunits"]').blur(function(a){DbgLog("num blur");a=$($(this)[0]).attr("id").split("_");
0==Number(a[a.length-2])&&$(this).val("")});$('[id$="_numberofunits"]').keyup(function(a){DbgLog("num keyup");ImeFlag||(CheckInputNumberOnly(a.keyCode),CheckNumOfUnits(this),DoCalculatePoePreComp())});$('[id$="_numberofunits"]').on("paste",function(){DbgLog("num paste");return!1});$('[id$="_numberofunits"]').keydown(function(a){DbgLog("num keydown");ImeFlag=a.isComposing||"Process"===a.key||229===a.keyCode?!0:!1;return CheckInputNumberOnly(a.keyCode)});$('[id$="_numberofunits"]').on("compositionend",
function(a){DbgLog("compositionend");37!=a.keyCode&&39!=a.keyCode&&(CheckInputNumberOnly(a.keyCode),CheckNumOfUnits(this),DoCalculatePoePreComp())});$('[id$="_cablelength"]').keyup(function(a){DbgLog("keyup");ImeFlag||(CheckInputNumberOnly(a.keyCode),CheckCableLength(this),this.id.startsWith("precomp_poe_")?DoCalculatePoePreComp():(a=SaveSwitchCameraSetting(),DoCalculatePoe(a)))});$('[id$="_cablelength"]').on("paste",function(){DbgLog("paste");return!1});$('[id$="_cablelength"]').keydown(function(a){DbgLog("keydown");
ImeFlag=a.isComposing||"Process"===a.key||229===a.keyCode?!0:!1;return CheckInputNumberOnly(a.keyCode)});$('[id$="_cablelength"]').on("compositionend",function(a){DbgLog("compositionend");if(37!=a.keyCode&&39!=a.keyCode){for(a=1;a<=CamSettingMaxNum;a++){var b=UICamObjectTable[a][UICamObjectId.detail_num],c=UICamObjectTable[a][UICamObjectId.detail_model],d=ConverZenNum2HanNum(b[0].value),e=d.match(/[0-9]+/);null!=e&&e[0].length==d.length?$("#"+$(b[0]).attr("id")).val(d):0<Number($(c[0]).val())?$("#"+
$(b[0]).attr("id")).val("1"):$("#"+$(b[0]).attr("id")).val("");InputCamNum(b[0]);ChangeAllSettingRecGroup()}SaveSwitchCameraSetting();CheckCableLength(this);this.id.startsWith("precomp_poe_")?DoCalculatePoePreComp():(a=SaveSwitchCameraSetting(),DoCalculatePoe(a))}});$('[id$="_cablelength"]').keyup(function(a){DbgLog("keyup2");if(37!=a.keyCode&&39!=a.keyCode&&!ImeFlag){a=$($(this)[0]).attr("id").split("_");var b=Number(a[a.length-2]);$(this).val(CheckString($(this).val()));a=$(this)[0].value;a=a.match(/[0-9]+/)?
isNumberString(a)?parseInt(a,10):0<a.length?parseInt(a,10):"":isNaN(parseInt(a,10))?"":parseInt(a,10);$("#"+$($(this)[0]).attr("id")).val(a);0==poe_cablelen_unit_m?(array_poe_cablelen_ft[b]=Number($(this)[0].value),array_poe_cablelen_m[b]=Math.ceil($(this)[0].value*meter_per_feet)):(array_poe_cablelen_m[b]=Number($(this)[0].value),array_poe_cablelen_ft[b]=Math.floor($(this)[0].value*feet_per_meter));if(0!=b){if(0==b)for(b=1;b<=CamSettingMaxNum;b++)objCableLength=UICamObjectTable[b][UICamObjectId.poe_cablelength],
0==UICamObjectTable[b][UICamObjectId.poe_cablelength].prop("disabled")&&(objCableLength.val(a),array_poe_cablelen_ft[b]=array_poe_cablelen_ft[0],array_poe_cablelen_m[b]=array_poe_cablelen_m[0]);SaveSwitchCameraSetting();CheckCableLength(this);this.id.startsWith("precomp_poe_")?DoCalculatePoePreComp():(a=SaveSwitchCameraSetting(),DoCalculatePoe(a))}}})}function CheckString(a){var b="";for(i=0;i<a.length;i++)0<="0123456789.\b\r\t".indexOf(a[i],0)&&(b+=a[i]);return b};var CalcPauseFlag=!1,CalcLaptimeLimite=1E4;NwdrUnitSpecType=function(a,b,c,d,e,f){this.id=a;this.mainunit_hdd_maxnum=b;this.mainunit_hdd_num=c;this.mainunit_hdd_capa=d;this.extunit_maxnum=e;this.extunit_hdd_maxnum=f};
var NwdrModelId={nx400_01:0,nx200_01:1,nx200_02:2,nx200_03:3,nx200_04:4,nx200_05:5,nx200_06:6,nx200_07:7,nx200_08:8,nx200_09:9,nx200_10:10,nx300_01:11,nx300_02:12,nx300_03:13,nx300_04:14,nx300_05:15,nx300_06:16,nx300_07:17,nx300_08:18,nx100_01:19,nx100_02:20,nx100_03:21,nx100_04:22,nx100_05:23,nx100_06:24,nx100_07:25,eu100_01:26,eu100_02:27,eu100_03:28,nu301_01:29,nu301_02:30,nu301_03:31,nu301_04:32,nu300_01:33,nu300_02:34,nu300_03:35,nu201_01:36,nu201_02:37,nu201_03:38,nu101_01:39,nu101_02:40},NwdrUnitSpecInfo=
[new NwdrUnitSpecType(NwdrModelId.nx400_01,9,0,0,5,9),new NwdrUnitSpecType(NwdrModelId.nx200_01,0,1,500,0,0),new NwdrUnitSpecType(NwdrModelId.nx200_02,0,2,2E3,0,0),new NwdrUnitSpecType(NwdrModelId.nx200_03,0,2,4E3,0,0),new NwdrUnitSpecType(NwdrModelId.nx200_04,0,2,6E3,0,0),new NwdrUnitSpecType(NwdrModelId.nx200_05,0,1,1E3,0,0),new NwdrUnitSpecType(NwdrModelId.nx200_06,0,1,2E3,0,0),new NwdrUnitSpecType(NwdrModelId.nx200_07,0,0,0,0,0),new NwdrUnitSpecType(NwdrModelId.nx200_08,0,1,2E3,0,0),new NwdrUnitSpecType(NwdrModelId.nx200_09,
0,2,4E3,0,0),new NwdrUnitSpecType(NwdrModelId.nx200_10,0,2,6E3,0,0),new NwdrUnitSpecType(NwdrModelId.nx300_01,0,4,1E3,2,9),new NwdrUnitSpecType(NwdrModelId.nx300_02,0,4,2E3,2,9),new NwdrUnitSpecType(NwdrModelId.nx300_03,0,4,3E3,2,9),new NwdrUnitSpecType(NwdrModelId.nx300_04,0,4,4E3,2,9),new NwdrUnitSpecType(NwdrModelId.nx300_05,0,4,1E3,2,9),new NwdrUnitSpecType(NwdrModelId.nx300_06,0,4,2E3,2,9),new NwdrUnitSpecType(NwdrModelId.nx300_07,0,4,3E3,2,9),new NwdrUnitSpecType(NwdrModelId.nx300_08,0,4,4E3,
2,9),new NwdrUnitSpecType(NwdrModelId.nx100_01,0,1,500,0,0),new NwdrUnitSpecType(NwdrModelId.nx100_02,0,1,1E3,0,0),new NwdrUnitSpecType(NwdrModelId.nx100_03,0,2,2E3,0,0),new NwdrUnitSpecType(NwdrModelId.nx100_04,0,1,2E3,0,0),new NwdrUnitSpecType(NwdrModelId.nx100_05,0,2,4E3,0,0),new NwdrUnitSpecType(NwdrModelId.nx100_06,0,1,1E3,0,0),new NwdrUnitSpecType(NwdrModelId.nx100_07,0,2,2E3,0,0),new NwdrUnitSpecType(NwdrModelId.eu100_01,0,1,1E3,0,0),new NwdrUnitSpecType(NwdrModelId.eu100_02,0,1,2E3,0,0),new NwdrUnitSpecType(NwdrModelId.eu100_03,
0,2,4E3,0,0),new NwdrUnitSpecType(NwdrModelId.nu301_01,0,2,2E3,0,0),new NwdrUnitSpecType(NwdrModelId.nu301_02,0,2,4E3,0,0),new NwdrUnitSpecType(NwdrModelId.nu301_03,0,2,8E3,0,0),new NwdrUnitSpecType(NwdrModelId.nu301_04,0,2,12E3,0,0),new NwdrUnitSpecType(NwdrModelId.nu300_01,0,1,2E3,0,0),new NwdrUnitSpecType(NwdrModelId.nu300_02,0,1,4E3,0,0),new NwdrUnitSpecType(NwdrModelId.nu300_03,0,1,8E3,0,0),new NwdrUnitSpecType(NwdrModelId.nu201_01,0,1,1E3,0,0),new NwdrUnitSpecType(NwdrModelId.nu201_02,0,1,2E3,
0,0),new NwdrUnitSpecType(NwdrModelId.nu201_03,0,1,4E3,0,0),new NwdrUnitSpecType(NwdrModelId.nu101_01,0,1,1E3,0,0),new NwdrUnitSpecType(NwdrModelId.nu101_02,0,1,2E3,0,0)];
s_app_dst_ja!=s_app_dst&&s_app_dst_ipro_ja!=s_app_dst&&s_app_dst_ipro_eu_ja!=s_app_dst&&(NwdrUnitSpecInfo[NwdrModelId.nx200_01]=new NwdrUnitSpecType(NwdrModelId.nx200_01,0,1,2E3,0,0),NwdrUnitSpecInfo[NwdrModelId.nx200_02]=new NwdrUnitSpecType(NwdrModelId.nx200_02,0,1,3E3,0,0),NwdrUnitSpecInfo[NwdrModelId.nx200_03]=new NwdrUnitSpecType(NwdrModelId.nx200_03,0,2,4E3,0,0),NwdrUnitSpecInfo[NwdrModelId.nx200_04]=new NwdrUnitSpecType(NwdrModelId.nx200_04,0,2,6E3,0,0),NwdrUnitSpecInfo[NwdrModelId.nx200_05]=
new NwdrUnitSpecType(NwdrModelId.nx200_05,0,2,8E3,0,0),NwdrUnitSpecInfo[NwdrModelId.nx200_06]=new NwdrUnitSpecType(NwdrModelId.nx200_06,0,2,12E3,0,0),NwdrUnitSpecInfo[NwdrModelId.nx200_07]=new NwdrUnitSpecType(NwdrModelId.nx200_07,0,2,16E3,0,0),NwdrUnitSpecInfo[NwdrModelId.nx300_01]=new NwdrUnitSpecType(NwdrModelId.nx300_01,4,0,0,2,9));
var Nwdr_HddMng_Percentage=.94,Nwdr_HddMng_Statistics=192E6,Nwdr_Bitrate_Substream=768,Nwdr_Bitrate_Substream_H265=512,Nwdr_Bitrate_FaceMatch=4096,Nwdr_Bitrate_FaceMatch_H264=3072,Nwdr_Bitrate_FaceMatch_H265=2048,Nwdr_AudioBoundary=16,Nwdr_AudioEncryption_AacLc=35.69,CalcResultNwdrMaxNum=999,CalcResultNwdrPlusMaxNum=3,CalcResultMaxDays=99999;UnitIndexInfoType=function(a,b,c){this.unitNo=a;this.hddNo=b;this.hddNum=c};
UnitInfoType=function(a,b,c,d){this.reccapa=a;this.stacapa=b;this.value=c;this.recgroupNo=d};var NwdrUnitInfoTable=Array(NwdrUnitSpecInfo.length);CalcParameterCamInfoType=function(a,b,c,d,e,f,g,h,k,m,l,n,p){this.no=a;this.num=b;this.scheduleId=c;this.recsize=d;this.bitrate_rec=e;this.bitrate_net=f;this.modelId=g;this.audioId=h;this.secure=k;this.substream=m;this.face=l;this.recgroupId=n;this.aiprivacy=p};
CalcParameterConfigInfoType=function(a,b,c,d,e,f,g,h,k,m,l){this.lang=a;this.hddmodeId=b;this.hddcapaId=c;this.hdmiId=d;this.substreamId=e;this.recnumId=f;this.recgroupId1=g;this.recdays1=h;this.recgroupId2=k;this.recdays2=m;this.systemconfig=l};
var CalcResultCode={ok:0,invalidrectime:1E3,norectime:1001,nwdrnumover:2E3,camrecsizeover:2001,camnumover:3001,bitratenetover:3002,chnumover:3003,totalrecsizeover:3004,facenumover:3005,hddcapaover:3006,notsupportmodel:4001,notsupportfacematch:4002,notsupporthdmi:4003,notsupporthddcapa:4004,notsupporthddmode:4005,notsupporthddmoderaid1:4006,notsupportmultirec:4007,notsupportext:4008,notsupporthighresomode:4009,notsupportrecgroup02_nx400:4010,notsupportrecgroup02_nx300:4011,notsupportsmr10:4012,notsupportmirroring:4013,
notsupportrecgroup:4014,notsupportg726:4015,nomodel:5001,ng:-1};function DoCalculate(){if(s_app_dst!=s_app_dst_ja){var a=HddCapaList[Number(UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu301].val())].capa;NwdrUnitSpecInfo[NwdrModelId.nu301_01]=new NwdrUnitSpecType(NwdrModelId.nu301_01,0,1,a,0,0);NwdrUnitSpecInfo[NwdrModelId.nu301_02]=new NwdrUnitSpecType(NwdrModelId.nu301_02,0,2,2*a,0,0);a=HddCapaList[Number(UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu300].val())].capa;NwdrUnitSpecInfo[NwdrModelId.nu300_01]=new NwdrUnitSpecType(NwdrModelId.nu300_01,
0,1,a,0,0);a=HddCapaList[Number(UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa_nu201].val())].capa;NwdrUnitSpecInfo[NwdrModelId.nu201_01]=new NwdrUnitSpecType(NwdrModelId.nu201_01,0,1,a,0,0);a=HddCapaList[Number(UIOtherObjectTable_NX100[UIOtherObjectId.hddcapa].val())].capa;NwdrUnitSpecInfo[NwdrModelId.nu101_01]=new NwdrUnitSpecType(NwdrModelId.nu101_01,0,1,a,0,0)}s_app_dst_ipro_ja!=s_app_dst?SetResultCommon(CalcResultCode.ok,0,0,0):SetResultCommon(0,0,0,new CalcResultMaxRecDaysTypeNx200(0,0,0,
0));if(s_model_name==s_recresult_model_nx400)SetResultNx400(!1,0),SetResultDetailNx400(!1),CalcResultNx400=new CalcResultTypeNx400(CalcResultCode.ok,new CalcResultMaxRecDaysTypeNx400(0,0,0,0),new CalcResultOneTypeNx400(new CalcResultUnitConfigTypeNx400(0,0,0,0,0,0),new CalcResultLicenseCameraTypeNx400(0,0,0),new CalcResultLicenseSecureTypeNx400(0,0,0,0,0),0,0,0,0,0,0,0,0,0,[],new CalcResultMaxRecDaysTypeNx400(0,0,0,0)),[]);else if(s_model_name==s_recresult_model_nx100)for(SetResultNx100(!1),CalcResultNx100=
new CalcResultTypeNx100(CalcResultCode.ok,new CalcResultLicenseCameraTypeNx100(0,0,0),new CalcResultLicenseSecureTypeNx100(0,0,0),new CalcResultLicenseFaceTypeNx100(0,0),0,0,0,0,0,0,[]),a=NwdrModelId.nx100_01;a<=NwdrModelId.nu101_02;a++)CalcResultNx100.detail.push(new CalcResultOneTypeNx100(0,0));else if(s_model_name==s_recresult_model_nu301||s_model_name==s_recresult_model_nu300||s_model_name==s_recresult_model_nu201||s_model_name==s_recresult_model_nu101)for(SetResultNx100(!1),CalcResultNx100=new CalcResultTypeNx100(CalcResultCode.ok,
new CalcResultLicenseCameraTypeNx100(0,0,0),new CalcResultLicenseSecureTypeNx100(0,0,0),new CalcResultLicenseFaceTypeNx100(0,0),0,0,0,0,0,0,[]),a=NwdrModelId.nx100_01;a<=NwdrModelId.nu101_02;a++)CalcResultNx100.detail.push(new CalcResultOneTypeNx100(0,0));else if(s_model_name==s_recresult_model_nx200)for(SetResultNx200(!1,0),CalcResultNx200=new CalcResultTypeNx200(CalcResultCode.ok,new CalcResultLicenseCameraTypeNx200(0,0,0),new CalcResultLicenseSecureTypeNx200(0,0,0,0,0),new CalcResultLicenseFaceTypeNx200(0,
0),0,0,0,0,0,0,0,0,[]),a=NwdrModelId.nx200_01;a<=NwdrModelId.nx200_10;a++)CalcResultNx200.detail.push(new CalcResultOneTypeNx200(0,0,0));else if(s_model_name==s_recresult_model_nx300)for(SetResultNx300(!1,0),CalcResultNx300=new CalcResultTypeNx300(CalcResultCode.ok,new CalcResultLicenseCameraTypeNx300(0,0,0),new CalcResultLicenseSecureTypeNx300(0,0,0,0,0),new CalcResultLicenseFaceTypeNx300(0,0),0,0,0,0,0,0,0,[]),a=NwdrModelId.nx300_01;a<=NwdrModelId.nx300_08;a++)CalcResultNx300.detail.push(new CalcResultOneTypeNx300(new CalcResultUnitConfigTypeNx300(0,
0,0,0,0,0),new CalcResultLicenseRaidTypeNx300(0),0,0,new CalcResultMaxRecDaysTypeNx300(0,0,0)));else s_model_name==s_recresult_model_vms&&(SetResultVms(!1),CalcResultVms=new CalcResultTypeVms(CalcResultCode.ok,0,0));if(1!=CalcPauseFlag)if(a=CheckCameraParam(),a=CheckCameraParam(a),0==a.length)s_app_dst_ipro_ja!=s_app_dst?SetResultCommon(CalcResultCode.nomodel,0,0,new CalcResultMaxRecDaysTypeNx400(0,0,0,0)):SetResultCommon(CalcResultCode.nomodel,0,0,new CalcResultMaxRecDaysTypeNx200(0,0,0,0)),s_model_name==
s_recresult_model_nx400?SetResultNx400(!1,0):s_model_name==s_recresult_model_nx100?SetResultNx100(!1):s_model_name==s_recresult_model_nu301||s_model_name==s_recresult_model_nu300||s_model_name==s_recresult_model_nu201||s_model_name==s_recresult_model_nu101?SetResultNx100(!1):s_model_name==s_recresult_model_nx200?SetResultNx200(!1,0):s_model_name==s_recresult_model_nx300&&SetResultNx300(!1,0);else{for(var b=Array.apply(null,Array(RecGroupMaxNum)).map(Boolean.prototype.valueOf,!1),c=0;c<a.length;c++)b[a[c].recgroupId]=
!0;if(s_model_name==s_recresult_model_nx400)var d=Number(UIOtherObjectTable_NX400[UIOtherObjectId.recdays1].val()),e=Number(UIOtherObjectTable_NX400[UIOtherObjectId.recdays2].val());else s_model_name==s_recresult_model_nx300?(d=Number(UIOtherObjectTable_NX300[UIOtherObjectId.recdays1].val()),e=Number(UIOtherObjectTable_NX300[UIOtherObjectId.recdays2].val())):s_model_name==s_recresult_model_vms&&(d=Number(UIOtherObjectTable_VMS[UIOtherObjectId.recdays1].val()));0==d&&0==e||0==d&&1==b[0]&&0==b[1]||
0==b[0]&&0==e&&0==b[1]||(b=CheckScheduleParam(a),CalcResultCode.ok!=b?(SetResultCommon(b,0,0,new CalcResultMaxRecDaysTypeNx400(0,0,0,0)),s_model_name==s_recresult_model_nx400?SetResultNx400(!1,0):s_model_name==s_recresult_model_nx100?SetResultNx100(!1):s_model_name==s_recresult_model_nu301||s_model_name==s_recresult_model_nu300||s_model_name==s_recresult_model_nu201||s_model_name==s_recresult_model_nu101?SetResultNx100(!1):s_model_name==s_recresult_model_nx200?SetResultNx200(!1,0):s_model_name==s_recresult_model_nx300&&
SetResultNx300(!1,0)):(d=s_model_name==s_recresult_model_nx400?new CalcParameterConfigInfoType(s_app_dst,Number(UIRecObjectTable[UIRecObjectId.hddmode].val()),Number(UIOtherObjectTable_NX400[UIOtherObjectId.hddcapa].val()),Number(UIOtherObjectTable_NX400[UIOtherObjectId.hdmi].val()),Number(UIRecObjectTable[UIRecObjectId.substream].val()),Number(UIOtherObjectTable_NX400[UIOtherObjectId.recnum].val()),Number(UIOtherObjectTable_NX400[UIOtherObjectId.recgroup1].val()),d,Number(UIOtherObjectTable_NX400[UIOtherObjectId.recgroup2].val()),
e,0,0):s_model_name==s_recresult_model_nx300?new CalcParameterConfigInfoType(s_app_dst,Number(UIRecObjectTable[UIRecObjectId.hddmode].val()),Number(UIOtherObjectTable_NX300[UIOtherObjectId.hddcapa].val()),0,Number(UIRecObjectTable[UIRecObjectId.substream].val()),0,Number(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup1].val()),d,Number(UIOtherObjectTable_NX300[UIOtherObjectId.recgroup2].val()),e,Number(UIOtherObjectTable_NX300[UIOtherObjectId.systemconfig].val()),Number(UIRecObjectTable[UIRecObjectId.highresomode].val())):
s_model_name==s_recresult_model_nx200?new CalcParameterConfigInfoType(s_app_dst,Number(UIRecObjectTable[UIRecObjectId.hddmode].val()),0,0,Number(UIRecObjectTable[UIRecObjectId.substream].val()),0,0,0,0,0,0,Number(UIRecObjectTable[UIRecObjectId.highresomode].val())):s_model_name==s_recresult_model_vms?new CalcParameterConfigInfoType(s_app_dst,0,0,0,0,0,0,d,0,0,0,0):new CalcParameterConfigInfoType(s_app_dst,Number(UIRecObjectTable[UIRecObjectId.hddmode].val()),0,0,Number(UIRecObjectTable[UIRecObjectId.substream].val()),
0,0,0,0,0,0,0),s_model_name==s_recresult_model_nx400?(CalculateNx400(SelectScheduleWeekInfo,SelectScheduleTimeTableInfo,d,a),SetResultCommon(CalcResultNx400.code,CalcResultNx400.total.bitrate_net,CalcResultNx400.total.recsize,CalcResultNx400.maxrecdays),SetResultNx400(!0,d),d=!1,1<CalcResultNx400.total.unitconfig.main_unit&&(d=!0),SetResultDetailNx400(d)):s_model_name==s_recresult_model_nx100?(CalculateNx100(SelectScheduleWeekInfo,SelectScheduleTimeTableInfo,d,a),SetResultCommon(CalcResultNx100.code,
0,0,0),SetResultNx100(!0)):s_model_name==s_recresult_model_nu301||s_model_name==s_recresult_model_nu300||s_model_name==s_recresult_model_nu201||s_model_name==s_recresult_model_nu101?(CalculateNx100(SelectScheduleWeekInfo,SelectScheduleTimeTableInfo,d,a),SetResultCommon(CalcResultNx100.code,0,0,0),SetResultNx100(!0)):s_model_name==s_recresult_model_nx200?(CalculateNx200(SelectScheduleWeekInfo,SelectScheduleTimeTableInfo,d,a),SetResultCommon(CalcResultNx200.code,CalcResultNx200.bitrate_net,CalcResultNx200.recsize,
0),SetResultNx200(!0,d)):s_model_name==s_recresult_model_nx300?(isNaN(d.recdays1)&&(d.recdays1=1),CalculateNx300(SelectScheduleWeekInfo,SelectScheduleTimeTableInfo,d,a),SetResultCommon(CalcResultNx300.code,CalcResultNx300.bitrate_net,CalcResultNx300.recsize,0),SetResultNx300(!0,d)):s_model_name==s_recresult_model_vms&&(CalculateVms(SelectScheduleWeekInfo,d,a),SetResultCommon(CalcResultVms.code,CalcResultVms.total_bitrate_net,CalcResultVms.total_recsize,0))))}}
function CheckCameraParam(a){var b=[],c=0;a&&(b=a,c=1);for(a=0;a<CamSettingMaxNum;a++){var d=("00"+(a+1)).slice(-3);if(c){var e=SelectCameraInfoAIPrivacy[a];e.copyForAIPrivacy(SelectCameraInfo[a])}else e=SelectCameraInfo[a];var f=CamTypeRateTblList[e.typeId];if(CamBitTblId.b00==f)UICamObjectTable[Number(d)][UICamObjectId.advance_bitrate].val(""),"undefined"!==typeof DspDevelopmentInfo&&($("#reccond_advance_"+d+"_develop_bitrate_rec_video").val(""),$("#reccond_advance_"+d+"_develop_bitrate_rec_audio").val(""),
$("#reccond_advance_"+d+"_develop_bitrate_rec_vmdinfo").val(""),$("#reccond_advance_"+d+"_develop_bitrate_rec_total").val(""),$("#reccond_advance_"+d+"_develop_bitrate_net_video").val(""),$("#reccond_advance_"+d+"_develop_bitrate_net_audio").val(""),$("#reccond_advance_"+d+"_develop_bitrate_net_vmdinfo").val(""),$("#reccond_advance_"+d+"_develop_bitrate_net_total").val(""));else{CamSmartCodingId.On==e.smartcodingId&&f++;var g=CamBitrateList[f][e.compTblId][e.resoId][e.qualId][e.fpsId],h=e.fpsId;CamBitTblId.b07!=
f&&CamBitTblId.b08!=f&&CamBitTblId.b09!=f&&CamBitTblId.b10!=f&&CamBitTblId.b11!=f&&CamBitTblId.b12!=f&&CamBitTblId.b13!=f||CamCompBitTblId.H265!=e.compTblId&&CamCompBitTblId.H264!=e.compTblId||CamFpsId.f01!=e.fpsId||(h=CamFpsId.f03);h=CamBitrateList[f][e.compTblId][e.resoId][e.qualId][h];var k=!1;CamFaceMatchId.On==e.facematchId&&(g=HighResoModeId.On==Number(UIRecObjectTable[UIRecObjectId.highresomode].val())?h=bitrate_rec_video_4M:h=GetFaceMatchBitrate(e.compTblId,f),k=!0);1==UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked&&
1==UICamObjectTable[Number(a+1)][UICamObjectId.advance_smartcoding][0].disabled&&(0<UICamObjectTable[Number(d)][UICamObjectId.advance_bitrate].val()&&0!=e.bitrate||0==UICamObjectTable[Number(d)][UICamObjectId.advance_bitrate].val()||""==UICamObjectTable[Number(d)][UICamObjectId.advance_bitrate].val())&&(g=h=e.bitrate);var m=!1;if(CamEncryptId.On==e.encryptId||CamConnectId.HTTPS==e.connectId)m=!0;var l=CamAudioList[e.audioId].bitrate;if(CamEncryptId.On==e.encryptId){var n=h/8*1E3,p=Math.floor(n/10240);
h*=1+(CamCompBitTblId.H265==e.compTblId?(181*CamFpsList[e.fpsId].fps+72*p+(8*p+15))/n:(173*CamFpsList[e.fpsId].fps+72*p+(8*p+15))/n);CamBitTblId.b07!=f&&CamBitTblId.b08!=f&&CamBitTblId.b12!=f&&CamBitTblId.b13!=f||CamAudioId.AAC!=e.audioId||(l+=Nwdr_AudioEncryption_AacLc)}1!=UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked||""!=UICamObjectTable[Number(d)][UICamObjectId.advance_bitrate][0].value&&0!=UICamObjectTable[Number(d)][UICamObjectId.advance_bitrate][0].value||0!=h||(l=0);f=CamVmdInfoList[e.vmdinfoId].bitrate;
n=h+l+f;1!=UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked||""!=UICamObjectTable[Number(d)][UICamObjectId.advance_bitrate][0].value&&0!=UICamObjectTable[Number(d)][UICamObjectId.advance_bitrate][0].value||0!=h||(n=f=0);p=h*CamConnectList[e.connectId].coefficient;var u=0;u=CamAudioId.SMR10==e.audioId?u+l:u+(l-(0<l?Nwdr_AudioBoundary:0))*CamConnectList[e.connectId].coefficient;1!=UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked||""!=UICamObjectTable[Number(d)][UICamObjectId.advance_bitrate][0].value&&
0!=UICamObjectTable[Number(d)][UICamObjectId.advance_bitrate][0].value||0!=h||(u=0);var r=p+u+0;1==UICamObjectTable[0][UICamObjectId.advance_chgbitrate][0].checked&&""==UICamObjectTable[Number(d)][UICamObjectId.advance_bitrate][0].value&&0==h||UICamObjectTable[Number(d)][UICamObjectId.advance_bitrate].val(g);"undefined"!==typeof DspDevelopmentInfo&&($("#reccond_advance_"+d+"_develop_bitrate_rec_video").val(h),$("#reccond_advance_"+d+"_develop_bitrate_rec_audio").val(l),$("#reccond_advance_"+d+"_develop_bitrate_rec_vmdinfo").val(f),
$("#reccond_advance_"+d+"_develop_bitrate_rec_total").val(n),$("#reccond_advance_"+d+"_develop_bitrate_net_video").val(p),$("#reccond_advance_"+d+"_develop_bitrate_net_audio").val(u),$("#reccond_advance_"+d+"_develop_bitrate_net_vmdinfo").val(0),$("#reccond_advance_"+d+"_develop_bitrate_net_total").val(r));0!=e.num&&(e=new CalcParameterCamInfoType(a,e.num,e.scheduleId,0,n,r,e.modelId,e.audioId,m,!1,k,e.recgroupId,c),b.push(e))}}return b}
function CheckScheduleParam(a){for(var b=CalcResultCode.ok,c=0,d=a.length,e=0;e<d;e++){for(var f=ScheduleRecWeekId.mon;f<=ScheduleRecWeekId.sun;f++){var g=SelectScheduleWeekInfo[a[e].scheduleId][f]-1;if(!(0>g)){if(-1==SelectScheduleTimeTableInfo[a[e].scheduleId][g]){b=CalcResultCode.invalidrectime;break}c+=SelectScheduleTimeTableInfo[a[e].scheduleId][g]}}if(CalcResultCode.ok!=b)break}CalcResultCode.ok==b&&0==c&&(b=CalcResultCode.norectime,SetModelError(b));return b}
function GetFaceMatchBitrate(a,b){return CamCompBitTblId.H264!=a||CamBitTblId.b05!=b&&CamBitTblId.b07!=b?CamCompBitTblId.H265==a?Nwdr_Bitrate_FaceMatch_H265:Nwdr_Bitrate_FaceMatch:Nwdr_Bitrate_FaceMatch_H264};CamPoeType=function(a,b,c,d,e,f,g){this.id=a;this.model=b;this.modeltype=c;this.powertype=d;this.powerclass=e;this.modelpower=f;this.pw510=g};
CamPoeList=[new CamPoeType(0,"--","","","",-1,-1),new CamPoeType(1,"--","","","",-1,-1),new CamPoeType(2,"--","","","",-1,-1),new CamPoeType(3,"--","","","",-1,-1),new CamPoeType(4,"--","","","",-1,-1),new CamPoeType(5,"--","","","",-1,-1),new CamPoeType(6,"--","","","",-1,-1),new CamPoeType(7,"--","","","",-1,-1),new CamPoeType(8,"--","","","",-1,-1),new CamPoeType(9,"--","","","",-1,-1),new CamPoeType(10,"--","","","",-1,-1),new CamPoeType(11,"--","","","",-1,-1),new CamPoeType(12,"--","","","",
-1,-1),new CamPoeType(13,"--","","","",-1,-1),new CamPoeType(14,"--","","","",-1,-1),new CamPoeType(15,"--","","","",-1,-1),new CamPoeType(16,"--","","","",-1,-1),new CamPoeType(17,"--","","","",-1,-1),new CamPoeType(18,"--","","","",-1,-1),new CamPoeType(19,"--","","","",-1,-1),new CamPoeType(20,"--","","","",-1,-1),new CamPoeType(21,"--","","","",-1,-1),new CamPoeType(22,"--","","","",-1,-1),new CamPoeType(23,"--","","","",-1,-1),new CamPoeType(24,"--","","","",-1,-1),new CamPoeType(25,"--","",
"","",-1,-1),new CamPoeType(26,"--","","","",-1,-1),new CamPoeType(27,"--","","","",-1,-1),new CamPoeType(28,"--","","","",-1,-1),new CamPoeType(29,"--","","","",-1,-1),new CamPoeType(30,"--","","","",-1,-1),new CamPoeType(31,"--","","","",-1,-1),new CamPoeType(32,"--","","","",-1,-1),new CamPoeType(33,"--","","","",-1,-1),new CamPoeType(34,"--","","","",-1,-1),new CamPoeType(35,"--","","","",-1,-1),new CamPoeType(36,"--","","","",-1,-1),new CamPoeType(37,"--","","","",-1,-1),new CamPoeType(38,"--",
"","","",-1,-1),new CamPoeType(39,"--","","","",-1,-1),new CamPoeType(40,"--","","","",-1,-1),new CamPoeType(41,"--","","","",-1,-1),new CamPoeType(42,"--","","","",-1,-1),new CamPoeType(43,"--","","","",-1,-1),new CamPoeType(44,"--","","","",-1,-1),new CamPoeType(45,"--","","","",-1,-1),new CamPoeType(46,"--","","","",-1,-1),new CamPoeType(47,"--","","","",-1,-1),new CamPoeType(48,"--","","","",-1,-1),new CamPoeType(49,"--","","","",-1,-1),new CamPoeType(50,"--","","","",-1,-1),new CamPoeType(51,
"advidia M-200-P","PTZ camera","PoE++","Class6",48,0),new CamPoeType(52,"advidia M-44-V-T","Eyeball camera","PoE","Class0",8.16,0),new CamPoeType(53,"advidia M-45-FW","Fixed Dome camera","PoE","Class0",5.5,0),new CamPoeType(54,"advidia M-46-FW","Fixed Dome camera","PoE","Class0",5.5,0),new CamPoeType(55,"advidia M-46-FW-V2","Fixed Dome camera","PoE","Class0",4.5,0),new CamPoeType(56,"advidia M-46-V","Fixed Dome camera","PoE","Class0",7.5,0),new CamPoeType(57,"advidia M-5360","360-degree fisheye camera",
"PoE","Class0",8.5,0),new CamPoeType(58,"advidia M-87-V","Fixed Dome camera","PoE","Class0",9,0),new CamPoeType(59,"advidia M-89-F-L","Bullet type camera","PoE","Class0",10.5,0),new CamPoeType(60,"WJ-GXE100","Fixed Box camera","PoE","Class0",4.8,0),new CamPoeType(61,"WJ-GXE500","Fixed Box camera","PoE","Class0",4.8,0),new CamPoeType(62,"WV-S1111","Fixed Box camera","PoE","Class2",5.8,0),new CamPoeType(63,"WV-S1112","Fixed Box camera","PoE","Class2",5.8,0),new CamPoeType(64,"WV-S1131","Fixed Box camera",
"PoE","Class2",5.8,0),new CamPoeType(65,"WV-S1132","Fixed Box camera","PoE","Class2",5.8,0),new CamPoeType(66,"WV-S1136","Fixed Box camera","PoE","Class2",6.3,0),new CamPoeType(67,"WV-S1136A","Fixed Box camera","PoE","Class2",6.3,0),new CamPoeType(68,"WV-S1511LDN","Bullet type camera","PoE","Class0",9.4,0),new CamPoeType(69,"WV-S1511LN","Bullet type camera","PoE","Class0",9.4,0),new CamPoeType(70,"WV-S15301-Z1L","Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(71,"WV-S15301-Z1LN","Bullet type camera",
"PoE++","Class5",32.4,0),new CamPoeType(72,"WV-S1531LN","Bullet type camera","PoE","Class0",9.4,0),new CamPoeType(73,"WV-S1531LNS","Bullet type camera","PoE","Class0",9.4,0),new CamPoeType(74,"WV-S1531LTN","Bullet type camera","PoE","Class0",9.4,0),new CamPoeType(75,"WV-S1536L","Bullet type camera","PoE","Class0",9.1,0),new CamPoeType(76,"WV-S1536LA","Bullet type camera","PoE","Class0",9.12,0),new CamPoeType(77,"WV-S1536LA-B","Bullet type camera","PoE","Class0",9.12,0),new CamPoeType(78,"WV-S1536L-B",
"Bullet type camera","PoE","Class0",9.1,0),new CamPoeType(79,"WV-S1536LN","Bullet type camera","PoE","Class0",9.1,0),new CamPoeType(80,"WV-S1536LNA","Bullet type camera","PoE","Class0",9.12,0),new CamPoeType(81,"WV-S1536LNA-B","Bullet type camera","PoE","Class0",9.12,0),new CamPoeType(82,"WV-S1536LN-B","Bullet type camera","PoE","Class0",9.1,0),new CamPoeType(83,"WV-S1536LNS","Bullet type camera","PoE","Class0",9.1,0),new CamPoeType(84,"WV-S1536LNSA","Bullet type camera","PoE","Class0",9.12,0),new CamPoeType(85,
"WV-S1536LT","Bullet type camera","PoE","Class0",10.6,0),new CamPoeType(86,"WV-S1536LTA","Bullet type camera","PoE","Class0",10.6,0),new CamPoeType(87,"WV-S1536LTN","Bullet type camera","PoE","Class0",10.6,0),new CamPoeType(88,"WV-S1536LTNA","Bullet type camera","PoE","Class0",10.6,0),new CamPoeType(89,"WV-S15500-F3L","Bullet type camera","PoE","Class0",10.6,0),new CamPoeType(90,"WV-S15500-F6L","Bullet type camera","PoE","Class0",10.6,0),new CamPoeType(91,"WV-S15500-V3L","Bullet type camera","PoE",
"Class0",11.5,0),new CamPoeType(92,"WV-S15500-V3LK","Bullet type camera","PoE","Class0",11.5,0),new CamPoeType(93,"WV-S15500-V3LN","Bullet type camera","PoE","Class0",11.5,0),new CamPoeType(94,"WV-S15500-V3LN1","Bullet type camera","PoE","Class0",11.5,0),new CamPoeType(95,"WV-S15501-Z1L","Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(96,"WV-S15501-Z1LN","Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(97,"WV-S15501-Z3L","Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(98,
"WV-S15501-Z3LN","Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(99,"WV-S1550L","Bullet type camera","PoE","Class0",10.1,0),new CamPoeType(100,"WV-S1552L","Bullet type camera","PoE","Class0",11.5,0),new CamPoeType(101,"WV-S15600-V2L","Bullet type camera","PoE","Class0",11.5,0),new CamPoeType(102,"WV-S15600-V2LN","Bullet type camera","PoE","Class0",11.5,0),new CamPoeType(103,"WV-S15700-V2L","Bullet type camera","PoE","Class0",11.5,0),new CamPoeType(104,"WV-S15700-V2LK","Bullet type camera",
"PoE","Class0",11.5,0),new CamPoeType(105,"WV-S15700-V2LN","Bullet type camera","PoE","Class0",11.5,0),new CamPoeType(106,"WV-S15701-Z3L","Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(107,"WV-S15701-Z3LN","Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(108,"WV-S1570L","Bullet type camera","PoE","Class0",10.6,0),new CamPoeType(109,"WV-S1572L","Bullet type camera","PoE","Class0",11.5,0),new CamPoeType(110,"WV-S2110","Fixed Dome camera","PoE","Class2",5.3,0),new CamPoeType(111,
"WV-S2111L","Fixed Dome camera","PoE","Class0",7.2,0),new CamPoeType(112,"WV-S2130","Fixed Dome camera","PoE","Class2",5.3,0),new CamPoeType(113,"WV-S2131","Fixed Dome camera","PoE","Class0",6,0),new CamPoeType(114,"WV-S2131L","Fixed Dome camera","PoE","Class0",7.2,0),new CamPoeType(115,"WV-S2135","Fixed Dome camera","PoE","Class2",4.8,0),new CamPoeType(116,"WV-S2135UX","Fixed Dome camera","PoE","Class2",4.8,0),new CamPoeType(117,"WV-S2136","Fixed Dome camera","PoE","Class2",5.3,0),new CamPoeType(118,
"WV-S2136A","Fixed Dome camera","PoE","Class0",5.3,0),new CamPoeType(119,"WV-S2136A-B","Fixed Dome camera","PoE","Class0",5.3,0),new CamPoeType(120,"WV-S2136-B","Fixed Dome camera","PoE","Class2",5.3,0),new CamPoeType(121,"WV-S2136G","Fixed Dome camera","PoE","Class2",5.3,0),new CamPoeType(122,"WV-S2136GA","Fixed Dome camera","PoE","Class2",5.3,0),new CamPoeType(123,"WV-S2136GA-B","Fixed Dome camera","PoE","Class2",5.3,0),new CamPoeType(124,"WV-S2136G-B","Fixed Dome camera","PoE","Class2",5.3,0),
new CamPoeType(125,"WV-S2136L","Fixed Dome camera","PoE","Class0",8.7,0),new CamPoeType(126,"WV-S2136LA","Fixed Dome camera","PoE","Class0",8.7,0),new CamPoeType(127,"WV-S2136LA-B","Fixed Dome camera","PoE","Class0",8.7,0),new CamPoeType(128,"WV-S2136L-B","Fixed Dome camera","PoE","Class0",8.7,0),new CamPoeType(129,"WV-S2136LG","Fixed Dome camera","PoE","Class0",8.6,0),new CamPoeType(130,"WV-S2136LGA","Fixed Dome camera","PoE","Class0",8.7,0),new CamPoeType(131,"WV-S2136LGA-B","Fixed Dome camera",
"PoE","Class0",8.7,0),new CamPoeType(132,"WV-S2136LG-B","Fixed Dome camera","PoE","Class0",8.7,0),new CamPoeType(133,"WV-S2211L","Fixed Dome camera","PoE","Class0",7.2,0),new CamPoeType(134,"WV-S2231L","Fixed Dome camera","PoE","Class0",7.2,0),new CamPoeType(135,"WV-S2236L","Fixed Dome camera","PoE","Class0",8.7,0),new CamPoeType(136,"WV-S2236LA","Fixed Dome camera","PoE","Class0",8.7,0),new CamPoeType(137,"WV-S2236LA-B","Fixed Dome camera","PoE","Class0",8.7,0),new CamPoeType(138,"WV-S2236L-B","Fixed Dome camera",
"PoE","Class0",8.7,0),new CamPoeType(139,"WV-S2236LG","Fixed Dome camera","PoE","Class0",8.6,0),new CamPoeType(140,"WV-S2236LGA","Fixed Dome camera","PoE","Class0",8.7,0),new CamPoeType(141,"WV-S2236LGA-B","Fixed Dome camera","PoE","Class0",8.7,0),new CamPoeType(142,"WV-S2236LG-B","Fixed Dome camera","PoE","Class0",8.7,0),new CamPoeType(143,"WV-S22500-F3L","Fixed Dome camera","PoE","Class0",10.6,0),new CamPoeType(144,"WV-S22500-F6L","Fixed Dome camera","PoE","Class0",10.6,0),new CamPoeType(145,"WV-S22500-V3L",
"Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(146,"WV-S22500-V3L1","Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(147,"WV-S22500-V3LG","Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(148,"WV-S2250L","Fixed Dome camera","PoE","Class0",9.1,0),new CamPoeType(149,"WV-S2252L","Fixed Dome camera","PoE","Class0",11,0),new CamPoeType(150,"WV-S22600-V2L","Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(151,"WV-S22600-V2LG","Fixed Dome camera","PoE","Class0",11.5,0),
new CamPoeType(152,"WV-S22700-V2L","Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(153,"WV-S22700-V2L1","Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(154,"WV-S22700-V2LG","Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(155,"WV-S2270L","Fixed Dome camera","PoE","Class0",9.6,0),new CamPoeType(156,"WV-S2272L","Fixed Dome camera","PoE","Class0",11,0),new CamPoeType(157,"WV-S2511LN","Fixed Dome camera","PoE","Class0",9.4,0),new CamPoeType(158,"WV-S2531LN","Fixed Dome camera",
"PoE","Class0",9.4,0),new CamPoeType(159,"WV-S2531LTN","Fixed Dome camera","PoE","Class0",9.4,0),new CamPoeType(160,"WV-S2536L","Fixed Dome camera","PoE","Class0",9.1,0),new CamPoeType(161,"WV-S2536LA","Fixed Dome camera","PoE","Class0",9.12,0),new CamPoeType(162,"WV-S2536LG","Fixed Dome camera","PoE","Class0",9.1,0),new CamPoeType(163,"WV-S2536LGA","Fixed Dome camera","PoE","Class0",9.12,0),new CamPoeType(164,"WV-S2536LGN","Fixed Dome camera","PoE","Class0",9.1,0),new CamPoeType(165,"WV-S2536LGNA",
"Fixed Dome camera","PoE","Class0",9.12,0),new CamPoeType(166,"WV-S2536LN","Fixed Dome camera","PoE","Class0",9.1,0),new CamPoeType(167,"WV-S2536LNA","Fixed Dome camera","PoE","Class0",9.12,0),new CamPoeType(168,"WV-S2536LT","Fixed Dome camera","PoE","Class0",10.1,0),new CamPoeType(169,"WV-S2536LTA","Fixed Dome camera","PoE","Class0",10.1,0),new CamPoeType(170,"WV-S2536LTN","Fixed Dome camera","PoE","Class0",10.1,0),new CamPoeType(171,"WV-S2536LTNA","Fixed Dome camera","PoE","Class0",10.1,0),new CamPoeType(172,
"WV-S25500-F3L","Fixed Dome camera","PoE","Class0",10.6,0),new CamPoeType(173,"WV-S25500-F6L","Fixed Dome camera","PoE","Class0",10.6,0),new CamPoeType(174,"WV-S25500-V3L","Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(175,"WV-S25500-V3LG","Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(176,"WV-S25500-V3LN","Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(177,"WV-S25500-V3LN1","Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(178,"WV-S2550L","Fixed Dome camera",
"PoE","Class0",10.6,0),new CamPoeType(179,"WV-S2552L","Fixed Dome camera","PoE","Class0",12.5,0),new CamPoeType(180,"WV-S25600-V2L","Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(181,"WV-S25600-V2LG","Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(182,"WV-S25600-V2LN","Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(183,"WV-S25700-V2L","Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(184,"WV-S25700-V2LG","Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(185,
"WV-S25700-V2LN","Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(186,"WV-S25700-V2LN1","Fixed Dome camera","PoE","Class0",11.5,0),new CamPoeType(187,"WV-S2570L","Fixed Dome camera","PoE","Class0",11,0),new CamPoeType(188,"WV-S2572L","Fixed Dome camera","PoE","Class0",12.5,0),new CamPoeType(189,"WV-S3111L","Fixed Dome camera","PoE","Class2",3.8,0),new CamPoeType(190,"WV-S3131L","Fixed Dome camera","PoE","Class2",3.8,0),new CamPoeType(191,"WV-S32302-F2L","Fixed Dome camera","PoE","Class0",
8.64,0),new CamPoeType(192,"WV-S32302-F2L1","Fixed Dome camera","PoE","Class0",8.64,0),new CamPoeType(193,"WV-S32302-F2LG","Fixed Dome camera","PoE","Class0",8.64,0),new CamPoeType(194,"WV-S32402-F2L","Fixed Dome camera","PoE","Class0",8.64,0),new CamPoeType(195,"WV-S32402-F2L1","Fixed Dome camera","PoE","Class0",8.64,0),new CamPoeType(196,"WV-S32402-F2LG","Fixed Dome camera","PoE","Class0",8.64,0),new CamPoeType(197,"WV-S3511L","Fixed Dome camera","PoE","Class2",3.8,0),new CamPoeType(198,"WV-S3512LM",
"Fixed Dome camera","PoE","Class2",3.84,0),new CamPoeType(199,"WV-S35302-F2L","Fixed Dome camera","PoE","Class0",8.64,0),new CamPoeType(200,"WV-S35302-F2L1","Fixed Dome camera","PoE","Class0",8.64,0),new CamPoeType(201,"WV-S35302-F2LG","Fixed Dome camera","PoE","Class0",8.64,0),new CamPoeType(202,"WV-S3531L","Fixed Dome camera","PoE","Class2",3.8,0),new CamPoeType(203,"WV-S3532LM","Fixed Dome camera","PoE","Class2",3.84,0),new CamPoeType(204,"WV-S35402-F2L","Fixed Dome camera","PoE","Class0",8.64,
0),new CamPoeType(205,"WV-S35402-F2L1","Fixed Dome camera","PoE","Class0",8.64,0),new CamPoeType(206,"WV-S35402-F2LG","Fixed Dome camera","PoE","Class0",8.64,0),new CamPoeType(207,"WV-S4150","360-degree fisheye camera","PoE","Class2",5.1,0),new CamPoeType(208,"WV-S4151","360-degree fisheye camera","PoE","Class2",5.3,0),new CamPoeType(209,"WV-S4156","360-degree fisheye camera","PoE","Class0",6.7,0),new CamPoeType(210,"WV-S4156A","360-degree fisheye camera","PoE","Class0",6.72,0),new CamPoeType(211,
"WV-S4176","360-degree fisheye camera","PoE","Class0",8.6,0),new CamPoeType(212,"WV-S4176A","360-degree fisheye camera","PoE","Class0",8.64,0),new CamPoeType(213,"WV-S4550L","360-degree fisheye camera","PoE","Class0",11.5,0),new CamPoeType(214,"WV-S4550LM","360-degree fisheye camera","PoE","Class0",11.52,0),new CamPoeType(215,"WV-S4551L","360-degree fisheye camera","PoE","Class0",11.5,0),new CamPoeType(216,"WV-S4551LM","360-degree fisheye camera","PoE","Class0",11.52,0),new CamPoeType(217,"WV-S4556L",
"360-degree fisheye camera","PoE","Class0",12.5,0),new CamPoeType(218,"WV-S4556LA","360-degree fisheye camera","PoE","Class0",12.5,0),new CamPoeType(219,"WV-S4556LM","360-degree fisheye camera","PoE","Class0",12.5,0),new CamPoeType(220,"WV-S4556LMA","360-degree fisheye camera","PoE","Class0",12.5,0),new CamPoeType(221,"WV-S4576L","360-degree fisheye camera","PoE","Class0",12.95,0),new CamPoeType(222,"WV-S4576LA","360-degree fisheye camera","PoE","Class0",12.95,0),new CamPoeType(223,"WV-S4576LM","360-degree fisheye camera",
"PoE","Class0",12.95,0),new CamPoeType(224,"WV-S4576LMA","360-degree fisheye camera","PoE","Class0",12.95,0),new CamPoeType(225,"WV-S6111","PTZ camera","PoE","Class0",12,0),new CamPoeType(226,"WV-S6130","PTZ camera","PoE","Class0",12,0),new CamPoeType(227,"WV-S61300-ZY","PTZ camera","PoE","Class0",12,0),new CamPoeType(228,"WV-S61300-ZYG","PTZ camera","PoE","Class0",12,0),new CamPoeType(229,"WV-S61301-Z1","PTZ camera","PoE","Class0",12.95,0),new CamPoeType(230,"WV-S61301-Z2","PTZ camera","PoE","Class0",
12.95,0),new CamPoeType(231,"WV-S61302-Z4","PTZ camera","PoE","Class0",12.95,0),new CamPoeType(232,"WV-S6131","PTZ camera","PoE","Class0",12,0),new CamPoeType(233,"WV-S61501-Z1","PTZ camera","PoE","Class0",12.95,0),new CamPoeType(234,"WV-S61602-Z3","PTZ camera","PoE+","Class4",16.7,0),new CamPoeType(235,"WV-S61702-Z3","PTZ camera","PoE+","Class4",16.7,0),new CamPoeType(236,"WV-S65300-ZY","PTZ camera","PoE","Class0",12,1),new CamPoeType(237,"WV-S65300-ZYG","PTZ camera","PoE","Class0",12,0),new CamPoeType(238,
"WV-S65301-Z1","PTZ camera","PoE+","Class4",18.4,1),new CamPoeType(239,"WV-S65301-Z1-1","PTZ camera","PoE+","Class4",18.4,1),new CamPoeType(240,"WV-S65301-Z1G","PTZ camera","PoE+","Class4",18.4,0),new CamPoeType(241,"WV-S65301-Z1S","PTZ camera","PoE+","Class4",18.4,1),new CamPoeType(242,"WV-S65302-Z2","PTZ camera","PoE+","Class4",18.4,1),new CamPoeType(243,"WV-S65302-Z2-1","PTZ camera","PoE+","Class4",18.4,1),new CamPoeType(244,"WV-S65302-Z2G","PTZ camera","PoE+","Class4",18.4,0),new CamPoeType(245,
"WV-S6530N","PTZ camera","PoE+","Class4",23.22,0),new CamPoeType(246,"WV-S6530NS","PTZ camera","PoE+","Class4",23.22,0),new CamPoeType(247,"WV-S6532LN","PTZ camera","PoE+","Class4",25.38,0),new CamPoeType(248,"WV-S6532LNS","PTZ camera","PoE+","Class4",25.38,0),new CamPoeType(249,"WV-S65340-Z2","PTZ camera","PoE+","Class4",25.4,0),new CamPoeType(250,"WV-S65340-Z2G","PTZ camera","PoE+","Class4",25.4,0),new CamPoeType(251,"WV-S65340-Z2K","PTZ camera","PoE+","Class4",25.4,0),new CamPoeType(252,"WV-S65340-Z2N",
"PTZ camera","PoE+","Class4",25.4,0),new CamPoeType(253,"WV-S65340-Z2N1","PTZ camera","PoE+","Class4",25.4,0),new CamPoeType(254,"WV-S65340-Z4","PTZ camera","PoE+","Class4",25.4,0),new CamPoeType(255,"WV-S65340-Z4G","PTZ camera","PoE+","Class4",25.4,0),new CamPoeType(256,"WV-S65340-Z4K","PTZ camera","PoE+","Class4",25.4,0),new CamPoeType(257,"WV-S65340-Z4N","PTZ camera","PoE+","Class4",25.4,0),new CamPoeType(258,"WV-S65340-Z4N1","PTZ camera","PoE+","Class4",25.4,0),new CamPoeType(259,"WV-S65501-Z1",
"PTZ camera","PoE+","Class4",18.9,0),new CamPoeType(260,"WV-S65501-Z1G","PTZ camera","PoE+","Class4",18.9,0),new CamPoeType(261,"WV-S66300-Z3","PTZ camera","PoE++","Class6",37.8,0),new CamPoeType(262,"WV-S66300-Z3L","PTZ camera","PoE++","Class6",45.9,0),new CamPoeType(263,"WV-S66300-Z4","PTZ camera","PoE++","Class6",37.8,0),new CamPoeType(264,"WV-S66300-Z4L","PTZ camera","PoE++","Class6",45.9,0),new CamPoeType(265,"WV-S66600-Z3","PTZ camera","PoE++","Class6",37.8,0),new CamPoeType(266,"WV-S66600-Z3L",
"PTZ camera","PoE++","Class6",45.9,0),new CamPoeType(267,"WV-S66700-Z3","PTZ camera","PoE++","Class6",37.8,0),new CamPoeType(268,"WV-S66700-Z3L","PTZ camera","PoE++","Class6",45.9,0),new CamPoeType(269,"WV-S71300A-F3","Fixed Box camera","PoE","Class0",8.2,0),new CamPoeType(270,"WV-S71300-F3","i-PRO mini","PoE","Class0",8.2,0),new CamPoeType(271,"WV-S8530N","Multi-sensor camera","PoE","Class0",10.1,0),new CamPoeType(272,"WV-S8531N","Multi-sensor camera","PoE+","Class4",22,0),new CamPoeType(273,"WV-S85402-V2L",
"Multi-sensor camera","PoE+","Class4",22.2,0),new CamPoeType(274,"WV-S85402-V2L1","Multi-sensor camera","PoE+","Class4",22.2,0),new CamPoeType(275,"WV-S8543","Multi-sensor camera","PoE+","Class4",17.3,0),new CamPoeType(276,"WV-S8543G","Multi-sensor camera","PoE+","Class4",17.3,0),new CamPoeType(277,"WV-S8543L","Multi-sensor camera","PoE+","Class4",25.4,0),new CamPoeType(278,"WV-S8543LG","Multi-sensor camera","PoE+","Class4",25.4,0),new CamPoeType(279,"WV-S8543LN","Multi-sensor camera","PoE+","Class4",
25.4,0),new CamPoeType(280,"WV-S8543N","Multi-sensor camera","PoE+","Class4",17.3,0),new CamPoeType(281,"WV-S8544","Multi-sensor camera","PoE+","Class4",17.3,0),new CamPoeType(282,"WV-S8544G","Multi-sensor camera","PoE+","Class4",17.3,0),new CamPoeType(283,"WV-S8544L","Multi-sensor camera","PoE+","Class4",25.4,0),new CamPoeType(284,"WV-S8544LG","Multi-sensor camera","PoE+","Class4",25.4,0),new CamPoeType(285,"WV-S8544LN","Multi-sensor camera","PoE+","Class4",25.4,0),new CamPoeType(286,"WV-S8544N",
"Multi-sensor camera","PoE+","Class4",17.3,0),new CamPoeType(287,"WV-S8563L","Multi-sensor camera","PoE+","Class4",25.4,0),new CamPoeType(288,"WV-S8563LG","Multi-sensor camera","PoE+","Class4",25.4,0),new CamPoeType(289,"WV-S8563LN","Multi-sensor camera","PoE+","Class4",25.4,0),new CamPoeType(290,"WV-S8564L","Multi-sensor camera","PoE+","Class4",25.4,0),new CamPoeType(291,"WV-S8564LG","Multi-sensor camera","PoE+","Class4",25.4,0),new CamPoeType(292,"WV-S8564LN","Multi-sensor camera","PoE+","Class4",
25.4,0),new CamPoeType(293,"WV-S85702-F3L","Multi-sensor camera","PoE+","Class4",18.9,0),new CamPoeType(294,"WV-S85702-F3L1","Multi-sensor camera","PoE+","Class4",18.9,0),new CamPoeType(295,"WV-S8573L","Multi-sensor camera","PoE+","Class4",25.4,0),new CamPoeType(296,"WV-S8573LG","Multi-sensor camera","PoE+","Class4",25.4,0),new CamPoeType(297,"WV-S8573LN","Multi-sensor camera","PoE+","Class4",25.4,0),new CamPoeType(298,"WV-S8574L","Multi-sensor camera","PoE+","Class4",25.4,0),new CamPoeType(299,"WV-S8574LG",
"Multi-sensor camera","PoE+","Class4",25.4,0),new CamPoeType(300,"WV-S8574LN","Multi-sensor camera","PoE+","Class4",25.4,0),new CamPoeType(301,"WV-SBV111M","Fixed Dome camera","PoE","Class2",3.8,0),new CamPoeType(302,"WV-SBV131M","Fixed Dome camera","PoE","Class2",3.8,0),new CamPoeType(303,"WV-SFN480","360-degree fisheye camera","PoE","Class0",9.6,0),new CamPoeType(304,"WV-SFV110M","Fixed Dome camera","PoE","Class2",4.3,0),new CamPoeType(305,"WV-SFV481","360-degree fisheye camera","PoE","Class0",
9.6,0),new CamPoeType(306,"WV-SFV781L","Fixed Dome camera","PoE","Class2",12.95,0),new CamPoeType(307,"WV-SPV781L","Bullet type camera","PoE","Class0",12.95,0),new CamPoeType(308,"WV-SUD638","PTZ camera","PoE+","Class4",25,0),new CamPoeType(309,"WV-U1130","Fixed Box camera","PoE","Class2",3.8,0),new CamPoeType(310,"WV-U11300-V2","Fixed Box camera","PoE","Class2",4.3,0),new CamPoeType(311,"WV-U1130A","Fixed Box camera","PoE","Class2",3.8,0),new CamPoeType(312,"WV-U1132","Fixed Box camera","PoE","Class2",
4.3,0),new CamPoeType(313,"WV-U1132A","Fixed Box camera","PoE","Class2",4.3,0),new CamPoeType(314,"WV-U11350-V3","Fixed Box camera","PoE","Class0",6.72,0),new CamPoeType(315,"WV-U1142","Fixed Box camera","PoE","Class2",4.8,0),new CamPoeType(316,"WV-U1142A","Fixed Box camera","PoE","Class2",4.8,0),new CamPoeType(317,"WV-U11550-V3","Fixed Box camera","PoE","Class0",6.72,0),new CamPoeType(318,"WV-U1532L","Bullet type camera","PoE","Class0",6.7,0),new CamPoeType(319,"WV-U1532LA","Bullet type camera",
"PoE","Class0",6.7,0),new CamPoeType(320,"WV-U15350-V3L","Bullet type camera","PoE","Class0",9.6,0),new CamPoeType(321,"WV-U1542L","Bullet type camera","PoE","Class0",7.2,0),new CamPoeType(322,"WV-U1542LA","Bullet type camera","PoE","Class0",7.2,0),new CamPoeType(323,"WV-U15550-V3L","Bullet type camera","PoE","Class0",9.6,0),new CamPoeType(324,"WV-U15750-V3L","Bullet type camera","PoE","Class0",9.6,0),new CamPoeType(325,"WV-U21300-V2L","Fixed Dome camera","PoE","Class2",5.8,0),new CamPoeType(326,
"WV-U2130L","Fixed Dome camera","PoE","Class2",4.8,0),new CamPoeType(327,"WV-U2130LA","Fixed Dome camera","PoE","Class2",4.8,0),new CamPoeType(328,"WV-U2132L","Fixed Dome camera","PoE","Class2",5.8,0),new CamPoeType(329,"WV-U2132LA","Fixed Dome camera","PoE","Class2",5.8,0),new CamPoeType(330,"WV-U21350-V3L","Fixed Dome camera","PoE","Class0",9.6,0),new CamPoeType(331,"WV-U2140L","Fixed Dome camera","PoE","Class2",5.3,0),new CamPoeType(332,"WV-U2140LA","Fixed Dome camera","PoE","Class2",5.3,0),new CamPoeType(333,
"WV-U2142L","Fixed Dome camera","PoE","Class0",6.5,0),new CamPoeType(334,"WV-U2142LA","Fixed Dome camera","PoE","Class0",6.5,0),new CamPoeType(335,"WV-U21550-V3L","Fixed Dome camera","PoE","Class0",9.6,0),new CamPoeType(336,"WV-U22350-F3L","Fixed Dome camera","PoE","Class0",9.6,0),new CamPoeType(337,"WV-U22550-F3L","Fixed Dome camera","PoE","Class0",9.6,0),new CamPoeType(338,"WV-U22750-F3L","Fixed Dome camera","PoE","Class0",9.6,0),new CamPoeType(339,"WV-U2530L","Fixed Dome camera","PoE","Class2",
4.8,0),new CamPoeType(340,"WV-U2530LA","Fixed Dome camera","PoE","Class2",4.8,0),new CamPoeType(341,"WV-U2532L","Fixed Dome camera","PoE","Class0",6.7,0),new CamPoeType(342,"WV-U2532LA","Fixed Dome camera","PoE","Class0",6.7,0),new CamPoeType(343,"WV-U25350-F3L","Fixed Dome camera","PoE","Class0",9.6,0),new CamPoeType(344,"WV-U25351-V3L","Fixed Dome camera","PoE","Class0",9.6,0),new CamPoeType(345,"WV-U2540L","Fixed Dome camera","PoE","Class2",5.3,0),new CamPoeType(346,"WV-U2540LA","Fixed Dome camera",
"PoE","Class2",5.3,0),new CamPoeType(347,"WV-U2542L","Fixed Dome camera","PoE","Class0",7.2,0),new CamPoeType(348,"WV-U2542LA","Fixed Dome camera","PoE","Class0",7.2,0),new CamPoeType(349,"WV-U25550-F3L","Fixed Dome camera","PoE","Class0",9.6,0),new CamPoeType(350,"WV-U25551-V3L","Fixed Dome camera","PoE","Class0",9.6,0),new CamPoeType(351,"WV-U25751-V3L","Fixed Dome camera","PoE","Class0",9.6,0),new CamPoeType(352,"WV-U31301-F2L","Fixed Dome camera","PoE","Class2",5.3,0),new CamPoeType(353,"WV-U31301-F2LG",
"Fixed Dome camera","PoE","Class2",5.3,0),new CamPoeType(354,"WV-U31401-F2L","Fixed Dome camera","PoE","Class2",5.3,0),new CamPoeType(355,"WV-U31401-F2LG","Fixed Dome camera","PoE","Class2",5.3,0),new CamPoeType(356,"WV-U35301-F2L","Fixed Dome camera","PoE","Class2",5.3,0),new CamPoeType(357,"WV-U35301-F2LG","Fixed Dome camera","PoE","Class2",5.3,0),new CamPoeType(358,"WV-U35401-F2L","Fixed Dome camera","PoE","Class2",5.3,0),new CamPoeType(359,"WV-U35401-F2LG","Fixed Dome camera","PoE","Class2",5.3,
0),new CamPoeType(360,"WV-U61300-ZY","PTZ camera","PoE","Class0",12,0),new CamPoeType(361,"WV-U61300-ZYG","PTZ camera","PoE","Class0",12,0),new CamPoeType(362,"WV-U61301-Z1","PTZ camera","PoE","Class0",12.95,0),new CamPoeType(363,"WV-U61301-Z2","PTZ camera","PoE","Class0",12.95,0),new CamPoeType(364,"WV-U65300-ZY","PTZ camera","PoE","Class0",12,0),new CamPoeType(365,"WV-U65300-ZYG","PTZ camera","PoE","Class0",12,0),new CamPoeType(366,"WV-U65301-Z1","PTZ camera","PoE+","Class4",18.4,0),new CamPoeType(367,
"WV-U65301-Z1G","PTZ camera","PoE+","Class4",18.4,0),new CamPoeType(368,"WV-U65302-Z2","PTZ camera","PoE+","Class4",18.4,0),new CamPoeType(369,"WV-U65302-Z2G","PTZ camera","PoE+","Class4",18.4,0),new CamPoeType(370,"WV-U85402-V2L","Multi-sensor camera","PoE+","Class4",18.9,0),new CamPoeType(371,"WV-U85402-V2L1","Multi-sensor camera","PoE+","Class4",18.9,0),new CamPoeType(372,"WV-V1330LK","Fixed Box camera","PoE","Class0",4.8,0),new CamPoeType(373,"WV-X15300-V3L","Bullet type camera","PoE+","Class4",
14.04,0),new CamPoeType(374,"WV-X15300-V3LN","Bullet type camera","PoE+","Class4",14.04,0),new CamPoeType(375,"WV-X15301-Z1L","Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(376,"WV-X15301-Z1LN","Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(377,"WV-X15302-Z1L","Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(378,"WV-X15302-Z1LN","Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(379,"WV-X15500-V3L","Bullet type camera","PoE+","Class4",14.04,0),new CamPoeType(380,
"WV-X15500-V3LN","Bullet type camera","PoE+","Class4",14.04,0),new CamPoeType(381,"WV-X15501-Z1L","Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(382,"WV-X15501-Z1LN","Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(383,"WV-X15501-Z3L","Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(384,"WV-X15501-Z3LN","Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(385,"WV-X15502-Z1L","Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(386,"WV-X15502-Z1LN",
"Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(387,"WV-X1551LN","Bullet type camera","PoE","Class0",11.5,0),new CamPoeType(388,"WV-X15600-V2L","Bullet type camera","PoE+","Class4",14.04,0),new CamPoeType(389,"WV-X15600-V2LN","Bullet type camera","PoE+","Class4",14.04,0),new CamPoeType(390,"WV-X15700-V2L","Bullet type camera","PoE+","Class4",14.04,0),new CamPoeType(391,"WV-X15700-V2LN","Bullet type camera","PoE+","Class4",14.04,0),new CamPoeType(392,"WV-X15701-Z3L","Bullet type camera",
"PoE++","Class5",32.4,0),new CamPoeType(393,"WV-X15701-Z3LN","Bullet type camera","PoE++","Class5",32.4,0),new CamPoeType(394,"WV-X1571LN","Bullet type camera","PoE","Class0",11.5,0),new CamPoeType(395,"WV-X22300-V3L","Bullet type camera","PoE+","Class4",14.04,0),new CamPoeType(396,"WV-X22500-V3L","Bullet type camera","PoE+","Class4",14.04,0),new CamPoeType(397,"WV-X2251L","Fixed Dome camera","PoE","Class0",11,0),new CamPoeType(398,"WV-X22600-V2L","Bullet type camera","PoE+","Class4",14.04,0),new CamPoeType(399,
"WV-X22700-V2L","Bullet type camera","PoE+","Class4",14.04,0),new CamPoeType(400,"WV-X2271L","Fixed Dome camera","PoE","Class0",11,0),new CamPoeType(401,"WV-X25300-V3LN","Bullet type camera","PoE+","Class4",14.04,0),new CamPoeType(402,"WV-X25500-V3LN","Bullet type camera","PoE+","Class4",14.04,0),new CamPoeType(403,"WV-X2551LN","Fixed Dome camera","PoE","Class0",12.5,0),new CamPoeType(404,"WV-X25580-F2LN2","Corner camera","PoE","Class0",11.5,0),new CamPoeType(405,"WV-X25600-V2LN","Bullet type camera",
"PoE+","Class4",14.04,0),new CamPoeType(406,"WV-X25700-V2LN","Bullet type camera","PoE+","Class4",14.04,0),new CamPoeType(407,"WV-X2571LN","Fixed Dome camera","PoE","Class0",12.5,0),new CamPoeType(408,"WV-X35302-F2L","Fixed Dome camera","PoE","Class0",8.64,0),new CamPoeType(409,"WV-X35302-F2LM","Fixed Dome camera","PoE","Class0",8.64,0),new CamPoeType(410,"WV-X35402-F2L","Fixed Dome camera","PoE","Class0",8.64,0),new CamPoeType(411,"WV-X35402-F2LM","Fixed Dome camera","PoE","Class0",8.64,0),new CamPoeType(412,
"WV-X4170","360-degree fisheye camera","PoE","Class0",7.2,0),new CamPoeType(413,"WV-X4171","360-degree fisheye camera","PoE","Class0",7.2,0),new CamPoeType(414,"WV-X4172","360-degree fisheye camera","PoE","Class0",7.2,0),new CamPoeType(415,"WV-X4173","360-degree fisheye camera","PoE","Class0",7.2,0),new CamPoeType(416,"WV-X4571L","360-degree fisheye camera","PoE","Class0",12.5,0),new CamPoeType(417,"WV-X4571LM","360-degree fisheye camera","PoE","Class0",12.5,0),new CamPoeType(418,"WV-X4573L","360-degree fisheye camera",
"PoE","Class0",12.5,0),new CamPoeType(419,"WV-X4573LM","360-degree fisheye camera","PoE","Class0",12.5,0),new CamPoeType(420,"WV-X6511N","PTZ camera","PoE+","Class4",25.38,0),new CamPoeType(421,"WV-X6531N","PTZ camera","PoE+","Class4",25.38,0),new CamPoeType(422,"WV-X6531NS","PTZ camera","PoE+","Class4",25.38,0),new CamPoeType(423,"WV-X6533LN","PTZ camera","PoE+","Class4",25.38,0),new CamPoeType(424,"WV-X6533LNS","PTZ camera","PoE+","Class4",25.38,0),new CamPoeType(425,"WV-X66300-Z3LS","PTZ camera",
"PoE++","Class6",45.9,0),new CamPoeType(426,"WV-X66300-Z3S","PTZ camera","PoE++","Class6",37.8,0),new CamPoeType(427,"WV-X66300-Z4LS","PTZ camera","PoE++","Class6",45.9,0),new CamPoeType(428,"WV-X66300-Z4S","PTZ camera","PoE++","Class6",37.8,0),new CamPoeType(429,"WV-X66600-Z3LS","PTZ camera","PoE++","Class6",45.9,0),new CamPoeType(430,"WV-X66600-Z3S","PTZ camera","PoE++","Class6",37.8,0),new CamPoeType(431,"WV-X66700-Z3LS","PTZ camera","PoE++","Class6",45.9,0),new CamPoeType(432,"WV-X66700-Z3S",
"PTZ camera","PoE++","Class6",37.8,0),new CamPoeType(433,"WV-X67300-Z4-3","PTZ camera","PoE++","Class8",54,0),new CamPoeType(434,"WV-X67300-Z4L3","PTZ camera","PoE++","Class8",70.2,0),new CamPoeType(435,"WV-X67301-Z4L3","PTZ camera","PoE++","Class8",70.2,0),new CamPoeType(436,"WV-X67310-Z4-1","PTZ camera","PoE++","Class8",54,0),new CamPoeType(437,"WV-X67310-Z4-3","PTZ camera","PoE++","Class8",54,0),new CamPoeType(438,"WV-X67310-Z4L1","PTZ camera","PoE++","Class8",70.2,0),new CamPoeType(439,"WV-X67310-Z4L3",
"PTZ camera","PoE++","Class8",70.2,0),new CamPoeType(440,"WV-X67311-Z4L3","PTZ camera","PoE++","Class8",70.2,0),new CamPoeType(441,"WV-X67700-Z3-3","PTZ camera","PoE++","Class8",54,0),new CamPoeType(442,"WV-X67700-Z3L3","PTZ camera","PoE++","Class8",70.2,0),new CamPoeType(443,"WV-X67701-Z3L3","PTZ camera","PoE++","Class8",70.2,0),new CamPoeType(444,"WV-X67710-Z3-1","PTZ camera","PoE++","Class8",54,0),new CamPoeType(445,"WV-X67710-Z3-3","PTZ camera","PoE++","Class8",54,0),new CamPoeType(446,"WV-X67710-Z3L1",
"PTZ camera","PoE++","Class8",70.2,0),new CamPoeType(447,"WV-X67710-Z3L3","PTZ camera","PoE++","Class8",70.2,0),new CamPoeType(448,"WV-X67711-Z3L3","PTZ camera","PoE++","Class8",70.2,0),new CamPoeType(449,"WV-X8570N","Multi-sensor camera","PoE","Class0",12.95,0),new CamPoeType(450,"WV-X8571N","Multi-sensor camera","PoE+","Class4",20,0),new CamPoeType(451,"WV-X86530-Z2","Multi-sensor camera","PoE++","Class5",35.6,0),new CamPoeType(452,"WV-X86530-Z2-1","Multi-sensor camera","PoE++","Class5",35.6,0),
new CamPoeType(453,"WV-X86531-Z2","Multi-sensor camera","PoE++","Class5",35.6,0),new CamPoeType(454,"WV-X86531-Z2-1","Multi-sensor camera","PoE++","Class5",35.6,0),new CamPoeType(455,"Other","","PoE","Class0",-1,0)];
