if(info.NO_CRR_TBL) {
    var range_guide = " (0 - "+info.NO_CRR_TBL+")";
} else {
    var range_guide = "";
}

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm252_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm252_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","maxrangeover_50")}, {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: "pgm252_crrenable", title: langs.getText("p252","crrenable"), contents: [{text: langs.getText("p252","crrenable")+" : "}, {name:"CRRENABLE", value:"", select:[{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: ""}]},
            {key: "pgm252_crrinit", title: langs.getText("p252","crrinit"), contents: [{text: langs.getText("p252","crrinit")+" : "}, {name:"CRRINIT", value:"", chk_type: "chk_selectall", chk: 1}]},
            {key: "pgm252_mktbl", title: langs.getText("common","mktbl"), table:[{label: langs.getText("common","index")}, {label: langs.getText("p252","crr_cpcogrp")}, {label: langs.getText("p252","crr_compdgt")}, {label: langs.getText("p252","crr_telnum")}, {label: langs.getText("p252","crr_cotype")}, {label: langs.getText("p252","crr_destcogrp")}], 
                                                                        data_form:[{key: "", tr: [{name:"CRR_INDEX", value:"", label: 1}, 
                                                                                                  {name:"CRR_CPCOGRP", value:"", textfield: [{max: 3, size: 3}], message: "", cont: 0},
                                                                                                  {name:"CRR_COMPDGT", value:"", textfield: [{max: 12, size: 12}], message: "", cont: 0},
                                                                                                  {name:"CRR_TELNUM", value:"", textfield: [{max: 20, size: 20}], message: "", cont: 0},
                                                                                                  {name:"CRR_COTYPE", value:"", select:[{value: "0", option: langs.getText("common","not_assigned")}, {value: "1", option: langs.getText("p252","opt_crr_cotype_net")}, {value: "2", option: langs.getText("p252","opt_crr_cotype_disa")}], message: "", cont: 0},
                                                                                                  {name:"CRR_DESTCOGRP", value:"", textfield: [{max: 3, size: 3}], message: "", cont: 0}]}],
                                                                    variable_data:[]}
        ]}
    ]}
);
