var v_1 = [{label: langs.getText("common","order"), sort: "num"}, {label: langs.getText("common","simple_seq")}, {label: langs.getText("common","log_no"), sort: "stanum"}, {label: langs.getText("common","dev_type")}, 
			  {label: langs.getText("p101","dev_reset")}, {label: langs.getText("p101","dev_delete")}, {label: langs.getText("common","max_port")}, {label: langs.getText("p101","dev_curportno")}, 
			  {label: langs.getText("p101","dev_newportno")}];
var v_2 = {key: "", tr: [{name:"DEV_SLOTTYPE", value:"", slot_type: 1}, 
						{name:"DEV_INDEX", value:"", label: 1}, 
						{name:"DEV_SEQ", value:"", label: 1}, 
						{name:"DEV_LOGORDER", value:"", label: 1}, 
						{name:"DEV_TYPE", value:"", label: 1}, 
						{name:"DEV_RESET", value: "", chk_type: "chk_selectall", chk: 1},
						{name:"DEV_DELETE", value: "", chk_type: "chk_selectall", chk: 1},
						{name:"DEV_MAXPORTNO", value:"", label: 1}, 
						{name:"DEV_CURPORTNO", value:"", label: 1}, 
						{name:"DEV_NEWPORTNO", value: "", textfield: [{max: 3, size: 3}], message: "", cont: 0}]};
if(info.SYSTEM_ID == "iPECS eMG80") {
	var btn_ipreg = {btn: langs.getText("p101","btn_reg")+" ("+langs.getText("p101","ip_dev")+")", btn_type: "btn_overview btn_p101_ipreg auth_write"};
	var btn_tdmreg = {/*btn: langs.getText("p101","btn_reg")+" ("+langs.getText("p101","tdm_dev")+")", btn_type: "btn_overview btn_p101_tdmreg auth_write"*/};
} else {
	var btn_ipreg = {btn: langs.getText("p101","btn_reg"), btn_type: "btn_overview btn_p101_reg auth_write"};
	var btn_tdmreg = {};
}


define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm101_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}, btn_ipreg, btn_tdmreg]},
            {key: "pgm101_mktbl", table: v_1, 
                              data_form: [v_2],
                          variable_data: []}
        ]}
    ]}
);
