
if(info.NO_OF_COMPANY_NAME_TBL) {
        var cpnnametbl_range_guide = "0-"+info.NO_OF_COMPANY_NAME_TBL;
}

if(info.PHASE >= 2.2) {
	var p113_clogattrbar = {key: "pgm113_clogattrbar", title: langs.getText("p113","clogattrbar"), th: [{order_alphabet: 1}, {label: langs.getText("p113","clogattrbar"), colspan: 4}]};
	var p113_clogselfb = {key: "pgm113_clogselfb", title: langs.getText("p113","clogselfb"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","clogselfb")}, {name:"CLOGSELFB", value:"", select:[{value: "0", option: langs.getText("p113","clog_usage_sys")}, {value: "1", option: langs.getText("p113","clog_usage_self")}], message: "", cont: 0}, {label: ""}]};
	var p113_clogmenub = {key: "pgm113_clogmenub", title: langs.getText("p113","clogmenub"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","clogmenub")}, {name:"CLOGMENUB", value:"", select:[{value: "0", option: langs.getText("p113","clog_menu_all")}, {value: "1", option: langs.getText("p113","clog_menu_sep")}], message: "", cont: 0}, {label: ""}]};
	var p113_cloggrpb = {key: "pgm113_cloggrpb", title: langs.getText("p113","cloggrpb"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","cloggrpb")}, {name:"CLOGGRPB", value:"", select:[{value: "0", option: langs.getText("p113","clog_grp_cc")}, {value: "1", option: langs.getText("p113","clog_grp_none")}], message: "", cont: 0}, {label: ""}]};
	var p113_clogccb = {key: "pgm113_clogccb", title: langs.getText("p113","clogccb"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","clogccb")}, {name:"CLOGCCB", value:"", select:[{value: "0", option: langs.getText("p113","clog_cc_all")}, {value: "1", option: langs.getText("p113","clog_cc_excy")}, {value: "2", option: langs.getText("p113","clog_cc_myans")}, {value: "3", option: langs.getText("p113","clog_cc_none")}], message: "", cont: 0}, {label: ""}]};
	var p113_clogicmcb = {key: "pgm113_clogicmcb", title: langs.getText("p113","clogicmcb"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","clogicmcb")}, {name:"CLOGICMCB", value:"", select:[{value: "0", option: langs.getText("p113","clog_icmc_both")}, {value: "1", option: langs.getText("p113","clog_icmc_in")}, {value: "2", option: langs.getText("p113","clog_icmc_none")}], message: "", cont: 0}, {label: ""}]};
	var p113_clognorg = {key: "pgm113_clognorg", title: langs.getText("p113","clognorg"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","clognorg")}, {name:"CLOGNORG", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]};
} else {
	var p113_clogattrbar  = {};
	var p113_clogselfb  = {};
	var p113_clogmenub  = {};
	var p113_cloggrpb  = {};
	var p113_clogccb  = {};
	var p113_clogicmcb  = {};
}
if(info.PHASE >= 3.0) {
        var p113_cpnname1  = {key: "pgm113_cpnname1", title: langs.getText("p113","cpnname")+" 1", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","cpnname")+" 1"}, {name:"CPNNAME1", value:"", textfield:[{max: 3}], message: "", cont: 0}, {label: cpnnametbl_range_guide+", 0:station name"}]};
        var p113_cpnname2  = {key: "pgm113_cpnname2", title: langs.getText("p113","cpnname")+" 2", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","cpnname")+" 2"}, {name:"CPNNAME2", value:"", textfield:[{max: 3}], message: "", cont: 0}, {label: cpnnametbl_range_guide+", 0:station name"}]};
        var p113_cpnname3  = {key: "pgm113_cpnname3", title: langs.getText("p113","cpnname")+" 3", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","cpnname")+" 3"}, {name:"CPNNAME3", value:"", textfield:[{max: 3}], message: "", cont: 0}, {label: cpnnametbl_range_guide+", 0:station name"}]};
        var p113_cpnname4  = {key: "pgm113_cpnname4", title: langs.getText("p113","cpnname")+" 4", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","cpnname")+" 4"}, {name:"CPNNAME4", value:"", textfield:[{max: 3}], message: "", cont: 0}, {label: cpnnametbl_range_guide+", 0:station name"}]};
        var p113_cpnname5  = {key: "pgm113_cpnname5", title: langs.getText("p113","cpnname")+" 5", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","cpnname")+" 5"}, {name:"CPNNAME5", value:"", textfield:[{max: 3}], message: "", cont: 0}, {label: cpnnametbl_range_guide+", 0:station name"}]};
		var p113_clogipatd = {};
} else {
        var p113_cpnname1  = {};
        var p113_cpnname2  = {};
        var p113_cpnname3  = {};
        var p113_cpnname4  = {};
        var p113_cpnname5  = {};
		var p113_clogipatd = {key: "pgm113_clogipatd", title: langs.getText("p113","clogipatd"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","clogipatd")}, {name:"CLOGIPATD", value:"", select:[{value: "0", option: langs.getText("p113","clogipatd_my")}, {value: "1", option: langs.getText("p113","clogipatd_sys")}], message: "", cont: 0}, {label: langs.getText("common","onlyipatd")}]};
}

if(info.PHASE >= 3.1) {
		var p113_clearmissed = {key: "pgm113_clearmissed", title: langs.getText("p113","clearmissed"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","clearmissed")}, {name:"CLEARMISSED", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]};
		var p113_clogpage = {key: "pgm113_clogpage", title: langs.getText("p113","clogpage"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","clogpage")}, {name:"CLOGPAGE", value:"", select:[{value: "0", option: langs.getText("p113","clog_cc_none")}, {value: "1", option: langs.getText("p113","clog_cc_all")}, {value: "2", option: langs.getText("p113","clog_page_emgronly")}], message: "", cont: 0}, {label: ""}]};
} else {
		var p113_clearmissed  = {};
		var p113_clogpage = {};
}

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm113_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm113_preload", preload: [{name: "RANGE_TYPE_1", range_type: 1}, {text: langs.getText("common","enter_stnrange")+" : "}, {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("common","stnrange")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
            {key: "pgm113_mktbl", title: langs.getText("common","mktbl"), table: [{name: "CHKFLAG", value: "", check_flag: 1}, {label: langs.getText("common","order"), sort: "num"}, {btn: langs.getText("common","btn_chkall"), btn_type: "btn_checkall"}, {label: langs.getText("common","attr"), sort: "str"}, {label: langs.getText("common","val")}, {label: langs.getText("common","range")}]},
            {key: "pgm113_basic_attr", title: langs.getText("common2","basic_attr"), th: [{order_alphabet: 1}, {label: langs.getText("common2","basic_attr"), colspan: 4}]},
            {key: "pgm113_didwait", title: langs.getText("p113","didwait"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","didwait")}, {name:"DIDWAIT", value: "", select: [{value: "0", option: langs.getText("p113","opt_callwait_off")}, {value: "1", option: langs.getText("p113","opt_callwait_all")}, {value: "2", option: langs.getText("p113","opt_callwait_ext")}, {value: "3", option: langs.getText("p113","opt_callwait_int")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm113_wtcont", title: langs.getText("p113","wtcont"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","wtcont")}, {name:"WTCONT", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm113_wtcycnt", title: langs.getText("p113","wtcycnt"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","wtcycnt")}, {name:"WTCYCNT", value: "", textfield:[{max: 2}], message: "", cont: 0}, {label: "0~20(*3sec)"}]},
            {key: "pgm113_cliplcd", title: langs.getText("p113","cliplcd"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","cliplcd")}, {name:"CLIPLCD", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm113_colplcd", title: langs.getText("p113","colplcd"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","colplcd")}, {name:"COLPLCD", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm113_isdnclir", title: langs.getText("common","isdnclir"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("common","isdnclir")}, {name:"ISDNCLIR", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm113_isdncolr", title: langs.getText("p113","isdncolr"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","isdncolr")}, {name:"ISDNCOLR", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm113_clind", title: langs.getText("p113","clind"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","clind")}, {name:"CLIND", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm113_climw", title: langs.getText("p113","climw"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","climw")}, {name:"CLIMW", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm113_fastsltcli", title: langs.getText("p113","fastsltcli"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","fastsltcli")}, {name:"FASTSLTCLI", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm113_e164cli", title: langs.getText("p113","e164cli"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","e164cli")}, {name:"E164CLI", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm113_cidpwd", title: langs.getText("common","cid_pwd"), tr:[{label: ""}, {label: ""}, {label: langs.getText("common","cid_pwd")}, {name:"CIDPWD", value:"", textfield:[{max: 12, size: 15}], message: "", cont: 0}, {label: " ", cont: 1}, {btn: langs.getText("common","btn_gotosetting"), btn_type: "btn_link_to_otherpgm pgm162", cont: 1}, {label: ""}]},
            {key: "pgm113_isndcli", title: langs.getText("p113","isdncli")+" 1", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","isdncli")+" 1"}, {name:"ISDNCLI", value:"", textfield:[{max: 12}], message: "", cont: 0}, {label: langs.getText("common","max12digit")}]},
            {key: "pgm113_sta2", title: langs.getText("p113","isdncli")+" 2", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","isdncli")+" 2"}, {name:"STNCLI2", value:"", textfield:[{max: 16}], message: "", cont: 0}, {label: langs.getText("common","max16digit")}]},
            {key: "pgm113_sta3", title: langs.getText("p113","isdncli")+" 3", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","isdncli")+" 3"}, {name:"STNCLI3", value:"", textfield:[{max: 16}], message: "", cont: 0}, {label: langs.getText("common","max16digit")}]},
            {key: "pgm113_sta4", title: langs.getText("p113","isdncli")+" 4", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","isdncli")+" 4"}, {name:"STNCLI4", value:"", textfield:[{max: 16}], message: "", cont: 0}, {label: langs.getText("common","max16digit")}]},
            {key: "pgm113_sta5", title: langs.getText("p113","isdncli")+" 5", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","isdncli")+" 5"}, {name:"STNCLI5", value:"", textfield:[{max: 16}], message: "", cont: 0}, {label: langs.getText("common","max16digit")}]},
            {key: "pgm113_clirdisp", title: langs.getText("p113","clirdisp"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","clirdisp")}, {name:"CLIRD", value:"", select:[{value: "0", option: langs.getText("common","original_cli")}, {value: "1", option: langs.getText("p113","opt_clirdisp_redircli")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm113_extatd", title: langs.getText("p113","sta_or_atd"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","sta_or_atd")}, {name:"EXTATD", value:"", select:[{value: "0", option: langs.getText("p113","opt_sta_or_atd_sta")}, {value: "1", option: langs.getText("p113","opt_sta_or_atd_atd")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm113_cpntype", title: langs.getText("p113","cpntype"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","cpntype")}, {name:"CPNTYPE", value:"", select:[{value: "0", option: langs.getText("p113","cpntype_not")}, {value: "1", option: langs.getText("p113","cpntype_stn")}, {value: "2", option: langs.getText("p113","cpntype_pass")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm113_cnipref", title: langs.getText("p113","cnipref"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","cnipref")}, {name:"CNIPREF", value:"", select:[{value: "0", option: langs.getText("p113","cnipref_net")}, {value: "1", option: langs.getText("p113","cnipref_spd")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm113_restno", title: langs.getText("p113","restno"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","restno")}, {name:"RESTNO", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm113_fullcli", title: langs.getText("p113","fullcli"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","fullcli")}, {name:"FULLCLI", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm113_accesscode", title: langs.getText("p113","accesscode"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","accesscode")}, {name:"ACCESSCODE", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm113_emercli1", title: langs.getText("p113","emercli")+" 1", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","emercli")+" 1"}, {name:"EMERCLI1", value:"", textfield:[{max: 16}], message: "", cont: 0}, {label: langs.getText("common","max16digit")}]},
            {key: "pgm113_emercli2", title: langs.getText("p113","emercli")+" 2", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","emercli")+" 2"}, {name:"EMERCLI2", value:"", textfield:[{max: 16}], message: "", cont: 0}, {label: langs.getText("common","max16digit")}]},
            {key: "pgm113_emercli3", title: langs.getText("p113","emercli")+" 3", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","emercli")+" 3"}, {name:"EMERCLI3", value:"", textfield:[{max: 16}], message: "", cont: 0}, {label: langs.getText("common","max16digit")}]},
            {key: "pgm113_emercli4", title: langs.getText("p113","emercli")+" 4", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","emercli")+" 4"}, {name:"EMERCLI4", value:"", textfield:[{max: 16}], message: "", cont: 0}, {label: langs.getText("common","max16digit")}]},
            {key: "pgm113_emercli5", title: langs.getText("p113","emercli")+" 5", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p113","emercli")+" 5"}, {name:"EMERCLI5", value:"", textfield:[{max: 16}], message: "", cont: 0}, {label: langs.getText("common","max16digit")}]},
                        p113_cpnname1,
                        p113_cpnname2,
                        p113_cpnname3,
                        p113_cpnname4,
                        p113_cpnname5,
			p113_clogattrbar,
			p113_clogselfb,
			p113_clogmenub,
			p113_cloggrpb,
                        p113_clogccb,
			p113_clogicmcb,
			p113_clogipatd,
			p113_clearmissed,
                        p113_clogpage,
                        p113_clognorg,
		]}
	]}
);
