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

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: "", 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", table:[{label: langs.getText("common","index")}, {label: langs.getText("common","val"), colspan: 2}, {label: langs.getText("common","range")}], 
									  data_form: [{key: "", struct: [{tr: [{name:"PREFIX_INDEX", value:"", label: 1, rowspan: 11}, {label: langs.getText("p206","prefix_code")}, {name: "PREFIX_CODE", value: "", textfield: [{max: 8, size: 10}], message: "", cont: 0}, {label: langs.getText("p206","cmt_max8digit")}]}, 
																			   {tr: [{label: langs.getText("p206","prefix_tid")}, {name: "PREFIX_TID", value: "", textfield: [{max: 1, size: 1}], message: "", cont: 0}, {label: "0-6, 0 "+langs.getText("p206","cmt_prefix_tid")}]}, 
																			   {tr: [{label: langs.getText("p206","prefix_mind")}, {name: "PREFIX_MIND", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 0}, {label: "00-30"}]}, 
																			   {tr: [{label: langs.getText("p206","prefix_maxd")}, {name: "PREFIX_MAXD", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 0}, {label: "00-30"}]}, 
																			   {tr: [{label: langs.getText("p206","prefix_ntype")}, {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: "", cont: 0}, {label: ""}]}, 
																			   {tr: [{label: langs.getText("common","numplan")}, {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: "", cont: 0}, {label: ""}]}, 
																			   {tr: [{label: langs.getText("p206","prefix_sc")}, {name:"PREFIX_SC", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]}, 
																			   {tr: [{label: langs.getText("p206","prefix_ctype")}, {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: "", cont: 0}, {label: ""}]}, 
																			   {tr: [{label: langs.getText("p206","prefix_ctimer")}, {name: "PREFIX_CTIMER", value: "", textfield: [{max: 3, size: 5}], message: "", cont: 0}, {label: "(*1"+langs.getText("common","cmt_second")+")", cont: 1}, {label: "000-999"}]},
																			   {tr: [{label: langs.getText("p206","prefix_ccost")}, {name: "PREFIX_COST", value: "", textfield: [{max: 6, size: 8}], message: "", cont: 0}, {label: langs.getText("common","must6digit")}]},
																			   {tr: [{label: langs.getText("p206","prefix_flatrate")}, {name:"PREFIX_FLAT", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]}]}], 
																			   
							    variable_data: []}
        ]}
    ]}
);
