if(info.NO_OF_ICM_GRPS) {
    var range_guide = " (0 - "+info.NO_OF_ICM_GRPS+")"
} else {
    var range_guide = "";
}

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm167_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm167_preload", preload: [{name: "RANGE_TYPE_1", range_type: 2}, {text: langs.getText("p167","enter_icmtncgrpnum")+range_guide+" : "}, {name: "RANGE_1_0", value: "", textfield: [{size: 5, max: 4}], message: ""}, {btn: langs.getText("common","load"), btn_type: "btn_load"}, langs.Range_Error_Table(), {endload: 1}, {br: 2}, {text: langs.getText("p167","routetbl")+" ("}, {text: langs.getText("p167","tncgrp_num")+" : "}, {name: "RANGE_VIEW_1", value: "", text: 1}, {text: ")"}]},
            {key: "pgm167_mktbl", table: [{label: langs.getText("common","order")}, {label: langs.getText("common","attr")}, {label: langs.getText("common","val"), colspan: 2}]},
            {key: "pgm167_busy_dest", struct: [{tr: [{order: 1, rowspan: 4}, {label: langs.getText("common","busy_dest"), rowspan: 4}, {name: "DID_BUSY_DEST", radio: [{value: "0"}], colspan: 2}, {label: langs.getText("common","tone"), cont: 1}]},
															  {tr: [{name: "DID_BUSY_DEST", radio: [{value: "1"}], colspan: 2}, {label: langs.getText("p167","did_dest_atd"), cont: 1}]},
															  {tr: [{name: "DID_BUSY_DEST", radio: [{value: "2"}], colspan: 2}, {label: langs.getText("common","station_group")+" ", cont: 1}, {name:"DID_BUSY_VALUE", value: "", textfield: [{max: 8}], message: "", cont: 1}]},
															  {tr: [{name: "DID_BUSY_DEST", value: "", radio: [{value: "3"}], colspan: 2}, {label: langs.getText("common","vsf_annc")+" ", cont: 1}, {name:"DID_BUSY_VALUE2", value: "", textfield: [{max: 3}], message: "", cont: 1}]}]},
            {key: "pgm167_err_dest", struct: [{tr: [{order: 1, rowspan: 4}, {label: langs.getText("common","err_dest"), rowspan: 4}, {name: "DID_ERROR_DEST", radio: [{value: "0"}], colspan: 2}, {label: langs.getText("common","tone"), cont: 1}]},
                                              {tr: [{name: "DID_ERROR_DEST", radio: [{value: "1"}], colspan: 2}, {label: langs.getText("p167","did_dest_atd"), cont: 1}]},
                                              {tr: [{name: "DID_ERROR_DEST", radio: [{value: "2"}], colspan: 2}, {label: langs.getText("common","station_group")+" ", cont: 1}, {name:"DID_ERROR_VALUE", value: "", textfield: [{max: 8}], message: "", cont: 1}]},
                                              {tr: [{name: "DID_ERROR_DEST", value: "", radio: [{value: "3"}], colspan: 2}, {label: langs.getText("common","vsf_annc")+" ", cont: 1}, {name:"DID_ERROR_VALUE2", value: "", textfield: [{max: 3}], message: "", cont: 1}]}]},
            {key: "pgm167_noans_dest", struct: [{tr: [{order: 1, rowspan: 4}, {label: langs.getText("p167","noans_dest"), rowspan: 4}, {name: "DID_NOANS_DEST", radio: [{value: "0"}], colspan: 2}, {label: langs.getText("common","tone"), cont: 1}]},
                                                {tr: [{name: "DID_NOANS_DEST", radio: [{value: "1"}], colspan: 2}, {label: langs.getText("p167","did_dest_atd"), cont: 1}]},
                                                {tr: [{name: "DID_NOANS_DEST", radio: [{value: "2"}], colspan: 2}, {label: langs.getText("common","station_group")+" ", cont: 1}, {name:"DID_NOANS_VALUE", value: "", textfield: [{max: 8}], message: "", cont: 1}]},
                                                {tr: [{name: "DID_NOANS_DEST", value: "", radio: [{value: "3"}], colspan: 2}, {label: langs.getText("common","vsf_annc")+" ", cont: 1}, {name:"DID_NOANS_VALUE2", value: "", textfield: [{max: 3}], message: "", cont: 1}]}]},
            {key: "pgm167_dnd_dest", struct: [{tr: [{order: 1, rowspan: 4}, {label: langs.getText("p167","dnd_dest"), rowspan: 4}, {name: "DID_DND_DEST", radio: [{value: "0"}], colspan: 2}, {label: langs.getText("common","tone"), cont: 1}]},
                                              {tr: [{name: "DID_DND_DEST", radio: [{value: "1"}], colspan: 2}, {label: langs.getText("p167","did_dest_atd"), cont: 1}]},
                                              {tr: [{name: "DID_DND_DEST", radio: [{value: "2"}], colspan: 2}, {label: langs.getText("common","station_group")+" ", cont: 1}, {name:"DID_DND_VALUE", value: "", textfield: [{max: 8}], message: "", cont: 1}]},
                                              {tr: [{name: "DID_DND_DEST", value: "", radio: [{value: "3"}], colspan: 2}, {label: langs.getText("common","vsf_annc")+" ", cont: 1}, {name:"DID_DND_VALUE2", value: "", textfield: [{max: 3}], message: "", cont: 1}]}]},
            {key: "pgm167_vsfprompt_usage", struct: [{tr: [{order: 1, rowspan: 5}, {label: langs.getText("p167","vsfprompt_usage"), rowspan: 5}, {label: langs.getText("p167","did_prompt_busy")}, {name: "DID_PROMPT_BUSY", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]},
                                                     {tr: [{label: langs.getText("p167","did_prompt_error")}, {name: "DID_PROMPT_ERROR", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]},
                                                     {tr: [{label: langs.getText("p167","did_prompt_dnd")}, {name: "DID_PROMPT_DND", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]},
                                                     {tr: [{label: langs.getText("p167","did_prompt_noans")}, {name: "DID_PROMPT_NOANS", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]},
                                                     {tr: [{label: langs.getText("p167","did_prompt_atdxfer")}, {name: "DID_PROMPT_ATDXFER", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]}]},
            {key: "pgm167_rebusy_dest", struct: [{tr: [{order: 1, rowspan: 3}, {label: langs.getText("p167","rebusy_dest"), rowspan: 3}, {name: "DID_REBUSY_DEST", radio: [{value: "0"}], colspan: 2}, {label: langs.getText("common","tone"), cont: 1}]},
                                                 {tr: [{name: "DID_REBUSY_DEST", radio: [{value: "1"}], colspan: 2}, {label: langs.getText("p167","did_dest_atd"), cont: 1}]},
                                                 {tr: [{name: "DID_REBUSY_DEST", value: "", radio: [{value: "2"}], colspan: 2}, {label: langs.getText("common","station_group")+" ", cont: 1}, {name:"DID_REBUSY_VALUE", value: "", textfield: [{max: 8}], message: "", cont: 1}]}]},
            {key: "pgm167_reerr_dest", struct: [{tr: [{order: 1, rowspan: 3}, {label: langs.getText("p167","reerr_dest"), rowspan: 3}, {name: "DID_REERR_DEST", radio: [{value: "0"}], colspan: 2}, {label: langs.getText("common","tone"), cont: 1}]},
                                                {tr: [{name: "DID_REERR_DEST", radio: [{value: "1"}], colspan: 2}, {label: langs.getText("p167","did_dest_atd"), cont: 1}]},
                                                {tr: [{name: "DID_REERR_DEST", value: "", radio: [{value: "2"}], colspan: 2}, {label: langs.getText("common","station_group")+" ", cont: 1}, {name:"DID_REERR_VALUE", value: "", textfield: [{max: 8}], message: "", cont: 1}]}]},
            {key: "pgm167_renoa_dest", struct: [{tr: [{order: 1, rowspan: 3}, {label: langs.getText("p167","renoa_dest"), rowspan: 3}, {name: "DID_RENOA_DEST", radio: [{value: "0"}], colspan: 2}, {label: langs.getText("common","tone"), cont: 1}]},
                                                {tr: [{name: "DID_RENOA_DEST", radio: [{value: "1"}], colspan: 2}, {label: langs.getText("p167","did_dest_atd"), cont: 1}]},
                                                {tr: [{name: "DID_RENOA_DEST", value: "", radio: [{value: "2"}], colspan: 2}, {label: langs.getText("common","station_group")+" ", cont: 1}, {name:"DID_RENOA_VALUE", value: "", textfield: [{max: 8}], message: "", cont: 1}]}]},
            {key: "pgm167_renetbusy_dest", struct: [{tr: [{order: 1, rowspan: 3}, {label: langs.getText("p167","renetbusy_dest"), rowspan: 3}, {name: "DID_RENETBUSY_DEST", radio: [{value: "0"}], colspan: 2}, {label: langs.getText("common","tone"), cont: 1}]},
																    {tr: [{name: "DID_RENETBUSY_DEST", radio: [{value: "1"}], colspan: 2}, {label: langs.getText("p167","did_dest_atd"), cont: 1}]},
																    {tr: [{name: "DID_RENETBUSY_DEST", value: "", radio: [{value: "2"}], colspan: 2}, {label: langs.getText("common","station_group")+" ", cont: 1}, {name:"DID_RENETBUSY_VALUE", value: "", textfield: [{max: 8}], message: "", cont: 1}]}]}
		]}
    ]}
);
