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

if ((info.NCODE == "AUS") && ((info.SYSTEM_ID != "iPECS eMG80") && (info.SYSTEM_ID != "iPECS eMG800"))) {
	var br1 = {br: 2};
	var set_dip3on = {text: langs.getText("p446","set_dip3on")};
} else {
	var br1 = {};
	var set_dip3on = {};
}

column_config["pgm446"] = [{readOnly: true}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {type: 'dropdown', source: [langs.getText("common","opt_off"), langs.getText("common","opt_on")]}, {}, {type: 'dropdown', source: [langs.getText("common","opt_off"), langs.getText("common","opt_on")]}, {type: 'dropdown', source: [langs.getText("p446","ucs_vstd"), langs.getText("p446","ucs_nvstd"), langs.getText("p446","ucs_mobile")]}];

define(
    {elements:[
        {name:"tab1", tab: [
        {key: "pgm446_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}, {btn: langs.getText("common","btn_del"), btn_type: "btn_p446_del auth_write"}]},
		  {key: "pgm446_preload", preload: [{name: "RANGE_TYPE_1", range_type: 2}, {text: langs.getText("common","enter_ownerkey")+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","owner_key")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
		  {key: "pgm446_info", contents:[{br: 1}, {text: "(*) : "+langs.getText("common","required_input")}, br1, set_dip3on]},
		  {key: "pgm446_mktbl", edit_table:[{label: langs.getText("common","index")}, {label: langs.getText("p446","ucsclient_stanum")+" (*)"}, {label: langs.getText("common","userid")+" (*)"}, {label: langs.getText("p446","ucsclient_pwd")+" (*)"}, {label: langs.getText("p446","ucsclient_name")+" (*)"}, {label: langs.getText("p446","ucsclient_officephone")}, {label: langs.getText("p446","ucsclient_cellphone")}, {label: langs.getText("p446","ucsclient_homephone")}, {label: langs.getText("p446","ucsclient_officename")}, {label: langs.getText("p446","ucsclient_depart")+" (*)"}, {label: langs.getText("p446","ucsclient_email")+" (*)"}, {label: langs.getText("p446","ucsclient_linkedpair")},/*{label: langs.getText("p446","ucsclient_tempnum")},*/{label: langs.getText("p446","ucsclient_sid")}, {label: langs.getText("p446","ucsclient_mpp")}, {label: langs.getText("common","license")}],
									    data_form:[{key: "", tr: [{name:"UCS_INDEX", value:"", label: 1},
																		   {name:"UCS_DESKPHONE", value:"", label: 1},
																		   {name:"UCS_ID", value:"", label: 1},
																		   {name:"UCS_PWD", value:"", label: 1},
																		   {name:"UCS_NAME", value:"", label: 1, enable_mullang: 1},
																		   {name:"UCS_OFFICEPHONE", value:"", label: 1},
																		   {name:"UCS_CELLPHONE", value:"", label: 1},
																		   {name:"UCS_HOMEPHONE", value:"", label: 1},
																		   {name:"UCS_OFFICENAME", value:"", label: 1, enable_mullang: 1},
																		   {name:"UCS_DEPART", value:"", label: 1, enable_mullang: 1},
																		   {name:"UCS_EMAIL", value:"", label: 1},
																		   {name:"UCS_LINKEDPAIR", value:"", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", show: 0},
																	//	   {name:"UCS_TEMPNUM", value:"", label: 1},
																		   {name:"UCS_SID", value:"", label: 1},
																		   {name:"UCS_MPP", value:"", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", show: 0},
																		   {name:"UCS_LIC", value:"", select: [{value: "0", option: langs.getText("p446","ucs_vstd")}, {value: "1", option: langs.getText("p446","ucs_nvstd")}, {value: "4", option: langs.getText("p446","ucs_mobile")}], message: "", show: 0}]}],
								   variable_data:[{}]}
        ]}
    ]}
);
