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 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")}];
}							

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("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_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: "", enable_mullang:1, show: 0}, 
                                                                {name:"TBL_RINGTONE", value:"", label: 1},  
                                                                {name:"TBL_NAME", value:"", enable_mullang:1, label: 1}]}],
                                  variable_data:[{}]}
        ]}
    ]}
);
