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

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm433_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm433_preload", preload: [{name: "RANGE_TYPE_1", range_type: 2}, {text: langs.getText("common","enter_range")+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","range")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
            {key: "pgm433_mktbl", title: langs.getText("common","mktbl"), table: [{label: langs.getText("common","attr")}, {label: langs.getText("common","val")}, {label: langs.getText("common","range")}]},
            {key: "pgm433_alm_enable", title: langs.getText("common","alm_enable"), tr:[{label: langs.getText("common","alm_enable")}, {name:"ALM_ENABLE", value:"", 
																					     select:[{value: "0", option: langs.getText("common","opt_off")},
													                                             {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0},{label:""}]},
            {key: "pgm433_alm_ctype", title: langs.getText("common","alm_ctype"), tr:[{label: langs.getText("common","alm_ctype")}, {name:"ALM_CTYPE", value:"", 
																					   select:[{value: "0", option: langs.getText("common","open")},
													                                           {value: "1", option: langs.getText("common","opt_alm_ctype_close")}], message: "", cont: 0},{label:""}]},
            {key: "pgm433_alm_mode", title: langs.getText("common","alm_mode"), tr:[{label: langs.getText("common","alm_mode")}, {name:"ALM_MODE", value:"", 
																					 select:[{value: "0", option: langs.getText("common","doorbell")},
													                                         {value: "1", option: langs.getText("common","opt_almmode")}], message: "", cont: 0},{label:""}]},
            {key: "pgm433_alm_sigmode", title: langs.getText("common","alm_sigmode"), tr:[{label: langs.getText("common","alm_sigmode")}, {name:"ALM_SIGMODE", value:"", 
																					       select:[{value: "0", option: langs.getText("common","once")},
													                                               {value: "1", option: langs.getText("common","repeat")}], message: "", cont: 0},{label:""}]},
            {key: "pgm433_remote_music_assign", title: langs.getText("p433","remote_music_assign"), th: [{label: langs.getText("p433","remote_music_assign"), colspan: 3}]},
            {key: "pgm433_alm_moh", title: langs.getText("common","moh_type"), tr:[{label: langs.getText("common","moh_type")}, {name:"ALM_MOH", value:"", 
																				   select:[{value: "0", option: langs.getText("common","hold_tone")},
													                                       {value: "1", option: langs.getText("p433","opt_alm_moh_music1")}], message: "", cont: 0},{label:""}]},
            {key: "pgm433_alm_intext", title: langs.getText("common","intext_music"), tr:[{label: langs.getText("common","intext_music")}, {name:"ALM_INTEXT", value:"", 
																					     select:[{value: "0", option: langs.getText("common","internal_music")},
													                                             {value: "1", option: langs.getText("common","extmusic")}], message: "", cont: 0},{label:""}]},
            {key: "pgm433_remote_svc_attr", title: langs.getText("p433","remote_svc_attr"), th: [{label: langs.getText("p433","remote_svc_attr"), colspan: 3}]},
            {key: "pgm433_alm_rtp", title: langs.getText("p433","alm_rtp"), tr:[{label: langs.getText("p433","alm_rtp")}, {name:"ALM_RTP", value: "", textfield: [{max:3}], message: "", cont: 0}, {label: langs.getText("common","max3digit")}]},
            {key: "pgm433_alm_pretag", title: langs.getText("p433","alm_pretag"), tr:[{label: langs.getText("p433","alm_pretag")}, {name:"ALM_PRETAG", value: "", textfield: [{max:2}], message: "", cont: 0}, {label: "0-63"}]},
            {key: "pgm433_alm_fcoa", title: langs.getText("p433","alm_fcoa"), tr:[{label: langs.getText("p433","alm_fcoa")}, {name:"ALM_FCOA", value:"", 
																					 select:[{value: "0", option: "RSG"},
													                                         {value: "1", option: langs.getText("p433","opt_alm_fcoa_sys")}], message: "", cont: 0},{label:""}]},
            {key: "pgm433_alm_fwprot", title: langs.getText("p433","alm_fwprot"), tr:[{label: langs.getText("p433","alm_fwprot")}, {name:"ALM_FWPROT", value:"", 
																					     select:[{value: "0", option: langs.getText("common","opt_off")},
													                                             {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0},{label:""}]}
		]}
    ]}
);
