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

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

if(info.PHASE >= 3.0) {

column_config["pgm4461"] = [{readOnly: true}, {maxLength:8}, {maxLength:8}, {maxLength:8}, {maxLength:8}, {maxLength:32}, {maxLength:32}, {maxLength:32}, {maxLength:32}, {maxLength:32}, {maxLength:32}, {maxLength:32}, {maxLength:32}, {maxLength:64}, {type: 'dropdown', source: [langs.getText("common","opt_off"), langs.getText("common","opt_on")]}, {maxLength:32}, {type: 'dropdown', source: [langs.getText("common","opt_off"), langs.getText("common","opt_on")]}, {type: 'dropdown', source: [langs.getText("p446","ucs_advanced"),langs.getText("p446","ucs_basic"),langs.getText("p446","ucs_power"),langs.getText("p446","ucs_vprem"), langs.getText("p446","ucs_nvprem"), langs.getText("p446","ucs_mobile")]}];

define(
    {elements:[
        {name:"tab1", tab: [
        {key: "pgm4461_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: "pgm4461_preload", preload: [{name: "RANGE_TYPE_1", range_type: 2}, {text: langs.getText("common","enter_ucsserverid")+range_guide+" : "}, {name: "RANGE_1_0", value: "", textfield: [{max: 2, size: 5}], message: ""}, {btn: langs.getText("common","load"), btn_type: "btn_load"}, langs.Range_Error_Table(), {endload: 1}, {br: 2}, {text: langs.getText("common","ucsserverid")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
		  {key: "pgm4461_dbsync", contents: [{br: 1}, {text: "(*) : "+langs.getText("common","required_input")}, br1, set_dip3on, {br: 2}, {name:"UCS_DBSYNC", value:"", chk_type: "chk_selectall", chk: 1},{text: " "+langs.getText("p446","ucs_dbsync")}, {br:2}, {text: langs.getText("p446","prem_page")+" : "},{name:"PREM_PAGE_SEL", value:"", select: [{value: "1", option: "1"}, {value: "2", option: "2"}, {value: "3", option: "3"}, {value: "4", option: "4"}], message: ""},{text: " "}, {btn: langs.getText("common","load"), btn_type: "btn_pre_page_sel"}]},
		  {key: "pgm4461_mktbl", edit_table:[{label: langs.getText("common","index")}, {label: langs.getText("p446","ucsclient_stanum")+" (*)"},{label: langs.getText("p446","ucsclient_masternum")},{label: langs.getText("p446","ucsclient_member1num")},{label: langs.getText("p446","ucsclient_member2num")}, {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_MASTERNUMBER", value:"", label: 1},
																			{name:"UCS_MEMNUMBER1", value:"", label: 1},
																			{name:"UCS_MEMNUMBER2", 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_advanced")},{value: "1", option: langs.getText("p446","ucs_basic")},{value: "2", option: langs.getText("p446","ucs_power")},{value: "5", option: langs.getText("p446","ucs_vprem")}, {value: "6", option: langs.getText("p446","ucs_nvprem")}, {value: "7", option: langs.getText("p446","ucs_mobile")}], message: "", show: 0}]}],
								    variable_data:[{}]}
        ]}
    ]}
);
}
else{
column_config["pgm4461"] = [{readOnly: true}, {maxLength:8}, {maxLength:32}, {maxLength:32}, {maxLength:32}, {maxLength:32}, {maxLength:32}, {maxLength:32}, {maxLength:32}, {maxLength:32}, {maxLength:64}, {type: 'dropdown', source: [langs.getText("common","opt_off"), langs.getText("common","opt_on")]}, {maxLength:32}, {type: 'dropdown', source: [langs.getText("common","opt_off"), langs.getText("common","opt_on")]}, {type: 'dropdown', source: [langs.getText("p446","ucs_vprem"), langs.getText("p446","ucs_nvprem"), langs.getText("p446","ucs_mobile")]}];

define(
    {elements:[
        {name:"tab1", tab: [
        {key: "pgm4461_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: "pgm4461_preload", preload: [{name: "RANGE_TYPE_1", range_type: 2}, {text: langs.getText("common","enter_ucsserverid")+range_guide+" : "}, {name: "RANGE_1_0", value: "", textfield: [{max: 2, size: 5}], message: ""}, {btn: langs.getText("common","load"), btn_type: "btn_load"}, langs.Range_Error_Table(), {endload: 1}, {br: 2}, {text: langs.getText("common","ucsserverid")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
		  {key: "pgm4461_dbsync", contents: [{br: 1}, {text: "(*) : "+langs.getText("common","required_input")}, br1, set_dip3on, {br: 2}, {name:"UCS_DBSYNC", value:"", chk_type: "chk_selectall", chk: 1},{text: " "+langs.getText("p446","ucs_dbsync")}, {br:2}, {text: langs.getText("p446","prem_page")+" : "},{name:"PREM_PAGE_SEL", value:"", select: [{value: "1", option: "1"}, {value: "2", option: "2"}, {value: "3", option: "3"}, {value: "4", option: "4"}], message: ""},{text: " "}, {btn: langs.getText("common","load"), btn_type: "btn_pre_page_sel"}]},
		  {key: "pgm4461_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: "2", option: langs.getText("p446","ucs_vprem")}, {value: "3", option: langs.getText("p446","ucs_nvprem")}, {value: "4", option: langs.getText("p446","ucs_mobile")}], message: "", show: 0}]}],
								    variable_data:[{}]}
        ]}
    ]}
);
}
