if (info.SYSTEM_ID == "iPECS eMG80" || info.SYSTEM_ID == "iPECS eMG80")
{
	var v_ipwatch = {};
	var v_cabinet = {};
}
else
{
	var v_ipwatch = {key: "pgm163_ipwatch_alarm", title: langs.getText("p163","ipwatch_alarm"), tr: [{order: 1}, {label: langs.getText("p163","ipwatch_alarm")}, {name: "IPWATCH_ALARM", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]};
	var v_cabinet = {key: "pgm163_cabinetfault_alarm", title: langs.getText("p163","cabinetfault_alarm"), tr: [{order: 1}, {label: langs.getText("p163","cabinetfault_alarm")}, {name: "CABINETFAULT_ALARM", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]};
}
if(info.HOTEL) {
	var v_hotel = {key: "pgm163_barfull_alarm", title: langs.getText("p163","barfull_alarm"), tr: [{order: 1}, {label: langs.getText("p163","barfull_alarm")}, {name: "BARFULL_ALARM", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]};
} else {
	var v_hotel = {};
}

if(info.PHASE>=2)
{
	v_stafull = {key: "pgm163_stafull_alarm", title: langs.getText("p163","stafull_alarm"), tr: [{order: 1}, {label: langs.getText("p163","stafull_alarm")}, {name: "STAFULL_ALARM", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]};
	v_cofull = {key: "pgm163_cofull_alarm", title: langs.getText("p163","cofull_alarm"), tr: [{order: 1}, {label: langs.getText("p163","cofull_alarm")}, {name: "COFULL_ALARM", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]};
	v_smdrfull = {key: "pgm163_smdrfull_alarm", title: langs.getText("p163","smdrfull_alarm"), tr: [{order: 1}, {label: langs.getText("p163","smdrfull_alarm")}, {name: "SMDRFULL_ALARM", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]};
	v_vmfull = {key: "pgm163_vmfull_alarm", title: langs.getText("p163","vmfull_alarm"), tr: [{order: 1}, {label: langs.getText("p163","vmfull_alarm")}, {name: "VMFULL_ALARM", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]};
	v_wtimb = {key: "pgm163_wtimbasefault_alarm", title: langs.getText("p163","wtimbasefault_alarm"), tr: [{order: 1}, {label: langs.getText("p163","wtimbasefault_alarm")}, {name: "WTIMBASEFAULT_ALARM", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]};
	v_wtimc = {key: "pgm163_wtimchainfault_alarm", title: langs.getText("p163","wtimchainfault_alarm"), tr: [{order: 1}, {label: langs.getText("p163","wtimchainfault_alarm")}, {name: "WTIMCHAINFAULT_ALARM", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]};
	v_ismdrfull = {key: "pgm163_ismdr_full_alarm", title: langs.getText("p163","ismdr_full_alarm"), tr: [{order: 1}, {label: langs.getText("p163","ismdr_full_alarm")}, {name: "ISMDR_FULL_ALARM", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]};
	v_ipcr = {key: "pgm163_ipcrfault_alarm", title: langs.getText("p163","ipcrfault_alarm"), tr: [{order: 1}, {label: langs.getText("p163","ipcrfault_alarm")}, {name: "IPCRFAULT_ALARM", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]};
	v_bath = {key: "pgm163_ebath_alarm", title: langs.getText("p163","ebath_alarm"), tr: [{order: 1}, {label: langs.getText("p163","ebath_alarm")}, {name: "EBATH_ALARM", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]};
	v_licex = {key: "pgm163_licexpire_alarm", title: langs.getText("p163","licexpire_alarm"), tr: [{order: 1}, {label: langs.getText("p163","licexpire_alarm")}, {name: "LICEXPIRE_ALARM", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]};
	v_licov = {key: "pgm163_licover_alarm", title: langs.getText("p163","licover_alarm"), tr: [{order: 1}, {label: langs.getText("p163","licover_alarm")}, {name: "LICOVER_ALARM", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]};
	v_tnetlcm = {key: "pgm163_tnetlcm_alarm", title: langs.getText("p163","tnetlcm_alarm"), tr: [{order: 1}, {label: langs.getText("p163","tnetlcm_alarm")}, {name: "TNETLCM_ALARM", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]};
	v_tapi = {key: "pgm163_tapidisc_alarm", title: langs.getText("p163","tapidisc_alarm"), tr: [{order: 1}, {label: langs.getText("p163","tapidisc_alarm")}, {name: "TAPIDISC_ALARM", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]};	
}
else
{
	v_stafull = {};
	v_cofull = {};
	v_smdrfull= {};
	v_vmfull = {};
	v_wtimb = {};
	v_wtimc = {};
	v_ismdrfull = {};
	v_ipcr = {};
	v_bath = {};
	v_licex = {};
	v_licov = {};
	v_tnetlcm = {};
	v_tapi = {};
	v_ipwatch = {};
	v_cabinet = {};
	v_hotel = {};
}
define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm163_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm163_mktbl", title: langs.getText("common","mktbl"), table: [{label: langs.getText("common","order"), sort: "num"}, {label: langs.getText("common","attr")}, {label: langs.getText("common","val")}]},
			{key: "pgm163_alm_enable", title: langs.getText("common","alm_enable"), tr: [{order: 1}, {label: langs.getText("common","alm_enable")}, {name: "ALM_ENABLE", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]},
			{key: "pgm163_alm_ctype", title: langs.getText("common","alm_ctype"), tr: [{order: 1}, {label: langs.getText("common","alm_ctype")}, {name: "ALM_CTYPE", value: "", select: [{value: "0", option: langs.getText("common","open")}, {value: "1", option: langs.getText("common","opt_alm_ctype_close")}], message: "", cont: 0}]},
			{key: "pgm163_alm_mode", title: langs.getText("common","alm_mode"), tr: [{order: 1}, {label: langs.getText("common","alm_mode")}, {name: "ALM_MODE", value: "", select: [{value: "0", option: langs.getText("common","doorbell")}, {value: "1", option: langs.getText("common","opt_almmode")}], message: "", cont: 0}]},
			{key: "pgm163_alm_sigmode", title: langs.getText("common","alm_sigmode"), tr: [{order: 1}, {label: langs.getText("common","alm_sigmode")}, {name: "ALM_SIGMODE", value: "", select: [{value: "0", option: langs.getText("common","once")}, {value: "1", option: langs.getText("common","repeat")}], message: "", cont: 0}]},
			{key: "pgm163_e911_use", title: langs.getText("p163","e911_use"), tr: [{order: 1}, {label: langs.getText("p163","e911_use")}, {name: "E911_USE", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]},
			{key: "pgm163_dcob_use", title: langs.getText("p163","dcob_use"), tr: [{order: 1}, {label: langs.getText("p163","dcob_use")}, {name: "DCOB_USE", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]},
			{key: "pgm163_sip_use", title: langs.getText("p163","sip_use"), tr: [{order: 1}, {label: langs.getText("p163","sip_use")}, {name: "SIP_USE", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]},
			v_stafull,
			v_cofull,
			v_smdrfull,
			v_vmfull,
			v_wtimb,
			v_wtimc,
			v_ismdrfull,
			v_cabinet,
			v_hotel,
			v_ipcr,
			v_ipwatch,
			v_bath,
			{key: "pgm163_templcs_use", title: langs.getText("p163","templcs_use"), tr: [{order: 1}, {label: langs.getText("p163","templcs_use")}, {name: "TEMPLCS_USE", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]},
			v_licex,
			v_licov,
			v_tnetlcm,
			v_tapi			
		]}
	]}
);
