var NO_OF_ACL = "250";

if(NO_OF_ACL) {
	var range_guide = " (1 - "+NO_OF_ACL+")";
	if(NO_OF_ACL < 100) {
		var maxInputRange = NO_OF_ACL;
	} else {
		var maxInputRange = "100";
	}
}

define(
    {elements:[
        {name:"tab1", tab: [
				{key: "pgm255_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}, {btn: langs.getText("p255","btn_p255_sort"), btn_type: "btn_p255_sort auth_write"}, {btn: langs.getText("common","apply"), btn_type: "btn_p255_apply auth_write"}, {btn: langs.getText("p255","btn_p255_pause"), btn_type: "btn_p255_pause auth_write"}, {btn: langs.getText("common","clear"), btn_type: "btn_p255_clear auth_write"}, {btn: langs.getText("p255","btn_p255_help"), btn_type: "btn_overview btn_p255_help"}]},
            {key: "pgm255_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("p255","deny_range")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
            {key: "pgm255_ctrl_list", contents: [{text: langs.getText("common","acl_usage")+" : "}, {name:"ACLUSAGE", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: ""}, {br: 1}, 
                                                 {text: langs.getText("common","defaclact")+" : "}, {name:"ACLDFTACTION", value: "", select:[{value: "0", option: langs.getText("p255","opt_acldftaction_da")}, {value: "1", option: langs.getText("p255","opt_acldftaction_aa")}, {value: "2", option: langs.getText("p255","opt_acldftaction_dl")}, {value: "3", option: langs.getText("p255","opt_acldftaction_al")}], message: ""}, {br: 1}]},
            {key: "pgm255_mktbl", table:[{label: langs.getText("common","index")}, {label: langs.getText("p255","acl_protocol")}, {label: langs.getText("p255","acl_port")}, {label: langs.getText("p255","acl_srcport")}, {label: langs.getText("p255","acl_ip")}, {label: langs.getText("common","remark")}], 
                              data_form:[{key: "", tr: [{name:"ACL_INDEX", value:"", label: 1}, 
                                                        {name:"ACL_PROTOCOL", value:"", select:[{value: "0", option: langs.getText("common","not_assigned")}, {value: "1", option: langs.getText("common","opt_all")}, {value: "2", option: "TCP"}, {value: "3", option: "UDP"}, {value: "4", option: "ICMP"}], message: ""}, 
                                                        {name:"ACL_STARTPORT", value:"", textfield: [{max: 5, size: 2}], message: ""}, {label: " - ", cont: 1}, {name:"ACL_ENDPORT", value:"", textfield: [{max: 5, size: 2}], message: "", cont: 1}, 
                                                        {name:"ACL_SRCPORT", value:"", select:[{value: "0", option: " "}, {value: "1", option: langs.getText("p255","opt_acl_srcport_dest")}, {value: "2", option: langs.getText("p255","opt_acl_srcport_src")}], message: ""}, 
                                                        {name:"ACL_STARTIP", value:"", textfield: [{max: 15, size: 14}], message: ""}, {label: " / ", cont: 1}, {name:"ACL_ENDIP", value:"", textfield: [{max: 15, size: 14}], message: "", cont: 1}, 
                                                        {name:"ACL_REMARK", value:"", textfield: [{max: 24, size: 24}], message: ""}]}],
                          variable_data:[]}
        ]}
    ]}
);
