if(info.NO_OF_FOP_TBL) {
    var range_guide = " (0 - "+info.NO_OF_FOP_TBL+")";
	if((eval(info.NO_OF_FOP_TBL)+1) < 100) {
		var maxInputRange = (eval(info.NO_OF_FOP_TBL)+1).toString;
	} else {
		var maxInputRange = "100";
	}
} else {
    var range_guide = "";
}

/* var range_guide = ""; //TBD : Varaiable Range by CRR enable */

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm333_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm333_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: "", default_range: getDefaultRange(range_guide, maxInputRange), 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("common","index_range")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
            {key: "pgm333_fopenable", contents: [{text: langs.getText("p333","fopenable")+" : "}, {name:"FOPENABLE", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: ""}]},
            {key: "pgm333_fopinit", contents: [{text: langs.getText("p333","fopinit")+" : "}, {name:"FOPINIT", value:"", chk_type: "chk_selectall", chk: 1}]},
            {key: "pgm333_mktbl", table: [{label: langs.getText("common","index")}, {label: langs.getText("common","numplan")}, {label: langs.getText("common","cog")}, {label: langs.getText("p333","fop_telnum")}],
                              data_form: [{key: "", tr: [{name: "FOP_INDEX", value: "", label: 1}, {name: "FOP_NUMPLAN", value: "", textfield: [{max: 8, size: 8}], message: "", cont: 0}, {name: "FOP_COGRP", value: "", textfield: [{max: 3, size: 3}], message: "", cont: 0}, {name: "FOP_TELNUM", value: "", textfield: [{max: 20, size: 20}], message: "", cont: 0}]}],
                          variable_data: [{}]}
        ]}
    ]}
);
