var NO_OF_PREFIXDIALINGTABLE = "500";

if(NO_OF_PREFIXDIALINGTABLE) {
	var range_guide = " (1 - "+NO_OF_PREFIXDIALINGTABLE+")";
	if(NO_OF_PREFIXDIALINGTABLE < 100) {
		var maxInputRange = NO_OF_PREFIXDIALINGTABLE;
	} else {
		var maxInputRange = "100";
	}
}

column_config["pgm206"] = [{readOnly: true},{},{},{},{},
									{type: 'dropdown', source: [langs.getText("common","opt_unknown"), langs.getText("common","international"), langs.getText("common","national"), langs.getText("p206","opt_prefix_ntype_ns"), langs.getText("common","subscriber"), langs.getText("common","opt_abbreviated"), langs.getText("common","reserved")]},
 									{type: 'dropdown', source: [langs.getText("common","opt_unknown"), langs.getText("common","opt_isdn_telephony"), langs.getText("common","data_numbering"), langs.getText("common","telex"), langs.getText("common","national_std"), langs.getText("common","txt_private"),langs.getText("common","reserved")],colWidths:120},
									{type: 'dropdown', source: [langs.getText("common","opt_off"), langs.getText("common","opt_on")]},
									{type: 'dropdown', source: [langs.getText("common","opt_unknown"), langs.getText("common","local"), langs.getText("common","long_distance"), langs.getText("common","international"), langs.getText("p206","opt_prefix_ctype_mobile"),langs.getText("common","reserved")]},
									{},{},
									{type: 'dropdown', source: [langs.getText("common","opt_off"), langs.getText("common","opt_on")]}];
		
define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm206_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm206_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: 2}, {text: langs.getText("common","index_range")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
            {key: "pgm206_mktbl", edit_table:[{label: langs.getText("common","index")}, {label: langs.getText("p206","prefix_code")}, {br: 1, cont: 1}, {label: langs.getText("p206","cmt_max8digit"), cont: 1}, {label: langs.getText("p206","prefix_tid")}, {br: 1, cont: 1}, {label: "(0-6, 0 "+langs.getText("p206","cmt_prefix_tid")+")", cont: 1}, 
                                    {label: langs.getText("p206","prefix_mind")}, {br: 1, cont: 1}, {label: "(00-30)", cont: 1}, {label: langs.getText("p206","prefix_maxd")}, {br: 1, cont: 1}, {label: "(00-30)", cont: 1}, {label: langs.getText("p206","prefix_ntype")}, {label: langs.getText("common","numplan")},
		                    {label: langs.getText("p206","prefix_sc")}, {label: langs.getText("p206","prefix_ctype")}, {label: langs.getText("p206","prefix_ctimer")}, {br: 1, cont: 1}, {label: "(000-999)", cont: 1},
		                    {label: langs.getText("p206","prefix_ccost")}, {br: 1, cont: 1}, {label: "("+langs.getText("common","must6digit")+")", cont: 1}, {label: langs.getText("p206","prefix_flatrate")}],            
                                    data_form: [{key: "", tr: [{name:"PREFIX_INDEX", value: "", label: 1}, 
  							   {name: "PREFIX_CODE", value: "", message: "", label: 1}, 
							   {name: "PREFIX_TID", value: "", message: "", label: 1}, 
							   {name: "PREFIX_MIND", value: "", message: "", label: 1},
							   {name: "PREFIX_MAXD", value: "", message: "", label: 1},
							   {name:"PREFIX_NTYPE", value: "", select: [{value: "0", option: langs.getText("common","opt_unknown")}, {value: "1", option: langs.getText("common","international")}, {value: "2", option: langs.getText("common","national")}, {value: "3", option: langs.getText("p206","opt_prefix_ntype_ns")}, {value: "4", option: langs.getText("common","subscriber")}, {value: "5", option: langs.getText("common","opt_abbreviated")}, {value: "6", option: langs.getText("common","reserved")}], message: "", show: 0}, 
							   {name:"PREFIX_NPLAN", value: "", select: [{value: "0", option: langs.getText("common","opt_unknown")}, {value: "1", option: langs.getText("common","opt_isdn_telephony")}, {value: "2", option: langs.getText("common","data_numbering")}, {value: "3", option: langs.getText("common","telex")}, {value: "4", option: langs.getText("common","national_std")}, {value: "5", option: langs.getText("common","txt_private")}, {value: "6", option: langs.getText("common","reserved")}], message: "", show: 0}, 
							   {name:"PREFIX_SC", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", show: 0}, 
							   {name:"PREFIX_CTYPE", value: "", select: [{value: "0", option: langs.getText("common","opt_unknown")}, {value: "1", option: langs.getText("common","local")}, {value: "2", option: langs.getText("common","long_distance")}, {value: "3", option: langs.getText("common","international")}, {value: "4", option: langs.getText("p206","opt_prefix_ctype_mobile")}, {value: "5", option: langs.getText("common","reserved")}], message: "", enable_mullang: 1, show: 0}, 
							   {name: "PREFIX_CTIMER", value: "", message: "", label: 1},
							   {name: "PREFIX_COST", value: "", message: "", label: 1}, 
							   {name:"PREFIX_FLAT", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", show: 0}]}],
			    variable_data: [{}]}
        ]}
    ]}
);
