if(info.NO_OF_CO_GRP) {
    var range_guide = " (1 - "+info.NO_OF_CO_GRP+")";
	var co_grp_guide = " 1 - "+info.NO_OF_CO_GRP;
} else {
    var range_guide = "";
	var co_grp_guide = "";
}

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm327_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
	    {key: "pgm327_preload", preload: [{name: "RANGE_TYPE_1", range_type: 2}, {text: langs.getText("common","enter_grpnum")+range_guide+" : "}, {name: "RANGE_1_0", value: "", textfield: [{max: 8}], message: ""}, {btn: langs.getText("common","load"), btn_type: "btn_load"}, langs.Range_Error_Table(), {endload: 1}, {br: 2}, {text: langs.getText("common","grp_num")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}, {br: 2}]},
            {key: "pgm327_mktbl", title: langs.getText("common","mktbl"), table: [{label: langs.getText("common","order"), sort: "num"}, {label: langs.getText("common","attr")}, {label: langs.getText("common","val")}, {label: langs.getText("common","range")}]},
            {key: "pgm327_gr_ipsetup", title: langs.getText("p130","gw_ipsetup"), tr:[{order: 1}, {label: langs.getText("p130","gw_ipsetup")}, {name:"GR_IPSETUP", value:"", select:[{value: "0", option: langs.getText("common","normal")}, {value: "1", option: langs.getText("p130","opt_gw_ipsetup_fast")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm327_gr_iptunn", title: langs.getText("p130","gw_iptunn"), tr:[{order: 1}, {label: langs.getText("p130","gw_iptunn")}, {name:"GR_IPTUNN", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
	    {key: "pgm327_early_media", title: langs.getText("p130","early_media"), tr:[{order: 1}, {label: langs.getText("p130","early_media")},{name: "GR_EMSETUP", value: "", chk_type: "chk_selectall", chk: 1},{label: langs.getText("p130","setup"), cont: 1},{name: "GR_EMPROCEEDING", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p130","proceeding"),cont:1},{name: "GR_EMALERTING", value: "", chk_type: "chk_selectall", chk: 1, cont: 1},{label: langs.getText("p130","alerting"),cont:1}, {label: ""}]},
	    {key: "pgm327_gr_dtmf", title: langs.getText("p130","gw_dtmf"), tr:[{order: 1}, {label: langs.getText("p130","gw_dtmf")}, {name:"GR_DTMF", value:"", select:[{value: "1", option: "IN"},{value: "3", option: "RFC2833"},{value: "2", option:"H245_ALNUM"},{value: "4", option:"H225_SIG"},{value: "5", option:"H245_SIG"}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm327_gr_tcpkeep", title: langs.getText("p130","gw_tcpkeep"), tr:[{order: 1}, {label: langs.getText("p130","gw_tcpkeep")}, {name:"GR_TCPKEEP", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm327_gr_tcpnodelay", title: langs.getText("p130","tcp_nodelay"), tr:[{order: 1}, {label: langs.getText("p130","tcp_nodelay")}, {name:"GR_TCPNODELAY", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm327_gr_sendingsetupack", title: langs.getText("p327","h323_sendingsetupack"), tr:[{order: 1}, {label: langs.getText("p327","h323_sendingsetupack")}, {name:"GR_SENDINGSETUPACK", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm327_gr_firewallip", title: langs.getText("common","firewall_addr"), tr:[{order: 1}, {label: langs.getText("common","firewall_addr")}, {name:"GR_FIREWALLIP", value:"", textfield: [{size: 20, max: 15}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm327_gw_gatekeeper", title: langs.getText("p130","gatekeeper"), th:[{label: langs.getText("p130","gatekeeper"), colspan: 4}]},
	    {key: "pgm327_gr_rasusage", title: langs.getText("p130","gw_rasusage"), tr:[{order: 1}, {label: langs.getText("p130","gw_rasusage")}, {name:"GR_RASUSAGE", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm327_gr_multiport", title: langs.getText("p130","gw_multiport"), tr:[{order: 1}, {label: langs.getText("p130","gw_multiport")}, {name:"GR_MULTIPORT", value:"", textfield: [{max: 5}], message: "", cont: 0}, {label: "1-65535"}]},
            {key: "pgm327_gr_multiip", title: langs.getText("p130","gw_multiip"), tr:[{order: 1}, {label: langs.getText("p130","gw_multiip")}, {name:"GR_MULTIIP", value:"", textfield: [{size: 20, max: 15}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm327_gr_uniport", title: langs.getText("p130","gw_uniport"), tr:[{order: 1}, {label: langs.getText("p130","gw_uniport")}, {name:"GR_UNIPORT", value:"", textfield: [{max: 5}], message: "", cont: 0}, {label: "1-65535"}]},
            {key: "pgm327_gr_uniip", title: langs.getText("p130","gw_uniip"), tr:[{order: 1}, {label: langs.getText("p130","gw_uniip")}, {name:"GR_UNIIP", value:"", textfield: [{size: 20, max: 15}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm327_gr_keepalive", title: langs.getText("p130","gw_keepalive"), tr:[{order: 1}, {label: langs.getText("p130","gw_keepalive")}, {name:"GR_KEEPALIVE", value:"", textfield: [{max: 3}], message: "", cont: 0}, {label: "001-999(1"+langs.getText("common","cmt_second")+")"}]},
            {key: "pgm327_gw_iirmratio", title: langs.getText("p130","iir_mratio"), tr:[{order: 1}, {label: langs.getText("p130","iir_mratio")}, {name:"GR_IIRMRATIO", value:"", textfield: [{max: 3}], message: "", cont: 0}, {label: "10-100 %"}]},
            {key: "pgm327_gr_numprefix", title: langs.getText("p130","gw_numprefix"), tr:[{order: 1}, {label: langs.getText("p130","gw_numprefix")}, {name:"GR_NUMPREFIX", value:"", textfield: [{max: 23}], message: "", cont: 0}, {label: langs.getText("common","max23digit")}]},
            {key: "pgm327_gr_raslight", title: langs.getText("p130","gw_raslight"), tr:[{order: 1}, {label: langs.getText("p130","gw_raslight")}, {name:"GR_RASLIGHT", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm327_gr_gatewayid", title: langs.getText("p130","gw_gatewayid"), tr:[{order: 1}, {label: langs.getText("p130","gw_gatewayid")}, {name:"GR_GATEWAYID", value:"", textfield: [{size: 60, max: 128}], colspan: 2, message: "", cont: 0}]},
            {key: "pgm327_gr_failover", title: langs.getText("p130","gw_failover"), tr:[{order: 1}, {label: langs.getText("p130","gw_failover")}, {name:"GR_FAILOVER", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm327_gr_rthtimer", title: langs.getText("common","rthtimer"), tr:[{order: 1}, {label: langs.getText("common","rthtimer")}, {name:"GR_RTHTIMER", value:"", textfield: [{max: 5}], message: "", cont: 0}, {label: "0, 3 - 15 "+langs.getText("common","cmt_second")}]},
            {key: "pgm327_gr_rthgrpno", title: langs.getText("common","failover_cogrpnum"), tr:[{order: 1}, {label: langs.getText("common","failover_cogrpnum")}, {name:"GR_RTHGRPNO", value:"", textfield: [{max: 5}], message: "", cont: 0}, {label: co_grp_guide}]}
		]}
	]}
);
