if(info.NO_OF_STNS) {
   var range_guide = " (1 - "+info.NO_OF_STNS+")";
	if(info.NO_OF_STNS < 100) {
		var maxInputRange = info.NO_OF_STNS;
	} 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);
}
var lang_source = new Array;
for(var key in g_lang_list) {
   lang_source.push(g_lang_list[key].option);
}
var ID_PWD_len;
if(info.PHASE >= 3.0) {
	ID_PWD_len = 32;
}
else {
	ID_PWD_len = 12;
}
column_config["pgm443"] = [{readOnly: true}, {readOnly: true}, {readOnly: true}, {maxLength:ID_PWD_len, colWidths:100}, {maxLength:ID_PWD_len, colWidths:100}, {}, {maxLength:8, colWidths:100}, {type: 'dropdown', source: nation_source,colWidths:120},{type: 'dropdown', source: lang_source}, {readOnly: true}, {readOnly: true}, {maxLength:21, colWidths:100}];

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm443_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm443_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: "pgm443_id_dno_save_tbl", table: [{label: langs.getText("p443","id_dno_save")}],
														 struct: [{tr:[{label: langs.getText("common","enter_indexrange")+" : "}, {name: "AUTO_SAVE_STSEQ", value: "", textfield: [{max: 7, size: 10}], message: "", cont: 1}, {label: " - ", cont: 1}, {name: "AUTO_SAVE_ENDSEQ", value: "", textfield: [{max: 7, size: 10}], message: "", cont: 1}]},
																	 {tr:[{label: langs.getText("common","start_stanum")+" : "}, {name: "AUTO_SAVE_STNSTART", value: "", textfield: [{max: 8, size: 10}], message: "", cont: 1}]},
																	 {tr:[{label: langs.getText("common","auto_save_pwd")+" : "}, {name: "AUTO_SAVE_PWD", value: "", chk_type: "chk_selectall", chk: 1, cont: 1}]},
																	 {tr:[{btn: langs.getText("p443","btn_idsave"), btn_type: "btn_p443_idsave auth_write"}]}]},
            {key: "pgm443_login_list_tbl", edit_table: [{label: langs.getText("common","index")}, {label: langs.getText("p443","login_reg_num")}, {label: langs.getText("common","dev_type")}, {label: langs.getText("common","id")}, 
                                                   {label: langs.getText("common","passwd")}, {label: langs.getText("common","zone")}, {label: langs.getText("common","desired_num")}, {label: langs.getText("common","nation_code")}, {label: langs.getText("p443","login_langdp")}, {label: langs.getText("p443","login_linked")}, {label: langs.getText("common","info_version")}, {label: langs.getText("common","remark")}],
                                       data_form: [{key: "", tr: [{name: "LOGIN_INDEX", value: "", label: 1}, 
                                                                  {name: "LOGIN_REGNUM", value: "", label: 1}, 
                                                                  {name: "LOGIN_DEVTYPE", value: "", label: 1}, 
                                                                  {name: "LOGIN_ID", value: "", textfield: [{max: ID_PWD_len, size: ID_PWD_len+5}], message: "", label: 1}, 
                                                                  {name: "LOGIN_PWD", value: "", textfield: [{max: ID_PWD_len, size: ID_PWD_len+5}], message: "", label: 1}, 
                                                                  {name: "LOGIN_ZONE", value: "", textfield: [{max: 2, size: 4}], message: "",label: 1},
                                                                  {name: "LOGIN_LOGSTN", value: "", textfield: [{max: 8, size: 8}], message: "",label: 1},
                                                                  {name: "LOGIN_NATION", value: "", select: g_nation_list, message: "", enable_mullang:1, show: 0},
                                                                  {name: "LOGIN_LANGDP", value: "", select: g_lang_list, message: "", enable_mullang:1, show: 0},
																						{name: "LOGIN_LINKED", value: "", label: 1}, 
                                                                  {name: "LOGIN_VER", value: "", label: 1}, 
                                                                  {name: "LOGIN_CMT", value: "", textfield: [{max: 21, size: 21}], message: "", label: 1,enable_mullang: 1}]}],
                                   variable_data: [{}]}
        ]}
    ]}
);
