var range_guide = " (0 - 251)";

if(info.SYSTEM_ID == "iPECS eMG800") {
	var v_min = 2000;
	var v_max = 9999;
} else if(info.SYSTEM_ID == "iPECS eMG80") {
	var v_min = 2000;
	var v_max = 4999;
} else {
	var v_min = 20000;
	var v_max = 31999;
}

column_config["pgm324"] = [{readOnly: true},
									{type:'dropdown', source:[langs.getText("common","net"),langs.getText("common","pstn")]},
									{},{},{},{},{},{},{},{},{},{},{},
									{type:'dropdown', source:[langs.getText("common","opt_no"), langs.getText("common","opt_yes")]},
									{type:'dropdown', source:[langs.getText("common","opt_no"), langs.getText("common","opt_yes")]},
									{type:'dropdown', source:[langs.getText("common","net"),langs.getText("common","pstn")]},
									{type:'dropdown', source:[langs.getText("common","opt_off"), langs.getText("common","opt_on")]},
									{type:'dropdown', source:[langs.getText("common","opt_off"), langs.getText("common","opt_on")]},
									{type:'dropdown', source:[langs.getText("common","opt_no"), langs.getText("common","opt_yes")]},
									{type:'dropdown', source:[langs.getText("common","opt_no"), langs.getText("common","opt_yes")]},
									{maxLength:12},{},
									{type:'dropdown', source:[langs.getText("common","opt_off"), langs.getText("common","opt_on")]},
									{},{maxLength:15},{maxLength:15},
									{type:'dropdown', source:[langs.getText("common","opt_off"), langs.getText("p324","net_displayie")]}];

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm324_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm324_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")+" : "+100}, {btn: langs.getText("common","load"), btn_type: "btn_load"}, langs.Range_Error_Table(), {endload: 1}, {br: 2}, {text: langs.getText("p324","netnptbl_index")+" : "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
            {key: "pgm324_mktbl", edit_table: [{label: langs.getText("common","index")}, {label: langs.getText("common","networking_type")}, {label: langs.getText("common","numplan")}, {br: 1, cont: 1}, {label: langs.getText("p324","cmt_net_plancode"), cont: 1}, 
															  {label: langs.getText("common","simple_net_cogrp")}, {br: 1, cont: 1}, {label: "(0-24)", cont: 1}, {label: langs.getText("common","net_cpn_isdn_info")}, {br: 1, cont: 1}, {label: "("+langs.getText("common","max16digit")+")", cont: 1}, {label: langs.getText("common","net_cpn_info")+"1"}, {br: 1, cont: 1}, {label:"("+langs.getText("common","enter_ipaddr")+")", cont: 1},
															  {label: langs.getText("common","net_cpn_info")+"2"}, {br: 1, cont: 1}, {label:"("+langs.getText("common","enter_ipaddr")+")", cont: 1}, {label: langs.getText("common","net_cpn_info")+"3"}, {br: 1, cont: 1}, {label:"("+langs.getText("common","enter_ipaddr")+")", cont: 1}, {label: langs.getText("common","net_cpn_info")+"4"}, {br: 1, cont: 1}, {label:"("+langs.getText("common","enter_ipaddr")+")", cont: 1},
															  {label: langs.getText("p3240","net_rthtmr")}, {br: 1, cont: 1}, {label: "(0, 3-15 "+langs.getText("common","cmt_second")+")", cont: 1},
															  {label: langs.getText("p3240","net_speed")}, {br: 1, cont: 1}, {label:"(" + v_min + "-" + v_max + ")", cont: 1}, {label: langs.getText("p3240","net_ip")}, {label: langs.getText("p3240","net_port")}, {br: 1, cont: 1}, {label: "(0-9999)", cont: 1},
															  {label: langs.getText("common","net_repeat")}, {label: langs.getText("common","pstn_enblock")}, {label: langs.getText("common","pstn_cli_method")},
															  {label: langs.getText("p3240","net_coatdcli")}, {label: langs.getText("common","fwrouting")}, {label: langs.getText("common","net_authcos")},
															  {label: langs.getText("common","smdrdgtoff")}, {label: langs.getText("common","sitename")}, {br: 1, cont: 1}, {label: "("+langs.getText("common","max12ch")+")", cont: 1}, {label: langs.getText("p3240","net_emerrrttmr")},  {br: 1, cont: 1}, {label: "(0-10 "+langs.getText("common","cmt_second")+")", cont: 1}, {label: langs.getText("p324","net_tunnsigmsg")},
															  {label: langs.getText("p324","net_h323port")},  {br: 1, cont: 1}, {label: "(0-65535)", cont: 1}, {label: langs.getText("p324","net_localid")},  {br: 1, cont: 1}, {label: "("+langs.getText("common","max15ch")+")", cont: 1}, {label: langs.getText("p324","net_remoteid")},  {br: 1, cont: 1}, {label: "("+langs.getText("common","max15ch")+")", cont: 1}, {label: langs.getText("p324","net_sendingnameopt")}],
                                   data_form: [{key: "", tr: [{name:"NET_INDEX", value:"", label: 1},
                                               {name:"NET_USAGE", value:"", select:[{value: "0", option: langs.getText("common","net")}, {value: "1", option: langs.getText("common","pstn")}], message: "", show: 0},
                                               {name:"NET_PLANCODE", value:"", label: 1},
                                               {name:"NET_COG", value:"", label: 1},
                                               {name:"NET_INFO", value:"", label: 1},
                                               {name:"NET_INFO1", value:"", label: 1},
                                               {name:"NET_INFO2", value:"", label: 1},
                                               {name:"NET_INFO3", value:"", label: 1},
                                               {name:"NET_INFO4", value:"", label: 1},
                                               {name:"NET_RTHTMR", value:"", label: 1},
                                               {name:"NET_SPEED", value:"", label: 1},
                                               {name:"NET_IP", value:"", label: 1},
                                               {name:"NET_PORT", value:"", label: 1}, 
                                               {name:"NET_REPEAT", value:"", select:[{value: "0", option: langs.getText("common","opt_no")}, {value: "1", option: langs.getText("common","opt_yes")}], message: "", show: 0},
                                               {name:"NET_PSTNENBL", value:"", select:[{value: "0", option: langs.getText("common","opt_no")}, {value: "1", option: langs.getText("common","opt_yes")}], message: "", show: 0},
                                               {name:"NET_PSTNCLI", value:"", select:[{value: "0", option: langs.getText("common","net")}, {value: "1", option: langs.getText("common","pstn")}], message: "", show: 0},
                                               {name:"NET_COATDCLI", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", show: 0},
                                               {name:"NET_FWROUTING", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", show: 0},
                                               {name:"NET_AUTHCOS", value:"", select:[{value: "0", option: langs.getText("common","opt_no")}, {value: "1", option: langs.getText("common","opt_yes")}], message: "", show: 0},
                                               {name:"NET_SMDRDGTOFF", value:"", select:[{value: "0", option: langs.getText("common","opt_no")}, {value: "1", option: langs.getText("common","opt_yes")}], message: "", show: 0},
                                               {name:"NET_NAME", value:"", label: 1,enable_mullang:1}, 
                                               {name:"NET_EMERRRTMR", value:"", label: 1},
                                               {name:"NET_TUNNSIGMSG", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", show: 0},
                                               {name:"NET_H323PORT", value:"", label: 1},
                                               {name:"NET_LOCALID", value: "", label: 1 },
                                               {name:"NET_REMOTEID", value: "", label: 1},
                                               {name:"NET_SENDINGNAMEOPT", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("p324","net_displayie")}], message: "", show: 0}]}],
										 variable_data: [{}]}
        ]}                                                  
    ]}                                                      
);                                                          
