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

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

if(info.SYSTEM_ID == "iPECS eMG80" || info.SYSTEM_ID == "iPECS eMG800") {
    var v_2 = {value: "1", option: langs.getText("common","internal_music")};
    var v_3 = {value: "2", option: langs.getText("common","extmusic")};
    var v_4 = [{value: "0", option: langs.getText("common","not_assigned")}, {value: "1", option: langs.getText("common","info_stn")},	{value: "2", option: langs.getText("common","station_group")}, {value: "3", option: langs.getText("common","system_speed")}, {value: "4", option: langs.getText("common","pabx_trans_sysspd")}, {value: "5", option: langs.getText("common","vsf_annc")}, {value: "6", option: langs.getText("common","vsf_annc_and_dis")}, {value: "7", option: langs.getText("common","networking")}, {value: "8", option: langs.getText("common","opt_confroom")}, {value: "9", option: langs.getText("common","internal_page")}, {value: "10", option: langs.getText("common","ext_page")}, {value: "11", option: langs.getText("common","all_call_page")}, {value: "12", option: langs.getText("common","vm_stagrp")}, {value: "13", option: langs.getText("common","iclid_tbl")}, {value: "14", option: langs.getText("common","opt_comdir")}, {value: "15", option: langs.getText("common","record_vm_greet")}];
} else {
    var v_2 = {value: "1", option: langs.getText("common","intext_music")+"1"};
    var v_3 = {value: "2", option: langs.getText("common","extmusic")+"2"};
    var v_4 = [{value: "0", option: langs.getText("common","not_assigned")}, {value: "1", option: langs.getText("common","info_stn")},	{value: "2", option: langs.getText("common","station_group")}, {value: "3", option: langs.getText("common","system_speed")}, {value: "4", option: langs.getText("common","pabx_trans_sysspd")}, {value: "5", option: langs.getText("common","vsf_annc")}, {value: "6", option: langs.getText("common","vsf_annc_and_dis")}, {value: "7", option: langs.getText("common","networking")}, {value: "8", option: langs.getText("common","opt_confroom")}, {value: "9", option: langs.getText("common","internal_page")}, {value: "10", option: langs.getText("common","ext_page")}, {value: "11", option: langs.getText("common","all_call_page")}, {value: "12", option: langs.getText("common","vm_stagrp")}, {value: "13", option: langs.getText("common","iclid_tbl")}, {value: "14", option: langs.getText("common","opt_comdir")}, {value: "15", option: langs.getText("common","record_vm_greet")}, {value: "16", option: langs.getText("common","ucs_sys_conf_join")}];
}

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm231_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}, {btn: langs.getText("p231","btn_initall"), btn_type: "btn_p231_initall auth_write"}, {btn: langs.getText("p231","btn_delall"), btn_type: "btn_p231_delall auth_write"}]},
            {key: "pgm231_preload", preload: [{name: "RANGE_TYPE_1", range_type: 2}, {text: langs.getText("common","enter_indexrange")+range_guide+" : "}, {name: "RANGE_1_1", value: "", textfield: [{max: 40, size: 50}], message: "", help: langs.re_toolTip()}, {btn: langs.getText("common","load"), btn_type: "btn_load"}, langs.Range_Error_Table(), {endload: 1}, {br: 2}, {text: langs.getText("common","index_range")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
            {key: "pgm231_fdc_input_info_tbl", table: [{name: "CHKFLAG", value: "", check_flag: 1}, {label: langs.getText("common","order"), sort: "num"}, {btn: langs.getText("common","btn_chkall"), btn_type: "btn_checkall"}, {label: langs.getText("common","attr")}, {label: langs.getText("common","type")}, {label: langs.getText("common","val")}, {label: langs.getText("common","vmid")}, {label: langs.getText("common","range")}]},
            {key: "pgm231_fdc_day", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p231","fdc_day")}, 
                                        {name:"FDC_DAY_TYPE", value:"", select:v_4, message: "", cont: 0}, 
                                        {name:"FDC_DAY_VALUE", value: "", textfield: [{max: 8, size: 7}], message: "", cont: 0}, {label: langs.getText("common","simple_sta")+":"}, {name:"FDC_DAY_VMID", value: "", textfield: [{max: 8, size: 4}], message: "", cont: 1}, {label: ""}]},
            {key: "pgm231_fdc_night", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p231","fdc_night")}, 
                                          {name:"FDC_NIGHT_TYPE", value:"", select:v_4, message: "", cont: 0}, 
                                          {name:"FDC_NIGHT_VALUE", value: "", textfield: [{max: 8, size: 7}], message: "", cont: 0}, {label: langs.getText("common","simple_sta")+":"}, {name:"FDC_NIGHT_VMID", value: "", textfield: [{max: 8, size: 4}], message: "", cont: 1}, {label: ""}]},
            {key: "pgm231_fdc_timed", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p231","fdc_timed")}, 
														{name:"FDC_TIMED_TYPE", value:"", select:v_4, message: "", cont: 0}, 
														{name:"FDC_TIMED_VALUE", value: "", textfield: [{max: 8, size: 7}], message: "", cont: 0}, {label: langs.getText("common","simple_sta")+":"}, {name:"FDC_TIMED_VMID", value: "", textfield: [{max: 8, size: 4}], message: "", cont: 1}, {label: ""}]},
            {key: "pgm231_fdc_reroute", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p231","fdc_reroute")}, 
                                            {name:"FDC_REROUTE_TYPE", value:"", select:[{value: "0", option: langs.getText("common","not_assigned")}, 
																													 {value: "1", option: langs.getText("common","info_stn")}, 
																													 {value: "2", option: langs.getText("common","station_group")}, 
																													 {value: "3", option: langs.getText("common","system_speed")}, 
																													 {value: "4", option: langs.getText("common","pabx_trans_sysspd")}, 
																													 {value: "5", option: langs.getText("common","vsf_annc")}, 
																													 {value: "6", option: langs.getText("common","vsf_annc_and_dis")}, 
																													 {value: "7", option: langs.getText("common","networking")}, 
																													 {value: "8", option: langs.getText("common","opt_confroom")}, 
																													 {value: "9", option: langs.getText("common","internal_page")}, 
																													 {value: "10", option: langs.getText("common","ext_page")}, 
																													 {value: "11", option: langs.getText("common","all_call_page")}, 
																													 {value: "12", option: langs.getText("common","vm_stagrp")}, 
																													 {value: "13", option: langs.getText("common","iclid_tbl")}, 
																													 {value: "14", option: langs.getText("common","opt_comdir")}, 
																													 {value: "15", option: langs.getText("common","record_vm_greet")}], message: "", cont: 0}, 
                                            {name:"FDC_REROUTE_VALUE", value: "", textfield: [{max: 8, size: 7}], message: "", cont: 0}, {label: langs.getText("common","simple_sta")+":"}, {name:"FDC_REROUTE_VMID", value: "", textfield: [{max: 8, size: 4}], message: "", cont: 1}, {label: ""}]},
            {key: "pgm231_fdc_iclidusage", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p231","fdc_iclidusage")}, {name:"FDC_ICLIDUSAGE", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}, {label: ""}, {label: ""}]},
            {key: "pgm231_fdc_tenancytblno", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("common","icm_tenancy_group")}, {br: 1, cont: 1}, {label: "("+langs.getText("common","autoringmodetbl")+")", cont: 1}, {name:"FDC_TENANCYTBLNO", value: "", textfield: [{max: 3, size: 3}], message: "", cont: 0}, {label: ""}, {label: ""}, v_1]},
            {key: "pgm231_fdc_moh", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("common","moh")}, 
                                        {name:"FDC_MOH", value:"", select:[{value: "0", option: langs.getText("p231","opt_fdc_moh_cohold")}, 
                                                                           v_2, 
                                                                           v_3, 
                                                                           {value: "3", option: langs.getText("common","vsf_moh")}, 
                                                                           {value: "4", option: langs.getText("common","slt_moh")+"1"}, 
                                                                           {value: "5", option: langs.getText("common","slt_moh")+"2"}, 
                                                                           {value: "6", option: langs.getText("common","slt_moh")+"3"}, 
                                                                           {value: "7", option: langs.getText("common","slt_moh")+"4"}, 
                                                                           {value: "8", option: langs.getText("common","slt_moh")+"5"}, 
                                                                           {value: "9", option: langs.getText("common","vsf_moh")+"2"}, 
                                                                           {value: "10", option: langs.getText("common","vsf_moh")+"3"}], message: "", cont: 0}, {label: ""}, {label: ""}, {label: ""}]},
            {key: "pgm231_fdc_ringtone", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("common","ring_tone")}, {name:"FDC_RINGTONE", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 0}, {label: ""}, {label: ""}, {label: "0-16 (0:"+langs.getText("common","not_assigned")+")"}]},
            {key: "pgm231_fdc_name", tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("common","name")}, {name:"FDC_NAME", value: "", textfield: [{max: 11, size: 11}], message: "", enable_mullang: 1}, {label: ""}, {label: ""}, {label: ""}]},
            {key: "pgm231_fdc_list_tbl", table: [{label: langs.getText("common","index")}, {label: langs.getText("p231","fdc_day")}, {label: langs.getText("p231","fdc_night")}, {label: langs.getText("p231","fdc_timed")}, {label: langs.getText("p231","fdc_reroute")}, 
                                                 {label: langs.getText("p231","fdc_iclidusage")}, {label: langs.getText("common","icm_tenancy_group")}, {br: 1, cont: 1}, {label: "("+langs.getText("common","autoringmodetbl")+")", cont: 1}, 
                                                 {label: langs.getText("common","moh")}, {label: langs.getText("common","ring_tone")}, {label: langs.getText("common","name")}],
                                      data_form:[{key: "", tr: [{name:"RCV_FDC_INDEX", value:"", label: 1}, 
                                                                {name:"RCV_FDC_DAY", value:"", select:v_4, message: "", show: 0}, {label: " ", cont: 1}, {name:"RCV_FDC_DAY_V", value:"", label: 1, cont: 1}, 
                                                                {name:"RCV_FDC_NIGHT", value:"", select:v_4, message: "", show: 0}, {label: " ", cont: 1}, {name:"RCV_FDC_NIGHT_V", value:"", label: 1, cont: 1}, 
                                                                {name:"RCV_FDC_TIMED", value:"", select:v_4, message: "", show: 0},  {label: " ", cont: 1}, {name:"RCV_FDC_TIMED_V", value:"", label: 1, cont: 1}, 
                                                                {name:"RCV_FDC_REROUTE", value:"", select:[{value: "0", option: langs.getText("common","not_assigned")}, 
																																			  {value: "1", option: langs.getText("common","info_stn")}, 
																																			  {value: "2", option: langs.getText("common","station_group")}, 
																																			  {value: "3", option: langs.getText("common","system_speed")}, 
																																			  {value: "4", option: langs.getText("common","pabx_trans_sysspd")}, 
																																			  {value: "5", option: langs.getText("common","vsf_annc")}, 
																																			  {value: "6", option: langs.getText("common","vsf_annc_and_dis")}, 
																																			  {value: "7", option: langs.getText("common","networking")}, 
																																			  {value: "8", option: langs.getText("common","opt_confroom")}, 
																																			  {value: "9", option: langs.getText("common","internal_page")}, 
																																			  {value: "10", option: langs.getText("common","ext_page")}, 
																																			  {value: "11", option: langs.getText("common","all_call_page")}, 
																																			  {value: "12", option: langs.getText("common","vm_stagrp")}, 
																																			  {value: "13", option: langs.getText("common","iclid_tbl")}, 
																																			  {value: "14", option: langs.getText("common","opt_comdir")}, 
																																			  {value: "15", option: langs.getText("common","record_vm_greet")}], message: "", show: 0}, {label: " ", cont: 1}, {name:"RCV_FDC_REROUTE_V", value:"", label: 1, cont: 1}, 
                                                                {name:"RCV_FDC_ICLIDUSAGE", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", show: 0}, 
                                                                {name:"RCV_FDC_TENANCYTBLNO", value:"", label: 1},  
                                                                {name:"RCV_FDC_MOH", value:"", select:[{value: "0", option: langs.getText("p231","opt_fdc_moh_cohold")}, 
																																		 v_2, 
																																		 v_3, 
																																		 {value: "3", option: langs.getText("common","vsf_moh")}, 
																																		 {value: "4", option: langs.getText("common","slt_moh")+"1"}, 
																																		 {value: "5", option: langs.getText("common","slt_moh")+"2"}, 
																																		 {value: "6", option: langs.getText("common","slt_moh")+"3"}, 
																																		 {value: "7", option: langs.getText("common","slt_moh")+"4"}, 
																																		 {value: "8", option: langs.getText("common","slt_moh")+"5"}, 
																																		 {value: "9", option: langs.getText("common","vsf_moh")+"2"}, 
																																		 {value: "10", option: langs.getText("common","vsf_moh")+"3"}], message: "", show: 0}, 
                                                                {name:"RCV_FDC_RINGTONE", value:"", label: 1},  
                                                                {name:"RCV_FDC_NAME", value:"", label: 1}]}],
                                  variable_data:[]}
        ]}
    ]}
);
