if(info.MAX_DISA_HUNT_ANNC_ALL) {
	var v_vsf_1 = {label: "1 - "+info.MAX_DISA_HUNT_ANNC_ALL, cont:1};
}
else {
	var v_vsf_1 = {label: "1 - 70",cont:1};
}

if(info.PHASE >= 4.1) {
	var toneType_select = [{value: "0", option: langs.getText("common","normal")}, {value: "1", option: langs.getText("common","announcement")}, {value: "2", option: langs.getText("common","internal_music")}, {value: "3", option: langs.getText("common","extmusic")}, {value: "4", option: langs.getText("common","vsf_moh")+" 1"}, {value: "5", option: langs.getText("common","vsf_moh")+" 2"}, {value: "6", option: langs.getText("common","vsf_moh")+" 3"}, {value: "7", option: langs.getText("common","slt_moh")+" 1"}, {value: "8", option: langs.getText("common","slt_moh")+" 2"}, {value: "9", option: langs.getText("common","slt_moh")+" 3"}, {value: "10", option: langs.getText("common","slt_moh")+" 4"}, {value: "11", option: langs.getText("common","slt_moh")+" 5"}, {value: "12", option: langs.getText("common","vsf_moh")+" 4"}, {value: "13", option: langs.getText("common","vsf_moh")+" 5"}, {value: "14", option: langs.getText("common","vsf_moh")+" 6"}, {value: "15", option: langs.getText("common","vsf_moh")+" 7"}, {value: "16", option: langs.getText("common","vsf_moh")+" 8"}, {value: "17", option: langs.getText("common","vsf_moh")+" 9"}, {value: "18", option: langs.getText("common","vsf_moh")+" 10"}, {value: "19", option: langs.getText("common","vsf_moh")+" 11"}, {value: "20", option: langs.getText("common","vsf_moh")+" 12"}, {value: "21", option: langs.getText("common","vsf_moh")+" 13"}, {value: "22", option: langs.getText("common","vsf_moh")+" 14"}, {value: "23", option: langs.getText("common","vsf_moh")+" 15"}, {value: "24", option: langs.getText("common","vsf_moh")+" 16"}, {value: "25", option: langs.getText("common","vsf_moh")+" 17"}, {value: "26", option: langs.getText("common","vsf_moh")+" 18"}, {value: "27", option: langs.getText("common","vsf_moh")+" 19"}, {value: "28", option: langs.getText("common","vsf_moh")+" 20"}, {value: "29", option: langs.getText("common","vsf_moh")+" 21"}, {value: "30", option: langs.getText("common","vsf_moh")+" 22"}, {value: "31", option: langs.getText("common","vsf_moh")+" 23"}, {value: "32", option: langs.getText("common","vsf_moh")+" 24"}, {value: "33", option: langs.getText("common","vsf_moh")+" 25"}, {value: "34", option: langs.getText("common","vsf_moh")+" 26"}, {value: "35", option: langs.getText("common","vsf_moh")+" 27"}, {value: "36", option: langs.getText("common","vsf_moh")+" 28"}, {value: "37", option: langs.getText("common","vsf_moh")+" 29"}, {value: "38", option: langs.getText("common","vsf_moh")+" 30"}];
} else {
	var toneType_select = [{value: "0", option: langs.getText("common","normal")}, {value: "1", option: langs.getText("common","announcement")}, {value: "2", option: langs.getText("common","internal_music")}, {value: "3", option: langs.getText("common","extmusic")}, {value: "4", option: langs.getText("common","vsf_moh")+" 1"}, {value: "5", option: langs.getText("common","vsf_moh")+" 2"}, {value: "6", option: langs.getText("common","vsf_moh")+" 3"}, {value: "7", option: langs.getText("common","slt_moh")+" 1"}, {value: "8", option: langs.getText("common","slt_moh")+" 2"}, {value: "9", option: langs.getText("common","slt_moh")+" 3"}, {value: "10", option: langs.getText("common","slt_moh")+" 4"}, {value: "11", option: langs.getText("common","slt_moh")+" 5"}];
}

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm265_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm265_preload", preload: [{name: "RANGE_TYPE_1", range_type: 2}, {text: langs.getText("p265","enter_tonerange")+" (1 - 5) : "}, {name: "RANGE_1_1", value: "", textfield: [{max: 40, size: 50}], message: "", help: langs.re_toolTip()}, {btn: langs.getText("common","load"), btn_type: "btn_load"}, langs.Range_Error_Table(), {endload: 1}, {br: 2}, {text: langs.getText("p265","tone_range")+" - "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
            {key: "pgm265_mktbl", title: langs.getText("common","mktbl"), table: [{name: "CHKFLAG", value: "", check_flag: 1}, {btn: langs.getText("common","btn_chkall"), btn_type: "btn_checkall"},{label: langs.getText("common","index")}, {label: langs.getText("p265","tone_name")},{label: langs.getText("p265","tone_type")},{label: langs.getText("p265","tone_annc_no")},{br:1,cont:1},v_vsf_1]},
            {key: "pgm265_tone_busy", title: langs.getText("common","stabusy_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"1"},{label: langs.getText("common","stabusy_tone")}, {name:"TONE_1_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_1_BLANK", value: "", label: 1}, {name: "TONE_1_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_err", title: langs.getText("common","staerr_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"2"},{label: langs.getText("common","staerr_tone")}, {name:"TONE_2_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_2_BLANK", value: "", label: 1}, {name: "TONE_2_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_dnd", title: langs.getText("common","stadnd_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"3"},{label: langs.getText("common","stadnd_tone")}, {name:"TONE_3_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_3_BLANK", value: "", label: 1}, {name: "TONE_3_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_reminder", title: langs.getText("common","stareminder_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"4"},{label: langs.getText("common","stareminder_tone")}, {name:"TONE_4_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_4_BLANK", value: "", label: 1}, {name: "TONE_4_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_ringback", title: langs.getText("common","staringback_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"5"},{label: langs.getText("common","staringback_tone")}, {name:"TONE_5_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_5_BLANK", value: "", label: 1}, {name: "TONE_5_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_allpage", title: langs.getText("common","all_cpage_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"6"},{label: langs.getText("common","all_cpage_tone")}, {name:"TONE_6_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_6_BLANK", value: "", label: 1}, {name: "TONE_6_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_intpage", title: langs.getText("common","intpage_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"7"},{label: langs.getText("common","intpage_tone")}, {name:"TONE_7_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_7_BLANK", value: "", label: 1}, {name: "TONE_7_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_hftb_warning", title: langs.getText("common","hftb_warning_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"8"},{label: langs.getText("common","hftb_warning_tone")}, {name:"TONE_8_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_8_BLANK", value: "", label: 1}, {name: "TONE_8_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_confirm", title: langs.getText("common","confirm_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"9"},{label: langs.getText("common","confirm_tone")}, {name:"TONE_9_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_9_BLANK", value: "", label: 1}, {name: "TONE_9_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_singleerr", title: langs.getText("common","singleerr_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"10"},{label: langs.getText("common","singleerr_tone")}, {name:"TONE_10_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_10_BLANK", value: "", label: 1}, {name: "TONE_10_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_dial", title: langs.getText("common","stadial_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"11"},{label: langs.getText("common","stadial_tone")}, {name:"TONE_11_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_11_BLANK", value: "", label: 1}, {name: "TONE_11_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_dial_warning", title: langs.getText("common","dial_warn_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"12"},{label: langs.getText("common","dial_warn_tone")}, {name:"TONE_12_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_12_BLANK", value: "", label: 1}, {name: "TONE_12_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_conf_timeout", title: langs.getText("common","conf_timeout_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"13"},{label: langs.getText("common","conf_timeout_tone")}, {name:"TONE_13_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_13_BLANK", value: "", label: 1}, {name: "TONE_13_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_ohva", title: langs.getText("common","staohva_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"14"},{label: langs.getText("common","staohva_tone")}, {name:"TONE_14_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_14_BLANK", value: "", label: 1}, {name: "TONE_14_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_co_hold", title: langs.getText("common","co_hold_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"15"},{label: langs.getText("common","co_hold_tone")}, {name:"TONE_15_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_15_BLANK", value: "", label: 1}, {name: "TONE_15_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_dissu", title: langs.getText("common","dissu_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"16"},{label: langs.getText("common","dissu_tone")}, {name:"TONE_16_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_16_BLANK", value: "", label: 1}, {name: "TONE_16_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_co_ringback", title: langs.getText("common","co_ringback_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"17"},{label: langs.getText("common","co_ringback_tone")}, {name:"TONE_17_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_17_BLANK", value: "", label: 1}, {name: "TONE_17_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_admin_err", title: langs.getText("common","admin_err_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"18"},{label: langs.getText("common","admin_err_tone")}, {name:"TONE_18_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_18_BLANK", value: "", label: 1}, {name: "TONE_18_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_lcr_dial", title: langs.getText("common","lcr_dial_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"19"},{label: langs.getText("common","lcr_dial_tone")}, {name:"TONE_19_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_19_BLANK", value: "", label: 1}, {name: "TONE_19_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_congestion", title: langs.getText("common","stacongestion_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"20"},{label: langs.getText("common","stacongestion_tone")}, {name:"TONE_20_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_20_BLANK", value: "", label: 1}, {name: "TONE_20_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_intrusion", title: langs.getText("common","staintrusion_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"21"},{label: langs.getText("common","staintrusion_tone")}, {name:"TONE_21_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_21_BLANK", value: "", label: 1}, {name: "TONE_21_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_howling", title: langs.getText("common","dual_howling_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"22"},{label: langs.getText("common","dual_howling_tone")}, {name:"TONE_22_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_22_BLANK", value: "", label: 1}, {name: "TONE_22_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_dummy_dial", title: langs.getText("common","dummy_dial_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"23"},{label: langs.getText("common","dummy_dial_tone")}, {name:"TONE_23_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_23_BLANK", value: "", label: 1}, {name: "TONE_23_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_co_busy", title: langs.getText("common","co_busy_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"24"},{label: langs.getText("common","co_busy_tone")}, {name:"TONE_24_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_24_BLANK", value: "", label: 1}, {name: "TONE_24_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_co_err", title: langs.getText("common","co_err_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"25"},{label: langs.getText("common","co_err_tone")}, {name:"TONE_25_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_25_BLANK", value: "", label: 1}, {name: "TONE_25_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_co_confirm", title: langs.getText("p265","tone_co_confirm"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"26"},{label: langs.getText("p265","tone_co_confirm")}, {name:"TONE_26_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_26_BLANK", value: "", label: 1}, {name: "TONE_26_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_co_dial", title: langs.getText("common","co_dial_tone"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"27"},{label: langs.getText("common","co_dial_tone")}, {name:"TONE_27_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_27_BLANK", value: "", label: 1}, {name: "TONE_27_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_unsupervised_warning", title: langs.getText("p265","tone_unsupervised_warning"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"28"},{label: langs.getText("p265","tone_unsupervised_warning")}, {name:"TONE_28_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_28_BLANK", value: "", label: 1}, {name: "TONE_28_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_co_dnd", title: langs.getText("p265","tone_co_dnd"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"29"},{label: langs.getText("p265","tone_co_dnd")}, {name:"TONE_29_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_29_BLANK", value: "", label: 1}, {name: "TONE_29_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_co_allpage", title: langs.getText("p265","tone_co_allpage"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"30"},{label: langs.getText("p265","tone_co_allpage")}, {name:"TONE_30_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_30_BLANK", value: "", label: 1}, {name: "TONE_30_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]},
            {key: "pgm265_tone_co_icmpage", title: langs.getText("p265","tone_co_icmpage"), tr:[{chk_type: "chk_checkall", chk: 1},{label:"31"},{label: langs.getText("p265","tone_co_icmpage")}, {name:"TONE_31_TYPE", value:"0", select:toneType_select, sel_type: "p265_select", message: "", cont: 0}, {name: "TONE_31_BLANK", value: "", label: 1}, {name: "TONE_31_PROMPANNCTID", value: "", textfield:[{max: 3, size: 3}], message: "", cont: 0}]}
		]}
    ]}
);