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

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm151_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm151_preload", preload: [{name: "RANGE_TYPE_1", range_type: 2}, {text: langs.getText("common","enter_corange")+range_guide+" : "}, {name: "RANGE_1_1", value: "", textfield: [{max: 40, size: 50}], message: "", help: langs.re_toolTip()}, {btn: langs.getText("common","load"), btn_type: "btn_load"}, langs.Range_Error_Table(), {endload: 1}, {br: 2}, {text: langs.getText("common","corange")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
            {key: "pgm151_mktbl", title: langs.getText("common","mktbl"), table: [{name: "CHKFLAG", value: "", check_flag: 1}, {label: langs.getText("common","order"), sort: "num"}, {btn: langs.getText("common","btn_chkall"), btn_type: "btn_checkall"}, {label: langs.getText("common","attr"), sort: "str"}, {label: langs.getText("common","val")}, {label: langs.getText("common","range")}]},
            {key: "pgm151_cid_pwd", tr: [{label: ""}, {label: ""}, {label: langs.getText("common","cid_pwd")}, {name: "CIDPWD", value: "", textfield:[{size: 15, max: 12}], message: "", cont: 0}, {label: " ", cont: 1}, {btn: langs.getText("common","btn_gotosetting"), btn_type: "btn_link_to_otherpgm pgm162", cont: 1}, {label: langs.getText("common","max12ch")}]},
				{key: "pgm151_cidcpn_colptbidx", title: langs.getText("p151","cidcpn_colptbidx"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_colptbidx")}, {name: "CIDCPN_COLPTBIDX", value: "", select: [{value: "51", option: langs.getText("common","not_assigned")}, {value: "0", option: "0"}, {value: "1", option: "1"}, {value: "2", option: "2"}, {value: "3", option: "3"}, {value: "4", option: "4"}, {value: "5", option: "5"}, {value: "6", option: "6"}, {value: "7", option: "7"}, {value: "8", option: "8"}, {value: "9", option: "9"}, {value: "10", option: "10"}, {value: "11", option: "11"}, {value: "12", option: "12"}, {value: "13", option: "13"}, {value: "14", option: "14"}, {value: "15", option: "15"}, {value: "16", option: "16"}, {value: "17", option: "17"}, {value: "18", option: "18"}, {value: "19", option: "19"}, {value: "20", option: "20"}, {value: "21", option: "21"}, {value: "22", option: "22"}, {value: "23", option: "23"}, {value: "24", option: "24"}, {value: "25", option: "25"}, {value: "26", option: "26"}, {value: "27", option: "27"}, {value: "28", option: "28"}, {value: "29", option: "29"}, {value: "30", option: "30"}, {value: "31", option: "31"}, {value: "32", option: "32"}, {value: "33", option: "33"}, {value: "34", option: "34"}, {value: "35", option: "35"}, {value: "36", option: "36"}, {value: "37", option: "37"}, {value: "38", option: "38"}, {value: "39", option: "39"}, {value: "40", option: "40"}, {value: "41", option: "41"}, {value: "42", option: "42"}, {value: "43", option: "43"}, {value: "44", option: "44"}, {value: "45", option: "45"}, {value: "46", option: "46"}, {value: "47", option: "47"}, {value: "48", option: "48"}, {value: "49", option: "49"}, {value: "50", option: langs.getText("p151","opt_stacli")}], message: "", cont: 0}, {label: ""}]},
				{key: "pgm151_cidcpn_cliptbidx", title: langs.getText("p151","cidcpn_cliptbidx"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_cliptbidx")}, {name: "CIDCPN_CLIPTBIDX", value: "", select: [{value: "51", option: langs.getText("common","not_assigned")}, {value: "0", option: "0"}, {value: "1", option: "1"}, {value: "2", option: "2"}, {value: "3", option: "3"}, {value: "4", option: "4"}, {value: "5", option: "5"}, {value: "6", option: "6"}, {value: "7", option: "7"}, {value: "8", option: "8"}, {value: "9", option: "9"}, {value: "10", option: "10"}, {value: "11", option: "11"}, {value: "12", option: "12"}, {value: "13", option: "13"}, {value: "14", option: "14"}, {value: "15", option: "15"}, {value: "16", option: "16"}, {value: "17", option: "17"}, {value: "18", option: "18"}, {value: "19", option: "19"}, {value: "20", option: "20"}, {value: "21", option: "21"}, {value: "22", option: "22"}, {value: "23", option: "23"}, {value: "24", option: "24"}, {value: "25", option: "25"}, {value: "26", option: "26"}, {value: "27", option: "27"}, {value: "28", option: "28"}, {value: "29", option: "29"}, {value: "30", option: "30"}, {value: "31", option: "31"}, {value: "32", option: "32"}, {value: "33", option: "33"}, {value: "34", option: "34"}, {value: "35", option: "35"}, {value: "36", option: "36"}, {value: "37", option: "37"}, {value: "38", option: "38"}, {value: "39", option: "39"}, {value: "40", option: "40"}, {value: "41", option: "41"}, {value: "42", option: "42"}, {value: "43", option: "43"}, {value: "44", option: "44"}, {value: "45", option: "45"}, {value: "46", option: "46"}, {value: "47", option: "47"}, {value: "48", option: "48"}, {value: "49", option: "49"}, {value: "50", option: langs.getText("p151","opt_stacli")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm151_cidcpn_typeofno", title: langs.getText("p151","cidcpn_typeofno"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_typeofno")}, {name: "CIDCPN_TYPEOFNO", value: "", select: [{value: "0", option: langs.getText("common","opt_unknown")}, {value: "1", option: langs.getText("common","international")}, {value: "2", option: langs.getText("common","national")}, {value: "3", option: langs.getText("common","unused")}, {value: "4", option: langs.getText("common","subscriber")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm151_cidcpn_inprefix", title: langs.getText("p151","cidcpn_inprefix"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_inprefix")}, {name: "CIDCPN_INPREFIX", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm151_cidcpn_outprefix", title: langs.getText("p151","cidcpn_outprefix"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_outprefix")}, {name: "CIDCPN_OUTPREFIX", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm151_cidcpn_interacc", title: langs.getText("common","inter_acc_code"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("common","inter_acc_code")}, {name: "CIDCPN_INTERACC", value: "", textfield: [{max: 4, size: 5}], message: "", cont: 0}, {label: langs.getText("common","max4digit")}]},
            {key: "pgm151_cidcpn_myarea", title: langs.getText("common","my_areacode"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("common","my_areacode")}, {name: "CIDCPN_MYAREA", value: "", textfield: [{max: 6, size: 5}], message: "", cont: 0}, {label: langs.getText("common","max6digit")}]},
            {key: "pgm151_cidcpn_myareaprefix", title: langs.getText("p151","cidcpn_myareaprefix"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_myareaprefix")}, {name: "CIDCPN_MYAREAPREFIX", value: "", textfield: [{max: 4, size: 5}], message: "", cont: 0}, {label: langs.getText("common","max4digit")}]},
            {key: "pgm151_cidcpn_clitrans", title: langs.getText("p151","cidcpn_clitrans"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_clitrans")}, {name: "CIDCPN_CLITRANS", value: "", select: [{value: "0", option: "CFW"}, {value: "1", option: langs.getText("common","original_cli")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm151_cidcpn_redirect", title: langs.getText("p151","cidcpn_redirect"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_redirect")}, {name: "CIDCPN_REDIRECT", value: "", select: [{value: "0", option: langs.getText("common","opt_noserv")}, {value: "1", option: langs.getText("common","original_cli")}, {value: "2", option: "CFW CLI"}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm151_cidcpn_clichoice", title: langs.getText("p151","cidcpn_clichoice"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_clichoice")}, {name: "CIDCPN_CLICHOICE", value: "", select: [{value: "0", option: langs.getText("p151","opt_cidcpn_clichoice_tpc")}, {value: "1", option: langs.getText("common","original_cli")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm151_cidcpn_callingn", title: langs.getText("p151","cidcpn_callingn"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_callingn")}, {name: "CIDCPN_CALLINGN", value: "", select: [{value: "0", option: langs.getText("common","opt_unknown")}, {value: "1", option: langs.getText("common","opt_isdn_telephony")}, {value: "2", option: langs.getText("common","data_numbering")}, {value: "3", option: langs.getText("common","telex")}, {value: "4", option: langs.getText("common","national_std")}, {value: "5", option: langs.getText("common","txt_private")}, {value: "6", option: langs.getText("common","reserved")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm151_cidcpn_calledn", title: langs.getText("p151","cidcpn_calledn"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_calledn")}, {name: "CIDCPN_CALLEDN", value: "", select: [{value: "0", option: langs.getText("common","opt_unknown")}, {value: "1", option: langs.getText("common","opt_isdn_telephony")}, {value: "2", option: langs.getText("common","data_numbering")}, {value: "3", option: langs.getText("common","telex")}, {value: "4", option: langs.getText("common","national_std")}, {value: "5", option: langs.getText("common","txt_private")}, {value: "6", option: langs.getText("common","reserved")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm151_cidcpn_clitype", title: langs.getText("p151","cidcpn_clitype"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_clitype")}, {name: "CIDCPN_CLITYPE", value: "", select: [{value: "1", option: langs.getText("p151","opt_stacli")+" 1"}, {value: "2", option: langs.getText("p151","opt_stacli")+" 2"}, {value: "3", option: langs.getText("p151","opt_stacli")+" 3"}, {value: "4", option: langs.getText("p151","opt_stacli")+" 4"}, {value: "5", option: langs.getText("p151","opt_stacli")+" 5"}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm151_cidcpn_didrmnum", title: langs.getText("p151","cidcpn_didrmnum"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_didrmnum")}, {name: "CIDCPN_DIDRMNUM", value: "", textfield: [{max: 2}], message: "", cont: 0}, {label: "00-99"}]},
            {key: "pgm151_cidcpn_odrm", title: langs.getText("p151","cidcpn_odrm"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_odrm")}, {name: "CIDCPN_ODRM", value: "", select: [{value: "0", option: langs.getText("common","opt_disable")}, {value: "1", option: langs.getText("common","opt_enable")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm151_cidcpn_cidmode", title: langs.getText("p151","cidcpn_cidmode"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_cidmode")}, {name: "CIDCPN_CIDMODE", value: "", select: [{value: "0", option: langs.getText("common","opt_disable")}, {value: "1", option: langs.getText("common","fsk")}, {value: "2", option: "DT-AS(TAS) FSK"}, {value: "3", option: "DTMF"}, {value: "4", option: "RCID"}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm151_cidcpn_rcdidetect", title: langs.getText("p151","cidcpn_rcdidetect"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_rcdidetect")}, {name: "CIDCPN_RCDIDETECT", value: "", select: [{value: "0", option: langs.getText("common","local")}, {value: "1", option: langs.getText("common","opt_all")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm151_cidcpn_rcdirequest", title: langs.getText("p151","cidcpn_rcdirequest"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_rcdirequest")}, {name: "CIDCPN_RCDIREQUEST", value: "", select: [{value: "0", option: langs.getText("common","user")}, {value: "1", option: langs.getText("common","opt_auto")}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm151_cidcpn_rcidfirstdelaytimer", title: langs.getText("p151","cidcpn_rcidfirstdelaytimer"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_rcidfirstdelaytimer")}, {name: "CIDCPN_RCIDFIRSTDELAYTIMER", value: "", textfield: [{max: 3}], message: "", cont: 0}, {label: "*10"+langs.getText("common","cmt_msec"), cont: 1}, {label: "10-150"}]},
            {key: "pgm151_cidcpn_rcidnoanstimer", title: langs.getText("p151","cidcpn_rcidnoanstimer"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_rcidnoanstimer")}, {name: "CIDCPN_RCIDNOANSTIMER", value: "", textfield: [{max: 3}], message: "", cont: 0}, {label: "*"+langs.getText("common","cmt_second"), cont: 1}, {label: "1-300"}]},
            {key: "pgm151_cidcpn_rciddgtnumber", title: langs.getText("p151","cidcpn_rciddgtnumber"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_rciddgtnumber")}, {name: "CIDCPN_RCIDDGTNUMBER", value: "", textfield: [{max: 2}], message: "", cont: 0}, {label: "4-10"}]},
            {key: "pgm151_cidcpn_rcidreqcount", title: langs.getText("p151","cidcpn_rcidreqcount"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_rcidreqcount")}, {name: "CIDCPN_RCIDREQCOUNT", value: "", select: [{value: "1", option: "1"}, {value: "2", option: "2"}, {value: "3", option: "3"}], message: "", cont: 0}, {label: ""}]},
            {key: "pgm151_cidcpn_rcidretrydelaytimer", title: langs.getText("p151","cidcpn_rcidretrydelaytimer"), tr:[{order: 1}, {chk_type: "chk_checkall", chk: 1}, {label: langs.getText("p151","cidcpn_rcidretrydelaytimer")}, {name: "CIDCPN_RCIDRETRYDELAYTIMER", value: "", textfield: [{max: 2}], message: "", cont: 0}, {label: "*10"+langs.getText("common","cmt_msec"), cont: 1}, {label: "10-30"}]}
		]}
	]}
);
