if(info.NO_OF_SLOTS) {
    var range_guide = " (1 - "+info.NO_OF_SLOTS+")";
} else {
    var range_guide = "";
}

if (info.PHASE>=3.0){
	p131_sel = [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}, {value: "2", option: langs.getText("p131","t1_r2rxonly")}, {value: "3", option: langs.getText("p131","t1_r2txonly")}];
} else {
	p131_sel = [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}];
}
	
define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm131_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm131_preload", preload: [{name: "RANGE_TYPE_1", range_type: 2}, {text: langs.getText("common","enter_devnum")+range_guide+" : "}, {name: "RANGE_1_0", value: "", textfield: [{size: 5, max: 4}], message: ""}, {btn: langs.getText("common","load"), btn_type: "btn_load"}, langs.Range_Error_Table(), {endload: 1}, {br: 2}, {text: langs.getText("common","dev_num")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
            {key: "pgm131_mktbl", title: langs.getText("common","mktbl"), table: [{label: langs.getText("common","order"), sort: "num"}, {label: langs.getText("common","attr")}, {label: langs.getText("common","val")}]},
            {key: "pgm131_t1_setup", title: langs.getText("p131","t1_setup"), tr: [{order: 1}, {label: langs.getText("p131","t1_setup")}, {name:"T1_SETUP", value:"", select:[{value: "0", option: "D4"}, {value: "1", option: "ESF"}], message: "", cont: 0}]},
            {key: "pgm131_t1_line", title: langs.getText("p131","t1_line"), tr: [{order: 1}, {label: langs.getText("p131","t1_line")}, {name:"T1_LINE", value:"", select:[{value: "0", option: "B8ZS"}, {value: "1", option: "AMI"}], message: "", cont: 0}]},
            {key: "pgm131_t1_prilinemode", title: langs.getText("p131","t1_prilinemode"), tr: [{order: 1}, {label: langs.getText("p131","t1_prilinemode")}, {name:"T1_PRILINEMODE", value:"", select:[{value: "0", option: "NT"}, {value: "1", option: "TE"}], message: "", cont: 0}]},
            {key: "pgm131_t1_crccheck", title: langs.getText("p131","t1_crccheck"), tr: [{order: 1}, {label: langs.getText("p131","t1_crccheck")}, {name:"T1_CRCCHECK", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]},
            {key: "pgm131_t1_r2dspcheck", title: langs.getText("p131","t1_r2dspcheck"), tr: [{order: 1}, {label: langs.getText("p131","t1_r2dspcheck")}, {name:"T1_R2DSPCHECK", value:"", select: p131_sel, message: "", cont: 0}]},
            {key: "pgm131_t1_dcopx", title: langs.getText("p131","t1_dcopx"), tr: [{order: 1}, {label: langs.getText("p131","t1_dcopx")}, {name:"T1_DCOPX", value:"", select:[{value: "0", option: "S1240"}, {value: "1", option: "TDX1B"}, {value: "2", option: langs.getText("common","opt_standard")}, {value: "3", option: "CONGES_DIS"}], message: "", cont: 0}]},
                        {key: "pgm131_t1_nametype", title: langs.getText("p131","t1_nametype"), tr: [{order: 1}, {label: langs.getText("p131","t1_nametype")}, {name:"T1_NAMETYPE", value:"", select:[{value: "0", option: "Facility message"}, {value: "1", option: "Display message"},{value: "2", option: "OFF"}], message: "", cont: 0}]}       
		]}
	]}
);
