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

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm442_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm442_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: "pgm442_mktbl", table: [{label: langs.getText("common","index")}, {label: langs.getText("common","macaddr")}, {label: langs.getText("common","passwd")}, {label: langs.getText("common","zone")}, {label: langs.getText("common","nation_code")}, {label: langs.getText("common","remark")}],
										data_form: [{key: "", tr: [{name: "LOGIN_INDEX", value: "", label: 1}, {name: "LOGIN_MAC", value: "", textfield: [{max: 12, size: 12}], message: "", cont: 0}, {name: "LOGIN_PWD", value: "", textfield: [{max: 12, size: 12}], message: "", cont: 0}, {name: "LOGIN_ZONE", value: "", textfield: [{max: 2, size: 4}], message: "", cont: 0},
																			{name: "LOGIN_NATION", value: "", select:g_nation_list, message: "", cont: 0},
																			{name: "LOGIN_CMT", value: "", textfield: [{max: 21, size: 21}], message: "", cont: 0}]}],
								  variable_data: []}
        ]}
    ]}
);
