if(info.SYS_SPD_RANGE) {
   var range_guide = " ("+info.SYS_SPD_RANGE+")";
	if(info.SYS_SPD_RANGE < 100) {
		var maxInputRange = info.SYS_SPD_RANGE;
	} else {
		var maxInputRange = "100";
	}
} else {
   var range_guide = "";
}

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm262_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm262_preload", preload: [{name: "RANGE_TYPE_1", range_type: 2}, {text: langs.getText("common","enter_indexrange")+range_guide+" : "}, {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","index_range")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
            {key: "pgm262_mktbl", table:[{label: langs.getText("common","index")}, {label: langs.getText("common","co_type")}, {label: langs.getText("common","coval")}, {label: langs.getText("common","dial_digit")}, {label: langs.getText("common","name")}], 
										data_form:[{key: "", tr: [{name:"SYSSPD_INDEX", value:"", label: 1}, 
																		  {name:"SYSSPD_COTYPE", value:"", select: [{value: "0", option: langs.getText("common","not_assigned")}, {value: "1", option: langs.getText("common","co_line")}, {value: "2", option: langs.getText("common","cog")}, {value: "3", option: langs.getText("common","loop")}, {value: "4", option: langs.getText("common","transit_out")}], message: "", cont: 0}, 
																		  {name:"SYSSPD_COVAL", value:"", textfield: [{max: 8, size: 5}], message: "", cont: 0},  
																		  {name:"SYSSPD_VALUE", value:"", textfield: [{max: 23}], message: "", cont: 0}, 
																		  {name:"SYSSPD_NAME", value:"", textfield: [{max: 16}], message: "", enable_mullang: 1}]}],
								  variable_data:[]}
        ]}
    ]}
);
