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 = "";
}

var nation_source = new Array;
for(var key in g_nation_list) {
   nation_source.push(g_nation_list[key].option);
}
column_config["pgm442"] = [{readOnly: true}, {maxLength:12, colWidths:100}, {maxLength:12, colWidths:100}, {}, {type: 'dropdown', source: nation_source, colWidths:120}, {maxLength:21, colWidths:150}];

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: "", default_range: getDefaultRange(range_guide, maxInputRange), 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", edit_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: "", label: 1}, 
																			{name: "LOGIN_PWD", value: "", textfield: [{max: 12, size: 12}], message: "", label: 1}, 
																			{name: "LOGIN_ZONE", value: "", textfield: [{max: 2, size: 4}], message: "", label: 1},
																			{name: "LOGIN_NATION", value: "", select:g_nation_list, message: "", enable_mullang:1, show: 0},
																			{name: "LOGIN_CMT", value: "", textfield: [{max: 21, size: 21}], message: "", label: 1,enable_mullang:1}]}],
								  variable_data: [{}]}
        ]}
    ]}
);
