if(info.NO_OF_DID_CONV_TBL) {
    var range_guide = " (0 - "+info.NO_OF_DID_CONV_TBL+")";
	if((eval(info.NO_OF_DID_CONV_TBL)+1) < 100) {
		var maxInputRange = (eval(info.NO_OF_DID_CONV_TBL)+1).toString();
	} else {
		var maxInputRange = "100";
	}
} 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 eMG100" || info.SYSTEM_ID == "iPECS eMG800") {
    var v_2 = {value: "1", option: langs.getText("common","internal_music")};
    var v_2_1 = langs.getText("common","internal_music");
    var v_3 = {value: "2", option: langs.getText("common","extmusic")};
    var v_3_1 = 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")}, {value: "16", option: langs.getText("common","ucs_sys_conf_join")}];
} else {
    var v_2 = {value: "1", option: langs.getText("common","intext_music")+"1"};
    var v_2_1 = langs.getText("common","intext_music")+"1";
    var v_3 = {value: "2", option: langs.getText("common","extmusic")+"2"};
    var v_3_1 = 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")}];
}

if(info.PHASE >= 4.1) {
    var moh_vsf4 = {value: "11", option: langs.getText("common","vsf_moh")+"4"};
    var moh_vsf5 = {value: "12", option: langs.getText("common","vsf_moh")+"5"};
    var moh_vsf6 = {value: "13", option: langs.getText("common","vsf_moh")+"6"};
    var moh_vsf7 = {value: "14", option: langs.getText("common","vsf_moh")+"7"};
    var moh_vsf8 = {value: "15", option: langs.getText("common","vsf_moh")+"8"};
    var moh_vsf9 = {value: "16", option: langs.getText("common","vsf_moh")+"9"};
    var moh_vsf10 = {value: "17", option: langs.getText("common","vsf_moh")+"10"};
    var moh_vsf11 = {value: "18", option: langs.getText("common","vsf_moh")+"11"};
    var moh_vsf12 = {value: "19", option: langs.getText("common","vsf_moh")+"12"};
    var moh_vsf13 = {value: "20", option: langs.getText("common","vsf_moh")+"13"};
    var moh_vsf14 = {value: "21", option: langs.getText("common","vsf_moh")+"14"};
    var moh_vsf15 = {value: "22", option: langs.getText("common","vsf_moh")+"15"};
    var moh_vsf16 = {value: "23", option: langs.getText("common","vsf_moh")+"16"};
    var moh_vsf17 = {value: "24", option: langs.getText("common","vsf_moh")+"17"};
    var moh_vsf18 = {value: "25", option: langs.getText("common","vsf_moh")+"18"};
    var moh_vsf19 = {value: "26", option: langs.getText("common","vsf_moh")+"19"};
    var moh_vsf20 = {value: "27", option: langs.getText("common","vsf_moh")+"20"};
    var moh_vsf21 = {value: "28", option: langs.getText("common","vsf_moh")+"21"};
    var moh_vsf22 = {value: "29", option: langs.getText("common","vsf_moh")+"22"};
    var moh_vsf23 = {value: "30", option: langs.getText("common","vsf_moh")+"23"};
    var moh_vsf24 = {value: "31", option: langs.getText("common","vsf_moh")+"24"};
    var moh_vsf25 = {value: "32", option: langs.getText("common","vsf_moh")+"25"};
    var moh_vsf26 = {value: "33", option: langs.getText("common","vsf_moh")+"26"};
    var moh_vsf27 = {value: "34", option: langs.getText("common","vsf_moh")+"27"};
    var moh_vsf28 = {value: "35", option: langs.getText("common","vsf_moh")+"28"};
    var moh_vsf29 = {value: "36", option: langs.getText("common","vsf_moh")+"29"};
    var moh_vsf30 = {value: "37", option: langs.getText("common","vsf_moh")+"30"};

    var moh_lan4 = langs.getText("common","vsf_moh")+"4";
    var moh_lan5 = langs.getText("common","vsf_moh")+"5";
    var moh_lan6 = langs.getText("common","vsf_moh")+"6";
    var moh_lan7 = langs.getText("common","vsf_moh")+"7";
    var moh_lan8 = langs.getText("common","vsf_moh")+"8";
    var moh_lan9 = langs.getText("common","vsf_moh")+"9";
    var moh_lan10 = langs.getText("common","vsf_moh")+"10";
    var moh_lan11 = langs.getText("common","vsf_moh")+"11";
    var moh_lan12 = langs.getText("common","vsf_moh")+"12";
    var moh_lan13 = langs.getText("common","vsf_moh")+"13";
    var moh_lan14 = langs.getText("common","vsf_moh")+"14";
    var moh_lan15 = langs.getText("common","vsf_moh")+"15";
    var moh_lan16 = langs.getText("common","vsf_moh")+"16";
    var moh_lan17 = langs.getText("common","vsf_moh")+"17";
    var moh_lan18 = langs.getText("common","vsf_moh")+"18";
    var moh_lan19 = langs.getText("common","vsf_moh")+"19";
    var moh_lan20 = langs.getText("common","vsf_moh")+"20";
    var moh_lan21 = langs.getText("common","vsf_moh")+"21";
    var moh_lan22 = langs.getText("common","vsf_moh")+"22";
    var moh_lan23 = langs.getText("common","vsf_moh")+"23";
    var moh_lan24 = langs.getText("common","vsf_moh")+"24";
    var moh_lan25 = langs.getText("common","vsf_moh")+"25";
    var moh_lan26 = langs.getText("common","vsf_moh")+"26";
    var moh_lan27 = langs.getText("common","vsf_moh")+"27";
    var moh_lan28 = langs.getText("common","vsf_moh")+"28";
    var moh_lan29 = langs.getText("common","vsf_moh")+"29";
    var moh_lan30 = langs.getText("common","vsf_moh")+"30";
} else {
    var moh_vsf4 = {};
    var moh_vsf5 = {};
    var moh_vsf6 = {};
    var moh_vsf7 = {};
    var moh_vsf8 = {};
    var moh_vsf9 = {};
    var moh_vsf10 = {};
    var moh_vsf11 = {};
    var moh_vsf12 = {};
    var moh_vsf13 = {};
    var moh_vsf14 = {};
    var moh_vsf15 = {};
    var moh_vsf16 = {};
    var moh_vsf17 = {};
    var moh_vsf18 = {};
    var moh_vsf19 = {};
    var moh_vsf20 = {};
    var moh_vsf21 = {};
    var moh_vsf22 = {};
    var moh_vsf23 = {};
    var moh_vsf24 = {};
    var moh_vsf25 = {};
    var moh_vsf26 = {};
    var moh_vsf27 = {};
    var moh_vsf28 = {};
    var moh_vsf29 = {};
    var moh_vsf30 = {};
}

if(info.PHASE >= 4.1) {
    column_config["pgm231"] = [{readOnly: true},
									{type: 'dropdown', source: [langs.getText("common","not_assigned"), langs.getText("common","info_stn") ,langs.getText("common","station_group"), langs.getText("common","system_speed"), langs.getText("common","pabx_trans_sysspd"), langs.getText("common","vsf_annc"), langs.getText("common","vsf_annc_and_dis"), langs.getText("common","networking"), langs.getText("common","opt_confroom"), langs.getText("common","internal_page"), langs.getText("common","ext_page"), langs.getText("common","all_call_page"), langs.getText("common","vm_stagrp"), langs.getText("common","iclid_tbl"), langs.getText("common","opt_comdir"), langs.getText("common","record_vm_greet"), langs.getText("common","ucs_sys_conf_join")],colWidths:230},
									{maxLength:8},{maxLength:8},
									{type: 'dropdown', source: [langs.getText("common","not_assigned"), langs.getText("common","info_stn") ,langs.getText("common","station_group"), langs.getText("common","system_speed"), langs.getText("common","pabx_trans_sysspd"), langs.getText("common","vsf_annc"), langs.getText("common","vsf_annc_and_dis"), langs.getText("common","networking"), langs.getText("common","opt_confroom"), langs.getText("common","internal_page"), langs.getText("common","ext_page"), langs.getText("common","all_call_page"), langs.getText("common","vm_stagrp"), langs.getText("common","iclid_tbl"), langs.getText("common","opt_comdir"), langs.getText("common","record_vm_greet"), langs.getText("common","ucs_sys_conf_join")],colWidths:230},
									{maxLength:8},{maxLength:8},
									{type: 'dropdown', source: [langs.getText("common","not_assigned"), langs.getText("common","info_stn") ,langs.getText("common","station_group"), langs.getText("common","system_speed"), langs.getText("common","pabx_trans_sysspd"), langs.getText("common","vsf_annc"), langs.getText("common","vsf_annc_and_dis"), langs.getText("common","networking"), langs.getText("common","opt_confroom"), langs.getText("common","internal_page"), langs.getText("common","ext_page"), langs.getText("common","all_call_page"), langs.getText("common","vm_stagrp"), langs.getText("common","iclid_tbl"), langs.getText("common","opt_comdir"), langs.getText("common","record_vm_greet"), langs.getText("common","ucs_sys_conf_join")],colWidths:230},
									{maxLength:8},{maxLength:8},
									{type: 'dropdown', source: [langs.getText("common","not_assigned"), langs.getText("common","info_stn") ,langs.getText("common","station_group"), langs.getText("common","system_speed"), langs.getText("common","pabx_trans_sysspd"), langs.getText("common","vsf_annc"), langs.getText("common","vsf_annc_and_dis"), langs.getText("common","networking"), langs.getText("common","opt_confroom"), langs.getText("common","internal_page"), langs.getText("common","ext_page"), langs.getText("common","all_call_page"), langs.getText("common","vm_stagrp"), langs.getText("common","iclid_tbl"), langs.getText("common","opt_comdir"), langs.getText("common","record_vm_greet")],colWidths:230},
									{maxLength:8},{maxLength:8},
									{type: 'dropdown', source: [langs.getText("common","opt_off"), langs.getText("common","opt_on")]},
									{},
									{},
									{type: 'dropdown', source: [langs.getText("p231","opt_fdc_moh_cohold"), v_2_1, v_3_1, langs.getText("common","vsf_moh"), langs.getText("common","slt_moh")+"1", langs.getText("common","slt_moh")+"2", langs.getText("common","slt_moh")+"3", langs.getText("common","slt_moh")+"4", langs.getText("common","slt_moh")+"5", langs.getText("common","vsf_moh")+"2", langs.getText("common","vsf_moh")+"3", moh_lan4, moh_lan5, moh_lan6, moh_lan7, moh_lan8, moh_lan9, moh_lan10, moh_lan11, moh_lan12, moh_lan13, moh_lan14, moh_lan15, moh_lan16, moh_lan17, moh_lan18, moh_lan19, moh_lan20, moh_lan21, moh_lan22, moh_lan23, moh_lan24, moh_lan25, moh_lan26, moh_lan27, moh_lan28, moh_lan29, moh_lan30], colWidths:160},
									{},{maxLength:12}];
} else {
    column_config["pgm231"] = [{readOnly: true},
									{type: 'dropdown', source: [langs.getText("common","not_assigned"), langs.getText("common","info_stn") ,langs.getText("common","station_group"), langs.getText("common","system_speed"), langs.getText("common","pabx_trans_sysspd"), langs.getText("common","vsf_annc"), langs.getText("common","vsf_annc_and_dis"), langs.getText("common","networking"), langs.getText("common","opt_confroom"), langs.getText("common","internal_page"), langs.getText("common","ext_page"), langs.getText("common","all_call_page"), langs.getText("common","vm_stagrp"), langs.getText("common","iclid_tbl"), langs.getText("common","opt_comdir"), langs.getText("common","record_vm_greet"), langs.getText("common","ucs_sys_conf_join")],colWidths:230},
									{maxLength:8},{maxLength:8},
									{type: 'dropdown', source: [langs.getText("common","not_assigned"), langs.getText("common","info_stn") ,langs.getText("common","station_group"), langs.getText("common","system_speed"), langs.getText("common","pabx_trans_sysspd"), langs.getText("common","vsf_annc"), langs.getText("common","vsf_annc_and_dis"), langs.getText("common","networking"), langs.getText("common","opt_confroom"), langs.getText("common","internal_page"), langs.getText("common","ext_page"), langs.getText("common","all_call_page"), langs.getText("common","vm_stagrp"), langs.getText("common","iclid_tbl"), langs.getText("common","opt_comdir"), langs.getText("common","record_vm_greet"), langs.getText("common","ucs_sys_conf_join")],colWidths:230},
									{maxLength:8},{maxLength:8},
									{type: 'dropdown', source: [langs.getText("common","not_assigned"), langs.getText("common","info_stn") ,langs.getText("common","station_group"), langs.getText("common","system_speed"), langs.getText("common","pabx_trans_sysspd"), langs.getText("common","vsf_annc"), langs.getText("common","vsf_annc_and_dis"), langs.getText("common","networking"), langs.getText("common","opt_confroom"), langs.getText("common","internal_page"), langs.getText("common","ext_page"), langs.getText("common","all_call_page"), langs.getText("common","vm_stagrp"), langs.getText("common","iclid_tbl"), langs.getText("common","opt_comdir"), langs.getText("common","record_vm_greet"), langs.getText("common","ucs_sys_conf_join")],colWidths:230},
									{maxLength:8},{maxLength:8},
									{type: 'dropdown', source: [langs.getText("common","not_assigned"), langs.getText("common","info_stn") ,langs.getText("common","station_group"), langs.getText("common","system_speed"), langs.getText("common","pabx_trans_sysspd"), langs.getText("common","vsf_annc"), langs.getText("common","vsf_annc_and_dis"), langs.getText("common","networking"), langs.getText("common","opt_confroom"), langs.getText("common","internal_page"), langs.getText("common","ext_page"), langs.getText("common","all_call_page"), langs.getText("common","vm_stagrp"), langs.getText("common","iclid_tbl"), langs.getText("common","opt_comdir"), langs.getText("common","record_vm_greet")],colWidths:230},
									{maxLength:8},{maxLength:8},
									{type: 'dropdown', source: [langs.getText("common","opt_off"), langs.getText("common","opt_on")]},
									{},
									{},
									{type: 'dropdown', source: [langs.getText("p231","opt_fdc_moh_cohold"), v_2_1, v_3_1, langs.getText("common","vsf_moh"), langs.getText("common","slt_moh")+"1", langs.getText("common","slt_moh")+"2", langs.getText("common","slt_moh")+"3", langs.getText("common","slt_moh")+"4", langs.getText("common","slt_moh")+"5", langs.getText("common","vsf_moh")+"2", langs.getText("common","vsf_moh")+"3"],colWidths:160},
									{},{maxLength:12}];
}

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: "", default_range: getDefaultRange(range_guide, maxInputRange), help: langs.re_toolTip()+"<br><br>"+langs.getText("toolTip","maxinputrange")+" - "+maxInputRange}, {btn: langs.getText("common","load"), btn_type: "btn_load"}, langs.Range_Error_Table(), {endload: 1}, {br: 3}, {text: langs.getText("common","index_range")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
            /*	fromaus, delete upper table*/
            {key: "pgm231_fdc_list_tbl", edit_table: [{label: langs.getText("common","index")}, {label: langs.getText("p231","fdc_day")}, {label: langs.getText("common","val")}, {label: langs.getText("common","vmid")},
									            {label: langs.getText("p231","fdc_night")}, {label: langs.getText("common","val")}, {label: langs.getText("common","vmid")},
									            {label: langs.getText("p231","fdc_timed")}, {label: langs.getText("common","val")}, {label: langs.getText("common","vmid")},
									            {label: langs.getText("p231","fdc_reroute")}, {label: langs.getText("common","val")}, {label: langs.getText("common","vmid")},
                                                 {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("p231","fdc_dgtconv")},{label: langs.getText("common","moh")}, {label: langs.getText("common","ring_tone")}, {label: langs.getText("common","name")}],
                                      			data_form:[{key: "", tr: [{name:"TBL_INDEX", value:"", label: 1},
                                                                {name:"TBL_DAY_TYPE", value:"", select:v_4, message: "", enable_mullang:1, show: 0}, {name:"TBL_DAY_VALUE", value:"", label: 1}, {name:"TBL_DAY_VMID", value: "", message: "", label: 1},
                                                                {name:"TBL_NIGHT_TYPE", value:"", select:v_4, message: "", enable_mullang:1, show: 0}, {name:"TBL_NIGHT_VALUE", value:"", label: 1}, {name:"TBL_NIGHT_VMID", value: "", message: "", label: 1},
                                                                {name:"TBL_TIMED_TYPE", value:"", select:v_4, message: "", enable_mullang:1, show: 0}, {name:"TBL_TIMED_VALUE", value:"", label: 1}, {name:"TBL_TIMED_VMID", value: "", message: "", label: 1},
                                                                {name:"TBL_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: "", enable_mullang:1, show: 0}, {name:"TBL_REROUTE_VALUE", value:"", label: 1}, {name:"TBL_REROUTE_VMID", value: "", message: "", label: 1},
                                                                {name:"TBL_ICLIDUSAGE", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", show: 0},
                                                                {name:"TBL_TENANCYTBLNO", value:"", label: 1},
                                                                {name:"TBL_DGTCONV", value:"", label: 1},
                                                                {name:"TBL_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"},
																				 moh_vsf4,
																				 moh_vsf5,
																				 moh_vsf6,
																				 moh_vsf7,
																				 moh_vsf8,
																				 moh_vsf9,
																				 moh_vsf10,
																				 moh_vsf11,
																				 moh_vsf12,
																				 moh_vsf13,
																				 moh_vsf14,
																				 moh_vsf15,
																				 moh_vsf16,
																				 moh_vsf17,
																				 moh_vsf18,
																				 moh_vsf19,
																				 moh_vsf20,
																				 moh_vsf21,
																				 moh_vsf22,
																				 moh_vsf23,
																				 moh_vsf24,
																				 moh_vsf25,
																				 moh_vsf26,
																				 moh_vsf27,
																				 moh_vsf28,
																				 moh_vsf29,
																				 moh_vsf30], message: "", enable_mullang:1, show: 0},
                                                                {name:"TBL_RINGTONE", value:"", label: 1},
                                                                {name:"TBL_NAME", value:"", enable_mullang:1, label: 1}]}],
                                  variable_data:[{}]}
        ]}
    ]}
);
