var range_guide = " (1 - 32)";

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm441_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm441_preload", preload: [{name: "RANGE_TYPE_1", range_type: 2}, {text: langs.getText("p441","enter_zn_src_range")+range_guide+" : "}, {name: "RANGE_1_1", value: "", textfield: [{max: 40, size:40}], message: ""}, {br: 1}, {name: "RANGE_TYPE_2", range_type: 2}, {text: langs.getText("p441","enter_zn_des_range")+range_guide+" : "}, {name: "RANGE_2_1", value: "", textfield: [{max: 40, size: 50}],message: "", cont: 0}, {btn: langs.getText("common","load"), btn_type: "btn_load"}, langs.Range_Error_Table(), {endload: 1}, {br:2},
                                              {text: langs.getText("p441","zn_src_range")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}, {br:1}, 
                                              {text: langs.getText("p441","zn_dest_range")+" "}, {name: "RANGE_VIEW_2", value: "", text: 1}]},
            {key: "pgm441_mktbl", title: langs.getText("common","mktbl"), table: [{name: "CHKFLAG", value: "", check_flag: 1}, {label: langs.getText("common","order"), sort: "num"}, {btn: langs.getText("common","btn_chkall"), btn_type: "btn_checkall"}, {label: langs.getText("common","attr")}, {label: langs.getText("common","val")},{label: langs.getText("common","range")}]},
            {key: "pgm441_zone_codec", title: langs.getText("common","codectype"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("common","codectype")}, 
	                                                                                    {name:"ZONE_CODEC", value:"", select:[{value: "0", option: langs.getText("common","not_assigned")},
																																									  {value: "1", option: langs.getText("common","syscodec")}, 
																																									  {value: "2", option: "G.711"}, 
																																									  {value: "3", option: "G.723.1"}, 
																																									  {value: "4", option: "G.729"}, 
																																									  {value: "5", option: "G.722"}], message: "", cont: 0}, {label:""}]},
            {key: "pgm441_zone_rtprly", title: langs.getText("common","rtp_rlyrule"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("common","rtp_rlyrule")}, 
																														{name:"ZONE_RTPRLY", value:"", select:[{value: "0", option: langs.getText("common","if_need")},
																																										   {value: "1", option: langs.getText("p441","opt_zone_rtprly_an")}, 
																																										   {value: "2", option: langs.getText("p441","opt_zone_rtprly_ftd")}], message: "", cont: 0},{label:""}]},
            {key: "pgm441_zone_rlydevrule", title: langs.getText("p441","zone_rlydevrule"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p441","zone_rlydevrule")}, {name:"ZONE_RLYDEVRULE", value:"", select:[{value: "0", option: langs.getText("p441","opt_zone_rlydevrule_bs")}, {value: "1", option: langs.getText("p441","opt_zone_rlydevrule_sep")}], message: "", cont: 0},{label:""}]},
            {key: "pgm441_zone_srcdev", title: langs.getText("p441","zone_srcdev"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1},{label: langs.getText("p441","zone_srcdev")}, {name:"ZONE_SRCDEV", value: "", textfield: [{max:info.NO_OF_SLOTS.length}], message: "", cont: 0}, {label: langs.getText("common","seq_num")}]},
            {key: "pgm441_zone_destdev", title: langs.getText("p441","zone_destdev"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1},{label: langs.getText("p441","zone_destdev")}, {name:"ZONE_DESTDEV", value: "", textfield: [{max:info.NO_OF_SLOTS.length}], message: "", cont: 0}, {label: langs.getText("common","seq_num")}]},
            {key: "pgm441_zone_maxconns", title: langs.getText("p441","zone_maxconns"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1},{label: langs.getText("p441","zone_maxconns")}, {name:"ZONE_MAXCONNS", value: "", textfield: [{max:4}], message: "", cont: 0}, {label: "0-"+info.NO_OF_STNS+" (0:"+langs.getText("common","no_limit")+")"}]},
            {key: "pgm441_zone_usefwip", title: langs.getText("p441","zone_usefwip"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1},{label: langs.getText("p441","zone_usefwip")}, {name:"ZONE_USEFWIP", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},			
		]}
    ]}
);
