if(!offline_mode) {
	var btn_rstoosdevice = {btn: langs.getText("p502","btn_p502_rstoosdevice"), btn_type: "btn_p502_rstoosdevice auth_write"};
} else {
	var btn_rstoosdevice = {};
}

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm502_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}, btn_rstoosdevice]},
			{key: "pgm502_status", title: langs.getText("common","status"), contents:[{text: langs.getText("common","status")+" : "}, {name:"STATUS", value:"", text: 1}]},
            {key: "pgm502_mktbl", table: [{label: langs.getText("common","attr")}, {label: langs.getText("common","val")}, {label: langs.getText("common","remark")}]},
            {key: "pgm502_cpuredun", tr:[{label: langs.getText("p502","cpuredun")}, {name: "CPUREDUN", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm502_chgact", tr:[{label: langs.getText("p502","chgact")}, {name: "CHGACT", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm502_geographic", tr:[{label: langs.getText("p502","geographic")}, {name: "GEOGRAPHIC", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]}
		]}
	]}
);
