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

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm2271_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm2271_preload", preload: [{name: "RANGE_TYPE_1", range_type: 2}, {text: langs.getText("p2271","enter_sysindexrange")+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("p2271","sysindex_range")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
            {key: "pgm2271_mktbl_multiplechange", table: [{label: langs.getText("p2271","title_chcos"), colspan: 3}],
																					  struct: [{tr:[{name: "CHECKLIST", value: "0", radio: [{value: "1"}]}, {label: langs.getText("p2271","enter_sysindexrange")+" : "}, {name:"SYS_COSSTART", value: "", textfield: [{max: 4, size: 8}], message: "", cont: 1}, {label: " - ", cont: 1}, {name:"SYS_COSEND", value: "", textfield: [{max: 4, size: 8}], message: "", cont: 1}, {label: langs.getText("common","daytime")+" "}, {name:"SYS_CHCOSDAY", value:"", select:[{value: "1", option: "1"}, {value: "2", option: "2"}, {value: "3", option: "3"}, {value: "4", option: "4"}, {value: "5", option: "5"}, {value: "6", option: "6"}, {value: "7", option: "7"}, {value: "8", option: "8"}, {value: "9", option: "9"}, {value: "10", option: "10"}, {value: "11", option: "11"}], message: "", cont: 1},
																																																																																																																																			  {label: langs.getText("common","nighttime")+" ", cont: 1}, {name:"SYS_CHCOSNTRING", value:"", select:[{value: "1", option: "1"}, {value: "2", option: "2"}, {value: "3", option: "3"}, {value: "4", option: "4"}, {value: "5", option: "5"}, {value: "6", option: "6"}, {value: "7", option: "7"}, {value: "8", option: "8"}, {value: "9", option: "9"}, {value: "10", option: "10"}, {value: "11", option: "11"}], message: "", cont: 1},
																																																																																																																																			  {label: langs.getText("common","timed_ring")+" ", cont: 1}, {name:"SYS_CHCOSTIMED", value:"", select:[{value: "1", option: "1"}, {value: "2", option: "2"}, {value: "3", option: "3"}, {value: "4", option: "4"}, {value: "5", option: "5"}, {value: "6", option: "6"}, {value: "7", option: "7"}, {value: "8", option: "8"}, {value: "9", option: "9"}, {value: "10", option: "10"}, {value: "11", option: "11"}], message: "", cont: 1}]},
																								  //{tr:[{name: "CHECKLIST", radio: [{value: "2"}]}, {label: langs.getText("p2271","enter_sysindexrange")+" : "}, , {name:"SYS_REMARKSTART", value: "", textfield: [{max: 4, size: 8}], message: "", cont: 1}, {label: " - ", cont: 1}, {name:"SYS_REMARKEND", value: "", textfield: [{max: 4, size: 8}], message: "", cont: 1}, {label: langs.getText("common","remark")+" : "}, {name:"SYS_CHREMARK", value: "", textfield: [{max: 20, size: 20}], message: "", enable_mullang: 1, cont: 1}]},
																								  {tr:[{btn: langs.getText("common","btn_rangesave"), btn_type: "btn_p2271_rangesave auth_write", colspan: 3}]}]},
            {key: "pgm2271_mktbl", table:[{label: langs.getText("common","index")}, {label: langs.getText("common","authcode")}, {label: langs.getText("common","cos"), colspan: 3}, {label: langs.getText("common","remark")}], 
                               data_form:[{key: "", tr: [{name:"ADM2271_INDEX", value:"", label: 1}, 
                                                         {name:"ADM2271_AUTH", value:"", textfield: [{max: 12, size: 15}], message: "", cont: 0},
                                                         {label: langs.getText("common","daytime")+" "}, {name:"ADM2271_DAY", value:"", select:[{value: "1", option: "1"}, {value: "2", option: "2"}, {value: "3", option: "3"}, {value: "4", option: "4"}, {value: "5", option: "5"},
                                                                                                                                                {value: "6", option: "6"}, {value: "7", option: "7"}, {value: "8", option: "8"}, {value: "9", option: "9"}, {value: "10", option: "10"},
                                                                                                                                                {value: "11", option: "11"}], message: "", cont: 1},
                                                         {label: langs.getText("common","nighttime")+" "}, {name:"ADM2271_NTRING", value:"", select:[{value: "1", option: "1"}, {value: "2", option: "2"}, {value: "3", option: "3"}, {value: "4", option: "4"}, {value: "5", option: "5"},
                                                                                                                                                     {value: "6", option: "6"}, {value: "7", option: "7"}, {value: "8", option: "8"}, {value: "9", option: "9"}, {value: "10", option: "10"},
                                                                                                                                                     {value: "11", option: "11"}], message: "", cont: 1},
                                                         {label: langs.getText("common","timed_ring")+" "}, {name:"ADM2271_TIMED", value:"", select:[{value: "1", option: "1"}, {value: "2", option: "2"}, {value: "3", option: "3"}, {value: "4", option: "4"}, {value: "5", option: "5"},
                                                                                                                                                     {value: "6", option: "6"}, {value: "7", option: "7"}, {value: "8", option: "8"}, {value: "9", option: "9"}, {value: "10", option: "10"},
                                                                                                                                                     {value: "11", option: "11"}], message: "", cont: 1},
                                                         {name:"ADM2271_REMARK", value:"", textfield: [{max: 20, size: 20}], message: "", enable_mullang: 1}]}],
                           variable_data:[]}
        ]}
    ]}
);
