if(info.PHASE>=3.5)
{
	if (info.SYSTEM_ID == "iPECS eMG100") {
		var ext_almtp_wtimb_label = {};
		var ext_almtp_wtimc_label = {};
		var ext1_almtp_wtimb_chk = {};
		var ext1_almtp_wtimc_chk = {};
		var ext2_almtp_wtimb_chk = {};
		var ext2_almtp_wtimc_chk = {};
		var ext3_almtp_wtimb_chk = {};
		var ext3_almtp_wtimc_chk = {};
		var ext4_almtp_wtimb_chk = {};
		var ext4_almtp_wtimc_chk = {};
	} else {
		var ext_almtp_wtimb_label = {label: langs.getText("p163","almtp_wtimb"), cont: 1};
		var ext_almtp_wtimc_label = {label: langs.getText("p163","almtp_wtimc"), cont: 1};
		var ext1_almtp_wtimb_chk = {name:"EXT1_ALMTP_10", value: "", chk_type: "chk_selectall", chk: 1, cont: 1};
		var ext1_almtp_wtimc_chk = {name:"EXT1_ALMTP_11", value: "", chk_type: "chk_selectall", chk: 1, cont: 1};
		var ext2_almtp_wtimb_chk = {name:"EXT2_ALMTP_10", value: "", chk_type: "chk_selectall", chk: 1, cont: 1};
		var ext2_almtp_wtimc_chk = {name:"EXT2_ALMTP_11", value: "", chk_type: "chk_selectall", chk: 1, cont: 1};
		var ext3_almtp_wtimb_chk = {name:"EXT3_ALMTP_10", value: "", chk_type: "chk_selectall", chk: 1, cont: 1};
		var ext3_almtp_wtimc_chk = {name:"EXT3_ALMTP_11", value: "", chk_type: "chk_selectall", chk: 1, cont: 1};
		var ext4_almtp_wtimb_chk = {name:"EXT4_ALMTP_10", value: "", chk_type: "chk_selectall", chk: 1, cont: 1};
		var ext4_almtp_wtimc_chk = {name:"EXT4_ALMTP_11", value: "", chk_type: "chk_selectall", chk: 1, cont: 1};
	}

   if(info.SYSTEM_ID == "UCP100") {
      var v_1 = {};
      var v_2 = {};
      var v_3 = {};
   } else {
      var v_1 = {key: "pgm168_ext_dest_2", struct: [{tr: [{label: langs.getText("common","second"), rowspan: 6}, {name: "EXT_DEST_2", radio: [{value: "0"}]}, {label: langs.getText("common","unused"), cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", radio: [{value: "1"}]}, {label: langs.getText("common","lbc")+" ", cont: 1}, {name:"EXT_LBCVALUE_2", value: "", textfield: [{}], message: "", cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", radio: [{value: "2"}]}, {label: langs.getText("common","dooropen"), cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", radio: [{value: "3"}]}, {label: langs.getText("common","extcontdev")+" 1", cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", value: "", radio: [{value: "4"}]}, {label: langs.getText("common","extcontdev")+" 2", cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", value: "", radio: [{value: "5"}]}, {label: langs.getText("p168","alarm"), cont: 1}
							 , {br: 1, cont: 1}, {label: "< "+langs.getText("p168","ctrl_for")+" >", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_0", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 0   ", cont: 1}, {name:"EXT2_ALMTP_1", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 1", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_2", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_emer"), cont: 1}, {name:"EXT2_ALMTP_3", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bath"), cont: 1}, {name:"EXT2_ALMTP_4", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_dco"), cont: 1}, {name:"EXT2_ALMTP_5", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sip"), cont: 1}, {name:"EXT2_ALMTP_6", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sta"), cont: 1}, {name:"EXT2_ALMTP_7", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_co"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_8", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_smdr"), cont: 1}, {name:"EXT2_ALMTP_9", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_vm"), cont: 1}, ext2_almtp_wtimb_chk,ext_almtp_wtimb_label, ext2_almtp_wtimc_chk,ext_almtp_wtimc_label, {name:"EXT2_ALMTP_12", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ismdr"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_13", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_cabinet"), cont: 1}, {name:"EXT2_ALMTP_14", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bar"), cont: 1}, {name:"EXT2_ALMTP_15", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipcr"), cont: 1}, {name:"EXT2_ALMTP_16", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipwatch"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_17", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_templic"), cont: 1}, {name:"EXT2_ALMTP_18", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_mntlic"), cont: 1}, {name:"EXT2_ALMTP_19", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_regover"), cont: 1}, {name:"EXT2_ALMTP_20", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tnetlic"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_21", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tapi"), cont: 1}, {name:"EXT2_ALMTP_22", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_pms"), cont: 1}
                                                         , {name:"EXT2_ALMTP_23", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ucs"), cont: 1}, {name:"EXT2_ALMTP_24", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_push"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_25", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_slvact"), cont: 1},{name:"EXT2_ALMTP_26", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_restsmdr"), cont: 1}]}]};
      if(info.SYSTEM_ID == "iPECS eMG80" || info.SYSTEM_ID == "iPECS eMG800") {
          var v_2 = {};
          var v_3 = {};
      } else {
          var v_2 = {key: "pgm168_ext_dest_3", struct: [{tr: [{label: langs.getText("common","third"), rowspan: 6}, {name: "EXT_DEST_3", radio: [{value: "0"}]}, {label: langs.getText("common","unused"), cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", radio: [{value: "1"}]}, {label: langs.getText("common","lbc")+" ", cont: 1}, {name:"EXT_LBCVALUE_3", value: "", textfield: [{}], message: "", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", radio: [{value: "2"}]}, {label: langs.getText("common","dooropen"), cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", radio: [{value: "3"}]}, {label: langs.getText("common","extcontdev")+" 1", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", value: "", radio: [{value: "4"}]}, {label: langs.getText("common","extcontdev")+" 2", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", value: "", radio: [{value: "5"}]}, {label: langs.getText("p168","alarm"), cont: 1}
							 , {br: 1, cont: 1}, {label: "< "+langs.getText("p168","ctrl_for")+" >", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_0", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 0   ", cont: 1}, {name:"EXT3_ALMTP_1", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 1", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_2", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_emer"), cont: 1}, {name:"EXT3_ALMTP_3", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bath"), cont: 1}, {name:"EXT3_ALMTP_4", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_dco"), cont: 1}, {name:"EXT3_ALMTP_5", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sip"), cont: 1}, {name:"EXT3_ALMTP_6", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sta"), cont: 1}, {name:"EXT3_ALMTP_7", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_co"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_8", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_smdr"), cont: 1}, {name:"EXT3_ALMTP_9", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_vm"), cont: 1}, ext3_almtp_wtimb_chk,ext_almtp_wtimb_label, ext3_almtp_wtimc_chk,ext_almtp_wtimc_label, {name:"EXT3_ALMTP_12", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ismdr"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_13", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_cabinet"), cont: 1}, {name:"EXT3_ALMTP_14", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bar"), cont: 1}, {name:"EXT3_ALMTP_15", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipcr"), cont: 1}, {name:"EXT3_ALMTP_16", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipwatch"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_17", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_templic"), cont: 1}, {name:"EXT3_ALMTP_18", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_mntlic"), cont: 1}, {name:"EXT3_ALMTP_19", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_regover"), cont: 1}, {name:"EXT3_ALMTP_20", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tnetlic"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_21", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tapi"), cont: 1}, {name:"EXT3_ALMTP_22", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_pms"), cont: 1}
                                                         , {name:"EXT3_ALMTP_23", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ucs"), cont: 1}, {name:"EXT3_ALMTP_24", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_push"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_25", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_slvact"), cont: 1}, {name:"EXT3_ALMTP_26", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_restsmdr"), cont: 1}]}]};
          var v_3 = {key: "pgm168_ext_dest_4", struct: [{tr: [{label: langs.getText("common","fourth"), rowspan: 6}, {name: "EXT_DEST_4", radio: [{value: "0"}]}, {label: langs.getText("common","unused"), cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", radio: [{value: "1"}]}, {label: langs.getText("common","lbc")+" ", cont: 1}, {name:"EXT_LBCVALUE_4", value: "", textfield: [{}], message: "", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", radio: [{value: "2"}]}, {label: langs.getText("common","dooropen"), cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", radio: [{value: "3"}]}, {label: langs.getText("common","extcontdev")+" 1", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", value: "", radio: [{value: "4"}]}, {label: langs.getText("common","extcontdev")+" 2", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", value: "", radio: [{value: "5"}]}, {label: langs.getText("p168","alarm"), cont: 1}
							 , {br: 1, cont: 1}, {label: "< "+langs.getText("p168","ctrl_for")+" >", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_0", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 0   ", cont: 1}, {name:"EXT4_ALMTP_1", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 1", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_2", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_emer"), cont: 1}, {name:"EXT4_ALMTP_3", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bath"), cont: 1}, {name:"EXT4_ALMTP_4", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_dco"), cont: 1}, {name:"EXT4_ALMTP_5", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sip"), cont: 1}, {name:"EXT4_ALMTP_6", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sta"), cont: 1}, {name:"EXT4_ALMTP_7", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_co"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_8", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_smdr"), cont: 1}, {name:"EXT4_ALMTP_9", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_vm"), cont: 1}, ext4_almtp_wtimb_chk,ext_almtp_wtimb_label, ext4_almtp_wtimc_chk,ext_almtp_wtimc_label, {name:"EXT4_ALMTP_12", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ismdr"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_13", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_cabinet"), cont: 1}, {name:"EXT4_ALMTP_14", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bar"), cont: 1}, {name:"EXT4_ALMTP_15", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipcr"), cont: 1}, {name:"EXT4_ALMTP_16", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipwatch"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_17", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_templic"), cont: 1}, {name:"EXT4_ALMTP_18", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_mntlic"), cont: 1}, {name:"EXT4_ALMTP_19", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_regover"), cont: 1}, {name:"EXT4_ALMTP_20", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tnetlic"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_21", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tapi"), cont: 1}, {name:"EXT4_ALMTP_22", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_pms"), cont: 1}
                                                         , {name:"EXT4_ALMTP_23", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ucs"), cont: 1}, {name:"EXT4_ALMTP_24", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_push"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_25", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_slvact"), cont: 1}, {name:"EXT4_ALMTP_26", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_restsmdr"), cont: 1}]}]};
      }
  }

  define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm168_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm168_mktbl", table: [{label: langs.getText("common","extcont_contact")}, {label: langs.getText("common","val")}]},
            {key: "pgm168_ext_dest_1", struct: [{tr: [{label: langs.getText("common","first"), rowspan: 6}, {name: "EXT_DEST_1", radio: [{value: "0"}]}, {label: langs.getText("common","unused"), cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", radio: [{value: "1"}]}, {label: langs.getText("common","lbc")+" ", cont: 1}, {name:"EXT_LBCVALUE_1", value: "", textfield: [{}], message: "", cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", radio: [{value: "2"}]}, {label: langs.getText("common","dooropen"), cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", radio: [{value: "3"}]}, {label: langs.getText("common","extcontdev")+" 1", cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", value: "", radio: [{value: "4"}]}, {label: langs.getText("common","extcontdev")+" 2", cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", value: "", radio: [{value: "5"}]}, {label: langs.getText("p168","alarm"), cont: 1}
							 , {br: 1, cont: 1}, {label: "< "+langs.getText("p168","ctrl_for")+" >", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_0", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 0   ", cont: 1}, {name:"EXT1_ALMTP_1", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 1", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_2", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_emer"), cont: 1}, {name:"EXT1_ALMTP_3", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bath"), cont: 1}, {name:"EXT1_ALMTP_4", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_dco"), cont: 1}, {name:"EXT1_ALMTP_5", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sip"), cont: 1}, {name:"EXT1_ALMTP_6", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sta"), cont: 1}, {name:"EXT1_ALMTP_7", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_co"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_8", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_smdr"), cont: 1}, {name:"EXT1_ALMTP_9", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_vm"), cont: 1}, ext1_almtp_wtimb_chk,ext_almtp_wtimb_label, ext1_almtp_wtimc_chk,ext_almtp_wtimc_label, {name:"EXT1_ALMTP_12", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ismdr"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_13", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_cabinet"), cont: 1}, {name:"EXT1_ALMTP_14", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bar"), cont: 1}, {name:"EXT1_ALMTP_15", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipcr"), cont: 1}, {name:"EXT1_ALMTP_16", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipwatch"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_17", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_templic"), cont: 1}, {name:"EXT1_ALMTP_18", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_mntlic"), cont: 1}, {name:"EXT1_ALMTP_19", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_regover"), cont: 1}, {name:"EXT1_ALMTP_20", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tnetlic"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_21", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tapi"), cont: 1}, {name:"EXT1_ALMTP_22", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_pms"), cont: 1}
                                                         , {name:"EXT1_ALMTP_23", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ucs"), cont: 1}, {name:"EXT1_ALMTP_24", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_push"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_25", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_slvact"), cont: 1}, {name:"EXT1_ALMTP_26", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_restsmdr"), cont: 1}]}]},
            v_1,
            v_2,
            v_3
		]}
    ]}
  );
}
else if(info.PHASE>=3.1)
{
   if(info.SYSTEM_ID == "UCP100") {
      var v_1 = {};
      var v_2 = {};
      var v_3 = {};
   } else {
      var v_1 = {key: "pgm168_ext_dest_2", struct: [{tr: [{label: langs.getText("common","second"), rowspan: 6}, {name: "EXT_DEST_2", radio: [{value: "0"}]}, {label: langs.getText("common","unused"), cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", radio: [{value: "1"}]}, {label: langs.getText("common","lbc")+" ", cont: 1}, {name:"EXT_LBCVALUE_2", value: "", textfield: [{}], message: "", cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", radio: [{value: "2"}]}, {label: langs.getText("common","dooropen"), cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", radio: [{value: "3"}]}, {label: langs.getText("common","extcontdev")+" 1", cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", value: "", radio: [{value: "4"}]}, {label: langs.getText("common","extcontdev")+" 2", cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", value: "", radio: [{value: "5"}]}, {label: langs.getText("p168","alarm"), cont: 1}
							 , {br: 1, cont: 1}, {label: "< "+langs.getText("p168","ctrl_for")+" >", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_0", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 0   ", cont: 1}, {name:"EXT2_ALMTP_1", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 1", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_2", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_emer"), cont: 1}, {name:"EXT2_ALMTP_3", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bath"), cont: 1}, {name:"EXT2_ALMTP_4", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_dco"), cont: 1}, {name:"EXT2_ALMTP_5", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sip"), cont: 1}, {name:"EXT2_ALMTP_6", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sta"), cont: 1}, {name:"EXT2_ALMTP_7", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_co"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_8", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_smdr"), cont: 1}, {name:"EXT2_ALMTP_9", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_vm"), cont: 1}, {name:"EXT2_ALMTP_10", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_wtimb"), cont: 1}, {name:"EXT2_ALMTP_11", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_wtimc"), cont: 1}, {name:"EXT2_ALMTP_12", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ismdr"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_13", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_cabinet"), cont: 1}, {name:"EXT2_ALMTP_14", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bar"), cont: 1}, {name:"EXT2_ALMTP_15", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipcr"), cont: 1}, {name:"EXT2_ALMTP_16", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipwatch"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_17", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_templic"), cont: 1}, {name:"EXT2_ALMTP_18", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_mntlic"), cont: 1}, {name:"EXT2_ALMTP_19", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_regover"), cont: 1}, {name:"EXT2_ALMTP_20", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tnetlic"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_21", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tapi"), cont: 1}, {name:"EXT2_ALMTP_22", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_pms"), cont: 1}
                                                         , {name:"EXT2_ALMTP_23", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ucs"), cont: 1}, {name:"EXT2_ALMTP_24", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_push"), cont: 1}]}]};
      if(info.SYSTEM_ID == "iPECS eMG80" || info.SYSTEM_ID == "iPECS eMG800") {
          var v_2 = {};
          var v_3 = {};
      } else {
          var v_2 = {key: "pgm168_ext_dest_3", struct: [{tr: [{label: langs.getText("common","third"), rowspan: 6}, {name: "EXT_DEST_3", radio: [{value: "0"}]}, {label: langs.getText("common","unused"), cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", radio: [{value: "1"}]}, {label: langs.getText("common","lbc")+" ", cont: 1}, {name:"EXT_LBCVALUE_3", value: "", textfield: [{}], message: "", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", radio: [{value: "2"}]}, {label: langs.getText("common","dooropen"), cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", radio: [{value: "3"}]}, {label: langs.getText("common","extcontdev")+" 1", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", value: "", radio: [{value: "4"}]}, {label: langs.getText("common","extcontdev")+" 2", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", value: "", radio: [{value: "5"}]}, {label: langs.getText("p168","alarm"), cont: 1}
							 , {br: 1, cont: 1}, {label: "< "+langs.getText("p168","ctrl_for")+" >", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_0", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 0   ", cont: 1}, {name:"EXT3_ALMTP_1", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 1", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_2", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_emer"), cont: 1}, {name:"EXT3_ALMTP_3", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bath"), cont: 1}, {name:"EXT3_ALMTP_4", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_dco"), cont: 1}, {name:"EXT3_ALMTP_5", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sip"), cont: 1}, {name:"EXT3_ALMTP_6", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sta"), cont: 1}, {name:"EXT3_ALMTP_7", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_co"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_8", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_smdr"), cont: 1}, {name:"EXT3_ALMTP_9", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_vm"), cont: 1}, {name:"EXT3_ALMTP_10", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_wtimb"), cont: 1}, {name:"EXT3_ALMTP_11", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_wtimc"), cont: 1}, {name:"EXT3_ALMTP_12", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ismdr"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_13", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_cabinet"), cont: 1}, {name:"EXT3_ALMTP_14", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bar"), cont: 1}, {name:"EXT3_ALMTP_15", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipcr"), cont: 1}, {name:"EXT3_ALMTP_16", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipwatch"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_17", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_templic"), cont: 1}, {name:"EXT3_ALMTP_18", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_mntlic"), cont: 1}, {name:"EXT3_ALMTP_19", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_regover"), cont: 1}, {name:"EXT3_ALMTP_20", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tnetlic"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_21", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tapi"), cont: 1}, {name:"EXT3_ALMTP_22", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_pms"), cont: 1}
                                                         , {name:"EXT3_ALMTP_23", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ucs"), cont: 1}, {name:"EXT3_ALMTP_24", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_push"), cont: 1}]}]};
          var v_3 = {key: "pgm168_ext_dest_4", struct: [{tr: [{label: langs.getText("common","fourth"), rowspan: 6}, {name: "EXT_DEST_4", radio: [{value: "0"}]}, {label: langs.getText("common","unused"), cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", radio: [{value: "1"}]}, {label: langs.getText("common","lbc")+" ", cont: 1}, {name:"EXT_LBCVALUE_4", value: "", textfield: [{}], message: "", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", radio: [{value: "2"}]}, {label: langs.getText("common","dooropen"), cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", radio: [{value: "3"}]}, {label: langs.getText("common","extcontdev")+" 1", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", value: "", radio: [{value: "4"}]}, {label: langs.getText("common","extcontdev")+" 2", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", value: "", radio: [{value: "5"}]}, {label: langs.getText("p168","alarm"), cont: 1}
							 , {br: 1, cont: 1}, {label: "< "+langs.getText("p168","ctrl_for")+" >", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_0", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 0   ", cont: 1}, {name:"EXT4_ALMTP_1", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 1", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_2", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_emer"), cont: 1}, {name:"EXT4_ALMTP_3", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bath"), cont: 1}, {name:"EXT4_ALMTP_4", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_dco"), cont: 1}, {name:"EXT4_ALMTP_5", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sip"), cont: 1}, {name:"EXT4_ALMTP_6", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sta"), cont: 1}, {name:"EXT4_ALMTP_7", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_co"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_8", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_smdr"), cont: 1}, {name:"EXT4_ALMTP_9", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_vm"), cont: 1}, {name:"EXT4_ALMTP_10", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_wtimb"), cont: 1}, {name:"EXT4_ALMTP_11", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_wtimc"), cont: 1}, {name:"EXT4_ALMTP_12", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ismdr"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_13", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_cabinet"), cont: 1}, {name:"EXT4_ALMTP_14", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bar"), cont: 1}, {name:"EXT4_ALMTP_15", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipcr"), cont: 1}, {name:"EXT4_ALMTP_16", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipwatch"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_17", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_templic"), cont: 1}, {name:"EXT4_ALMTP_18", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_mntlic"), cont: 1}, {name:"EXT4_ALMTP_19", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_regover"), cont: 1}, {name:"EXT4_ALMTP_20", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tnetlic"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_21", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tapi"), cont: 1}, {name:"EXT4_ALMTP_22", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_pms"), cont: 1}
                                                         , {name:"EXT4_ALMTP_23", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ucs"), cont: 1}, {name:"EXT4_ALMTP_24", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_push"), cont: 1}]}]};
      }
  }

  define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm168_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm168_mktbl", table: [{label: langs.getText("common","extcont_contact")}, {label: langs.getText("common","val")}]},
            {key: "pgm168_ext_dest_1", struct: [{tr: [{label: langs.getText("common","first"), rowspan: 6}, {name: "EXT_DEST_1", radio: [{value: "0"}]}, {label: langs.getText("common","unused"), cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", radio: [{value: "1"}]}, {label: langs.getText("common","lbc")+" ", cont: 1}, {name:"EXT_LBCVALUE_1", value: "", textfield: [{}], message: "", cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", radio: [{value: "2"}]}, {label: langs.getText("common","dooropen"), cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", radio: [{value: "3"}]}, {label: langs.getText("common","extcontdev")+" 1", cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", value: "", radio: [{value: "4"}]}, {label: langs.getText("common","extcontdev")+" 2", cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", value: "", radio: [{value: "5"}]}, {label: langs.getText("p168","alarm"), cont: 1}
							 , {br: 1, cont: 1}, {label: "< "+langs.getText("p168","ctrl_for")+" >", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_0", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 0   ", cont: 1}, {name:"EXT1_ALMTP_1", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 1", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_2", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_emer"), cont: 1}, {name:"EXT1_ALMTP_3", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bath"), cont: 1}, {name:"EXT1_ALMTP_4", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_dco"), cont: 1}, {name:"EXT1_ALMTP_5", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sip"), cont: 1}, {name:"EXT1_ALMTP_6", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sta"), cont: 1}, {name:"EXT1_ALMTP_7", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_co"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_8", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_smdr"), cont: 1}, {name:"EXT1_ALMTP_9", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_vm"), cont: 1}, {name:"EXT1_ALMTP_10", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_wtimb"), cont: 1}, {name:"EXT1_ALMTP_11", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_wtimc"), cont: 1}, {name:"EXT1_ALMTP_12", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ismdr"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_13", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_cabinet"), cont: 1}, {name:"EXT1_ALMTP_14", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bar"), cont: 1}, {name:"EXT1_ALMTP_15", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipcr"), cont: 1}, {name:"EXT1_ALMTP_16", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipwatch"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_17", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_templic"), cont: 1}, {name:"EXT1_ALMTP_18", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_mntlic"), cont: 1}, {name:"EXT1_ALMTP_19", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_regover"), cont: 1}, {name:"EXT1_ALMTP_20", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tnetlic"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_21", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tapi"), cont: 1}, {name:"EXT1_ALMTP_22", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_pms"), cont: 1}
                                                         , {name:"EXT1_ALMTP_23", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ucs"), cont: 1}, {name:"EXT1_ALMTP_24", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_push"), cont: 1}]}]},
            v_1,
            v_2,
            v_3
		]}
    ]}
  );
}
else if(info.PHASE>=3)
{
   if(info.SYSTEM_ID == "UCP100") {
      var v_1 = {};
      var v_2 = {};
      var v_3 = {};
   } else {
      var v_1 = {key: "pgm168_ext_dest_2", struct: [{tr: [{label: langs.getText("common","second"), rowspan: 6}, {name: "EXT_DEST_2", radio: [{value: "0"}]}, {label: langs.getText("common","unused"), cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", radio: [{value: "1"}]}, {label: langs.getText("common","lbc")+" ", cont: 1}, {name:"EXT_LBCVALUE_2", value: "", textfield: [{}], message: "", cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", radio: [{value: "2"}]}, {label: langs.getText("common","dooropen"), cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", radio: [{value: "3"}]}, {label: langs.getText("common","extcontdev")+" 1", cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", value: "", radio: [{value: "4"}]}, {label: langs.getText("common","extcontdev")+" 2", cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", value: "", radio: [{value: "5"}]}, {label: langs.getText("p168","alarm"), cont: 1}
							 , {br: 1, cont: 1}, {label: "< "+langs.getText("p168","ctrl_for")+" >", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_0", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 0   ", cont: 1}, {name:"EXT2_ALMTP_1", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 1", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_2", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_emer"), cont: 1}, {name:"EXT2_ALMTP_3", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bath"), cont: 1}, {name:"EXT2_ALMTP_4", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_dco"), cont: 1}, {name:"EXT2_ALMTP_5", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sip"), cont: 1}, {name:"EXT2_ALMTP_6", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sta"), cont: 1}, {name:"EXT2_ALMTP_7", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_co"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_8", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_smdr"), cont: 1}, {name:"EXT2_ALMTP_9", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_vm"), cont: 1}, {name:"EXT2_ALMTP_10", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_wtimb"), cont: 1}, {name:"EXT2_ALMTP_11", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_wtimc"), cont: 1}, {name:"EXT2_ALMTP_12", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ismdr"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_13", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_cabinet"), cont: 1}, {name:"EXT2_ALMTP_14", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bar"), cont: 1}, {name:"EXT2_ALMTP_15", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipcr"), cont: 1}, {name:"EXT2_ALMTP_16", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipwatch"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_17", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_templic"), cont: 1}, {name:"EXT2_ALMTP_18", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_mntlic"), cont: 1}, {name:"EXT2_ALMTP_19", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_regover"), cont: 1}, {name:"EXT2_ALMTP_20", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tnetlic"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT2_ALMTP_21", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tapi"), cont: 1}, {name:"EXT2_ALMTP_22", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_pms"), cont: 1}]}]};
      if(info.SYSTEM_ID == "iPECS eMG80" || info.SYSTEM_ID == "iPECS eMG800") {
          var v_2 = {};
          var v_3 = {};
      } else {
          var v_2 = {key: "pgm168_ext_dest_3", struct: [{tr: [{label: langs.getText("common","third"), rowspan: 6}, {name: "EXT_DEST_3", radio: [{value: "0"}]}, {label: langs.getText("common","unused"), cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", radio: [{value: "1"}]}, {label: langs.getText("common","lbc")+" ", cont: 1}, {name:"EXT_LBCVALUE_3", value: "", textfield: [{}], message: "", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", radio: [{value: "2"}]}, {label: langs.getText("common","dooropen"), cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", radio: [{value: "3"}]}, {label: langs.getText("common","extcontdev")+" 1", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", value: "", radio: [{value: "4"}]}, {label: langs.getText("common","extcontdev")+" 2", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", value: "", radio: [{value: "5"}]}, {label: langs.getText("p168","alarm"), cont: 1}
							 , {br: 1, cont: 1}, {label: "< "+langs.getText("p168","ctrl_for")+" >", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_0", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 0   ", cont: 1}, {name:"EXT3_ALMTP_1", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 1", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_2", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_emer"), cont: 1}, {name:"EXT3_ALMTP_3", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bath"), cont: 1}, {name:"EXT3_ALMTP_4", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_dco"), cont: 1}, {name:"EXT3_ALMTP_5", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sip"), cont: 1}, {name:"EXT3_ALMTP_6", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sta"), cont: 1}, {name:"EXT3_ALMTP_7", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_co"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_8", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_smdr"), cont: 1}, {name:"EXT3_ALMTP_9", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_vm"), cont: 1}, {name:"EXT3_ALMTP_10", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_wtimb"), cont: 1}, {name:"EXT3_ALMTP_11", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_wtimc"), cont: 1}, {name:"EXT3_ALMTP_12", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ismdr"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_13", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_cabinet"), cont: 1}, {name:"EXT3_ALMTP_14", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bar"), cont: 1}, {name:"EXT3_ALMTP_15", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipcr"), cont: 1}, {name:"EXT3_ALMTP_16", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipwatch"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_17", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_templic"), cont: 1}, {name:"EXT3_ALMTP_18", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_mntlic"), cont: 1}, {name:"EXT3_ALMTP_19", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_regover"), cont: 1}, {name:"EXT3_ALMTP_20", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tnetlic"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT3_ALMTP_21", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tapi"), cont: 1}, {name:"EXT3_ALMTP_22", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_pms"), cont: 1}]}]};
          var v_3 = {key: "pgm168_ext_dest_4", struct: [{tr: [{label: langs.getText("common","fourth"), rowspan: 6}, {name: "EXT_DEST_4", radio: [{value: "0"}]}, {label: langs.getText("common","unused"), cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", radio: [{value: "1"}]}, {label: langs.getText("common","lbc")+" ", cont: 1}, {name:"EXT_LBCVALUE_4", value: "", textfield: [{}], message: "", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", radio: [{value: "2"}]}, {label: langs.getText("common","dooropen"), cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", radio: [{value: "3"}]}, {label: langs.getText("common","extcontdev")+" 1", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", value: "", radio: [{value: "4"}]}, {label: langs.getText("common","extcontdev")+" 2", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", value: "", radio: [{value: "5"}]}, {label: langs.getText("p168","alarm"), cont: 1}
							 , {br: 1, cont: 1}, {label: "< "+langs.getText("p168","ctrl_for")+" >", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_0", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 0   ", cont: 1}, {name:"EXT4_ALMTP_1", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 1", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_2", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_emer"), cont: 1}, {name:"EXT4_ALMTP_3", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bath"), cont: 1}, {name:"EXT4_ALMTP_4", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_dco"), cont: 1}, {name:"EXT4_ALMTP_5", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sip"), cont: 1}, {name:"EXT4_ALMTP_6", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sta"), cont: 1}, {name:"EXT4_ALMTP_7", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_co"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_8", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_smdr"), cont: 1}, {name:"EXT4_ALMTP_9", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_vm"), cont: 1}, {name:"EXT4_ALMTP_10", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_wtimb"), cont: 1}, {name:"EXT4_ALMTP_11", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_wtimc"), cont: 1}, {name:"EXT4_ALMTP_12", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ismdr"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_13", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_cabinet"), cont: 1}, {name:"EXT4_ALMTP_14", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bar"), cont: 1}, {name:"EXT4_ALMTP_15", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipcr"), cont: 1}, {name:"EXT4_ALMTP_16", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipwatch"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_17", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_templic"), cont: 1}, {name:"EXT4_ALMTP_18", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_mntlic"), cont: 1}, {name:"EXT4_ALMTP_19", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_regover"), cont: 1}, {name:"EXT4_ALMTP_20", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tnetlic"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT4_ALMTP_21", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tapi"), cont: 1}, {name:"EXT4_ALMTP_22", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_pms"), cont: 1}]}]};
      }
  }

  define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm168_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm168_mktbl", table: [{label: langs.getText("common","extcont_contact")}, {label: langs.getText("common","val")}]},
            {key: "pgm168_ext_dest_1", struct: [{tr: [{label: langs.getText("common","first"), rowspan: 6}, {name: "EXT_DEST_1", radio: [{value: "0"}]}, {label: langs.getText("common","unused"), cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", radio: [{value: "1"}]}, {label: langs.getText("common","lbc")+" ", cont: 1}, {name:"EXT_LBCVALUE_1", value: "", textfield: [{}], message: "", cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", radio: [{value: "2"}]}, {label: langs.getText("common","dooropen"), cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", radio: [{value: "3"}]}, {label: langs.getText("common","extcontdev")+" 1", cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", value: "", radio: [{value: "4"}]}, {label: langs.getText("common","extcontdev")+" 2", cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", value: "", radio: [{value: "5"}]}, {label: langs.getText("p168","alarm"), cont: 1}
							 , {br: 1, cont: 1}, {label: "< "+langs.getText("p168","ctrl_for")+" >", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_0", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 0   ", cont: 1}, {name:"EXT1_ALMTP_1", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","alm_port")+" 1", cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_2", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_emer"), cont: 1}, {name:"EXT1_ALMTP_3", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bath"), cont: 1}, {name:"EXT1_ALMTP_4", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_dco"), cont: 1}, {name:"EXT1_ALMTP_5", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sip"), cont: 1}, {name:"EXT1_ALMTP_6", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_sta"), cont: 1}, {name:"EXT1_ALMTP_7", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_co"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_8", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_smdr"), cont: 1}, {name:"EXT1_ALMTP_9", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_vm"), cont: 1}, {name:"EXT1_ALMTP_10", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_wtimb"), cont: 1}, {name:"EXT1_ALMTP_11", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_wtimc"), cont: 1}, {name:"EXT1_ALMTP_12", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ismdr"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_13", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_cabinet"), cont: 1}, {name:"EXT1_ALMTP_14", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_bar"), cont: 1}, {name:"EXT1_ALMTP_15", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipcr"), cont: 1}, {name:"EXT1_ALMTP_16", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_ipwatch"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_17", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_templic"), cont: 1}, {name:"EXT1_ALMTP_18", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_mntlic"), cont: 1}, {name:"EXT1_ALMTP_19", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_regover"), cont: 1}, {name:"EXT1_ALMTP_20", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tnetlic"), cont: 1}
                                                         , {br: 1, cont: 1}, {name:"EXT1_ALMTP_21", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_tapi"), cont: 1}, {name:"EXT1_ALMTP_22", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p163","almtp_pms"), cont: 1}]}]},
            v_1,
            v_2,
            v_3
		]}
    ]}
  );
}
else
{
   if(info.SYSTEM_ID == "UCP100") {
      var v_1 = {};
      var v_2 = {};
      var v_3 = {};
   } else {
      var v_1 = {key: "pgm168_ext_dest_2", struct: [{tr: [{label: langs.getText("common","second"), rowspan: 5}, {name: "EXT_DEST_2", radio: [{value: "0"}]}, {label: langs.getText("common","unused"), cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", radio: [{value: "1"}]}, {label: langs.getText("common","lbc")+" ", cont: 1}, {name:"EXT_LBCVALUE_2", value: "", textfield: [{}], message: "", cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", radio: [{value: "2"}]}, {label: langs.getText("common","dooropen"), cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", radio: [{value: "3"}]}, {label: langs.getText("common","extcontdev")+" 1", cont: 1}]},
                                                    {tr: [{name: "EXT_DEST_2", value: "", radio: [{value: "4"}]}, {label: langs.getText("common","extcontdev")+" 2", cont: 1}]}]};
      if(info.SYSTEM_ID == "iPECS eMG80" || info.SYSTEM_ID == "iPECS eMG800") {
          var v_2 = {};
          var v_3 = {};
      } else {
          var v_2 = {key: "pgm168_ext_dest_3", struct: [{tr: [{label: langs.getText("common","third"), rowspan: 5}, {name: "EXT_DEST_3", radio: [{value: "0"}]}, {label: langs.getText("common","unused"), cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", radio: [{value: "1"}]}, {label: langs.getText("common","lbc")+" ", cont: 1}, {name:"EXT_LBCVALUE_3", value: "", textfield: [{}], message: "", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", radio: [{value: "2"}]}, {label: langs.getText("common","dooropen"), cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", radio: [{value: "3"}]}, {label: langs.getText("common","extcontdev")+" 1", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_3", value: "", radio: [{value: "4"}]}, {label: langs.getText("common","extcontdev")+" 2", cont: 1}]}]};
          var v_3 = {key: "pgm168_ext_dest_4", struct: [{tr: [{label: langs.getText("common","fourth"), rowspan: 5}, {name: "EXT_DEST_4", radio: [{value: "0"}]}, {label: langs.getText("common","unused"), cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", radio: [{value: "1"}]}, {label: langs.getText("common","lbc")+" ", cont: 1}, {name:"EXT_LBCVALUE_4", value: "", textfield: [{}], message: "", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", radio: [{value: "2"}]}, {label: langs.getText("common","dooropen"), cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", radio: [{value: "3"}]}, {label: langs.getText("common","extcontdev")+" 1", cont: 1}]},
                                                        {tr: [{name: "EXT_DEST_4", value: "", radio: [{value: "4"}]}, {label: langs.getText("common","extcontdev")+" 2", cont: 1}]}]};
      }
  }

  define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm168_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm168_mktbl", table: [{label: langs.getText("common","extcont_contact")}, {label: langs.getText("common","val")}]},
            {key: "pgm168_ext_dest_1", struct: [{tr: [{label: langs.getText("common","first"), rowspan: 5}, {name: "EXT_DEST_1", radio: [{value: "0"}]}, {label: langs.getText("common","unused"), cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", radio: [{value: "1"}]}, {label: langs.getText("common","lbc")+" ", cont: 1}, {name:"EXT_LBCVALUE_1", value: "", textfield: [{}], message: "", cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", radio: [{value: "2"}]}, {label: langs.getText("common","dooropen"), cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", radio: [{value: "3"}]}, {label: langs.getText("common","extcontdev")+" 1", cont: 1}]},
                                                {tr: [{name: "EXT_DEST_1", value: "", radio: [{value: "4"}]}, {label: langs.getText("common","extcontdev")+" 2", cont: 1}]}]},
            v_1,
            v_2,
            v_3
		]}
    ]}
  );
}
