if(info.NO_OF_STNS) {
	if(info.NO_OF_STNS < 100) {
		var maxInputRange = info.NO_OF_STNS;
	} else {
		var maxInputRange = "100";
	}
}

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm1241_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm1241_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()+"<br><br>"+langs.getText("toolTip","maxinputrange")+" - "+maxInputRange}, {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: "pgm1241_mktbl", table:[{label: langs.getText("common","sta_num"), sort: "stanum"}, {label: langs.getText("common","type")},{label: langs.getText("common","macaddr")}, {label: langs.getText("common","ipaddr")}, {label: langs.getText("common","router_ipaddr")} /* , {label: langs.getText("common","sta_type")} */ , {label: langs.getText("common","mode")}, {label: "ARP"}, {label: langs.getText("common","register")}, {label: langs.getText("common","codec")} /* , {label: langs.getText("p1241","slace_sta_num")} */ ], 
                               data_form:[{key: "", tr: [{name:"LINK_STNNUM", value:"", label: 1}, 
										 {name:"LINK_STNTYPE",value:"", label: 1}, 
                                                        {name:"LINK_MAC", value:"", textfield: [{max: 12, size: 12}], message: "", cont: 0}, 
                                                        {name:"LINK_IP", value:"", textfield: [{max: 15, size: 15}], message: "", cont: 0},  
                                                        {name:"LINK_ROUTER", value:"", textfield: [{max: 15, size: 15}], message: "", cont: 0}, 
                                                        /* {name:"LINK_TYPE", value:"", select: [{value: "0", option: langs.getText("p1241","opt_sta_type_nodefine")}, {value: "1", option: langs.getText("common","ipktu")}, {value: "2", option: langs.getText("common","slt")}, {value: "3", option: "WIT"}, {value: "4", option: langs.getText("p1241","opt_sta_type_virphone")}, {value: "5", option: "DKTU"}, {value: "6", option: langs.getText("common","dect")}], message: "", cont: 0}, */
                                                        {name:"LINK_MODE", value:"", label: 1},
                                                        {name:"LINK_DIRECT", value:"", select: [{value: "0", option: langs.getText("common","opt_on")}, {value: "1", option: langs.getText("common","opt_off")}], message: "", cont: 0},
                                                        {name:"LINK_LOCAL", value:"", select: [{value: "0", option: langs.getText("common","unicast")}, {value: "1", option: langs.getText("common","multicast")}], message: "", cont: 0},
                                                        {name:"LINK_CODEC", value:"", select: [{value: "0", option: "G.711"}, {value: "1", option: "G.723.1"}, {value: "2", option: "G.729"}, {value: "3", option: langs.getText("common","system")}], message: "", cont: 0},
                                                        /* {name:"LINK_SLAVESTN", value:"", textfield: [{max: 8, size: 6}], message: "", cont: 0} */ ]}],
                           variable_data:[{}]}
        ]}
    ]}
);
