if(info.NO_OF_ZONE) {
   var range_zone = "1 - "+info.NO_OF_ZONE;
} else {
   var range_zone = "";
}
define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm331_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm331_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: "pgm331_tnet_cmenable", title: langs.getText("p331","tnet_cmenable"), tr:[{order: 1}, {label: langs.getText("p331","tnet_cmenable")}, {name:"TNET_CMENABLE", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm331_tnet_cmtype", title: langs.getText("p331","tnet_cmtype"), tr:[{order: 1}, {label: langs.getText("p331","tnet_cmtype")}, {name:"TNET_CMTYPE", value:"", select:[{value: "0", option: "eMG/UCP"}, {value: "1", option: "CM"}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm331_tnet_cm1", title: "CM 1", tr:[{order: 1}, {label: "CM 1"}, {name:"TNET_CMACT1", value:"", select:[{value: "1", option: "("+langs.getText("common","active")+")"}], message: "", cont: 1, show: 0}, {label: langs.getText("common","ipaddr")+" : "}, {name:"TNET_CMIP1", value: "", textfield: [{max: 15, size: 20}], message: "", cont: 1}, {label: " "+langs.getText("common","macaddr")+" : ", cont: 1}, {name:"TNET_CMMAC1", value: "", textfield: [{max: 12, size: 20}], message: "", cont: 1}, {label: ""}]},
            {key: "pgm331_tnet_cm2", title: "CM 2", tr:[{order: 1}, {label: "CM 2"}, {name:"TNET_CMACT2", value:"", select:[{value: "1", option: "("+langs.getText("common","active")+")"}], message: "", cont: 1, show: 0}, {label: langs.getText("common","ipaddr")+" : "}, {name:"TNET_CMIP2", value: "", textfield: [{max: 15, size: 20}], message: "", cont: 1}, {label: " "+langs.getText("common","macaddr")+" : ", cont: 1}, {name:"TNET_CMMAC2", value: "", textfield: [{max: 12, size: 20}], message: "", cont: 1}, {label: ""}]},
            {key: "pgm331_tnet_cmport", title: langs.getText("p331","tnet_cmport"), tr:[{order: 1}, {label: langs.getText("p331","tnet_cmport")}, {name:"TNET_CMPORT", value: "", textfield: [{max: 4}], message: "", cont: 0}, {label: "0001-9999"}]},
            {key: "pgm331_tnet_cmtotal", title: langs.getText("common","total_portnum"), tr:[{order: 1}, {label: langs.getText("common","total_portnum")}, {name:"TNET_CMTOTAL", value: "", textfield: [{max: 4}], message: "", cont: 0}, {label: "0000-9999"}]},
            {key: "pgm331_tnet_pollingcnt", title: langs.getText("p331","tnet_pollingcnt"), tr:[{order: 1}, {label: langs.getText("p331","tnet_pollingcnt")}, {name:"TNET_POLLINGCNT", value: "", textfield: [{max: 2}], message: "", cont: 0}, {label: "00-99"}]},
            {key: "pgm331_tnet_pollingint", title: langs.getText("p331","tnet_pollingint"), tr:[{order: 1}, {label: langs.getText("p331","tnet_pollingint")}, {name:"TNET_POLLINGINT", value: "", textfield: [{max: 2}], message: "", cont: 0}, {label: "00-99"}]},
			{key: "pgm331_tnet_zoneno", title: langs.getText("common","zone_number"), tr:[{order: 1}, {label: langs.getText("common","zone_number")}, {name:"TNET_CMZONENO", value: "", textfield: [{max: 2}], message: "", cont: 0}, {label: range_zone}]}
		]}
    ]}
);
