 if(info.PHASE >= 2)
{
	var v_annc = {label: "0 - "+info.MAX_DISA_HUNT_ANNC_ALL+" (0 : "+langs.getText("common","unused")+")"};
}
else
{
	var v_annc = {label: "0-70 (0 : "+langs.getText("common","unused")+")"};
}

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm3131_button", button: [{btn: langs.getText("common","chk_in"), btn_type: "btn_save auth_write"}]},
            {key: "pgm3131_preload", preload: [{name: "RANGE_TYPE_1", range_type: 1}, {text: langs.getText("common","enter_roomnum")+" : "}, {name: "RANGE_1_0", value: "", textfield: [{max: 8, size: 10}], message: ""}, {btn: langs.getText("common","load"), btn_type: "btn_load"}, langs.Range_Error_Table(), {endload: 1}, {br: 2}, {text: langs.getText("common","room_num")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
            {key: "pgm3131_mktbl", table: [{label: langs.getText("common","order"), sort: "num"}, {label: langs.getText("common","attr")}, {label: langs.getText("common","val")}, {label: langs.getText("common","remark")}]}, 
            {key: "pgm3131_ci_name", tr:[{order: 1}, {label: langs.getText("common","guest_name")}, {name:"CI_NAME", value: "", textfield: [{max: 20, size: 30}], message: "", cont: 0, enable_mullang: 1}, {label: langs.getText("common","max") + " 20" + langs.getText("common","cmt_byte")}]}, 
            {key: "pgm3131_ci_cos", tr:[{order: 1}, {label: langs.getText("common","cos")}, {label: langs.getText("common","daytime")+": "}, {name:"CI_DAYCOS", value: "", select: [{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"}], message: "", cont: 1}, 
													 {label: " "+langs.getText("common","nighttime")+": ", cont: 1}, {name:"CI_NIGHTCOS", value: "", select: [{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"}], message: "", cont: 1}, {label: ""}]}, 
				{key: "pgm3131_ci_wake", tr:[{order: 1}, {label: langs.getText("common","wakeup")}, {label: langs.getText("common","simple_hour")+": "}, {name:"CI_WAKEHH", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													  {label: " "+langs.getText("common","two_word_minute")+": ", cont: 1}, {name:"CI_WAKEMM", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													  {label: " ", cont: 1}, {name:"CI_WAKEOPT", value: "", select: [{value: "0", option: langs.getText("common","one_time")}, {value: "1", option: langs.getText("common","everyday")}], message: "", cont: 1}, {label: langs.getText("p3131","cmt_wake")}]}, 
				{key: "pgm3131_ci_alarm1", tr:[{order: 1}, {label: langs.getText("common","wakeup")+" 1"}, {label: langs.getText("common","simple_hour")+": "}, {name:"CI_ALARMHOUR1", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " "+langs.getText("common","two_word_minute")+": ", cont: 1}, {name:"CI_ALARMMIN1", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " ", cont: 1}, {name:"CI_ALARMTYPE1", value: "", select: [{value: "0", option: langs.getText("common","opt_disable")}, {value: "1", option: langs.getText("common","simple_yymmdd")}, {value: "2", option: langs.getText("common","simple_montofri")}, {value: "3", option: langs.getText("common","simple_montosat")}, {value: "4", option: langs.getText("common","simple_montosun")}], message: "", cont: 1}, 
													    {label: " ", cont: 1}, {label: " "+langs.getText("common","simple_yy")+": ", cont: 1}, {name:"CI_ALARMYY1", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " "+langs.getText("common","simple_month")+": ", cont: 1}, {name:"CI_ALARMMM1", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " "+langs.getText("common","alarmdd")+": ", cont: 1}, {name:"CI_ALARMDD1", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, {label: langs.getText("p3131","cmt_alarm")}]}, 
				{key: "pgm3131_ci_alarm2", tr:[{order: 1}, {label: langs.getText("common","wakeup")+" 2"}, {label: langs.getText("common","simple_hour")+": "}, {name:"CI_ALARMHOUR2", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " "+langs.getText("common","two_word_minute")+": ", cont: 1}, {name:"CI_ALARMMIN2", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " ", cont: 1}, {name:"CI_ALARMTYPE2", value: "", select: [{value: "0", option: langs.getText("common","opt_disable")}, {value: "1", option: langs.getText("common","simple_yymmdd")}, {value: "2", option: langs.getText("common","simple_montofri")}, {value: "3", option: langs.getText("common","simple_montosat")}, {value: "4", option: langs.getText("common","simple_montosun")}], message: "", cont: 1}, 
													    {label: " ", cont: 1}, {label: " "+langs.getText("common","simple_yy")+": ", cont: 1}, {name:"CI_ALARMYY2", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " "+langs.getText("common","simple_month")+": ", cont: 1}, {name:"CI_ALARMMM2", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " "+langs.getText("common","alarmdd")+": ", cont: 1}, {name:"CI_ALARMDD2", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, {label: langs.getText("p3131","cmt_alarm")}]}, 
				{key: "pgm3131_ci_alarm3", tr:[{order: 1}, {label: langs.getText("common","wakeup")+" 3"}, {label: langs.getText("common","simple_hour")+": "}, {name:"CI_ALARMHOUR3", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " "+langs.getText("common","two_word_minute")+": ", cont: 1}, {name:"CI_ALARMMIN3", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " ", cont: 1}, {name:"CI_ALARMTYPE3", value: "", select: [{value: "0", option: langs.getText("common","opt_disable")}, {value: "1", option: langs.getText("common","simple_yymmdd")}, {value: "2", option: langs.getText("common","simple_montofri")}, {value: "3", option: langs.getText("common","simple_montosat")}, {value: "4", option: langs.getText("common","simple_montosun")}], message: "", cont: 1}, 
													    {label: " ", cont: 1}, {label: " "+langs.getText("common","simple_yy")+": ", cont: 1}, {name:"CI_ALARMYY3", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " "+langs.getText("common","simple_month")+": ", cont: 1}, {name:"CI_ALARMMM3", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " "+langs.getText("common","alarmdd")+": ", cont: 1}, {name:"CI_ALARMDD3", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, {label: langs.getText("p3131","cmt_alarm")}]}, 
				{key: "pgm3131_ci_alarm4", tr:[{order: 1}, {label: langs.getText("common","wakeup")+" 4"}, {label: langs.getText("common","simple_hour")+": "}, {name:"CI_ALARMHOUR4", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " "+langs.getText("common","two_word_minute")+": ", cont: 1}, {name:"CI_ALARMMIN4", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " ", cont: 1}, {name:"CI_ALARMTYPE4", value: "", select: [{value: "0", option: langs.getText("common","opt_disable")}, {value: "1", option: langs.getText("common","simple_yymmdd")}, {value: "2", option: langs.getText("common","simple_montofri")}, {value: "3", option: langs.getText("common","simple_montosat")}, {value: "4", option: langs.getText("common","simple_montosun")}], message: "", cont: 1}, 
													    {label: " ", cont: 1}, {label: " "+langs.getText("common","simple_yy")+": ", cont: 1}, {name:"CI_ALARMYY4", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " "+langs.getText("common","simple_month")+": ", cont: 1}, {name:"CI_ALARMMM4", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " "+langs.getText("common","alarmdd")+": ", cont: 1}, {name:"CI_ALARMDD4", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, {label: langs.getText("p3131","cmt_alarm")}]}, 
				{key: "pgm3131_ci_alarm5", tr:[{order: 1}, {label: langs.getText("common","wakeup")+" 5"}, {label: langs.getText("common","simple_hour")+": "}, {name:"CI_ALARMHOUR5", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " "+langs.getText("common","two_word_minute")+": ", cont: 1}, {name:"CI_ALARMMIN5", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " ", cont: 1}, {name:"CI_ALARMTYPE5", value: "", select: [{value: "0", option: langs.getText("common","opt_disable")}, {value: "1", option: langs.getText("common","simple_yymmdd")}, {value: "2", option: langs.getText("common","simple_montofri")}, {value: "3", option: langs.getText("common","simple_montosat")}, {value: "4", option: langs.getText("common","simple_montosun")}], message: "", cont: 1}, 
													    {label: " ", cont: 1}, {label: " "+langs.getText("common","simple_yy")+": ", cont: 1}, {name:"CI_ALARMYY5", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " "+langs.getText("common","simple_month")+": ", cont: 1}, {name:"CI_ALARMMM5", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, 
													    {label: " "+langs.getText("common","alarmdd")+": ", cont: 1}, {name:"CI_ALARMDD5", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 1}, {label: langs.getText("p3131","cmt_alarm")}]}, 
            {key: "pgm3131_ci_icm", tr:[{order: 1}, {label: langs.getText("common","icm_call")}, {name:"CI_ICM", value: "", select: [{value: "0", option: langs.getText("common","opt_yes")}, {value: "1", option: langs.getText("common","opt_no")}], message: "", cont: 0}, {label: ""}]}, 
            {key: "pgm3131_ci_grp", tr:[{order: 1}, {label: langs.getText("p3131","ci_grp")}, {name:"CI_GRP", value: "", textfield: [{max: 2, size: 4}], message: "", cont: 0}, {label: "00 - 99"}]}, 
            {key: "pgm3131_ci_auth", tr:[{order: 1}, {label: langs.getText("p3131","auth_code")}, {name:"CI_AUTH", value: "", textfield: [{max: 12, size: 14}], message: "", cont: 0}, {label: ""}]}, 
            {key: "pgm3131_ci_paid", tr:[{order: 1}, {label: langs.getText("common","prepaid")}, {name:"CI_PAID", value: "", textfield: [{max: 6, size: 10}], message: "", cont: 0}, {label: "0 - 999999"}]}, 
            {key: "pgm3131_ci_crt", tr:[{order: 1}, {label: langs.getText("p3131","ci_crt")}, {name:"CI_CRT", value: "", textfield: [{max: 1, size: 2}], message: "", cont: 0}, {label: "0 - 5"}]}, 
            {key: "pgm3131_ci_prolan", tr:[{order: 1}, {label: langs.getText("common","multi_language")}, {name:"CI_PROLAN", value: "", select: [{value: "1", option: langs.getText("common","opt_prompt")+"1"}, {value: "2", option: langs.getText("common","opt_prompt")+"2"}, {value: "3", option: langs.getText("common","opt_prompt")+"3"}, {value: "4", option: langs.getText("common","opt_prompt")+"4"}, {value: "5", option: langs.getText("common","opt_prompt")+"5"}, {value: "6", option: langs.getText("common","opt_prompt")+"6"}], message: "", cont: 0}, {label: ""}]}, 
            {key: "pgm3131_ci_wakean", tr:[{order: 1}, {label: langs.getText("common","wakeup_annc")}, {name:"CI_WAKEAN", value: "", textfield: [{max: 3, size: 4}], message: "", cont: 0},v_annc]}, 
            {key: "pgm3131_ci_comname", tr:[{order: 1}, {label: langs.getText("common","company_name")}, {name:"CI_COMNAME", value: "", textfield: [{max: 30, size: 40}], message: "", cont: 0, enable_mullang: 1}, {label: langs.getText("common","max") + " 30" + langs.getText("common","cmt_byte")}]}, 
            {key: "pgm3131_ci_mainadd", tr:[{order: 1}, {label: langs.getText("common","street_addr")}, {name:"CI_MAINADD", value: "", textfield: [{max: 70, size: 95}], message: "", cont: 0, enable_mullang: 1}, {label: langs.getText("common","max") + " 70" + langs.getText("common","cmt_byte")}]}, 
            {key: "pgm3131_ci_subadd", tr:[{order: 1}, {label: langs.getText("common","city_addr")}, {name:"CI_SUBADD", value: "", textfield: [{max: 50, size: 70}], message: "", cont: 0, enable_mullang: 1}, {label: langs.getText("common","max") + " 50" + langs.getText("common","cmt_byte")}]}
		]}
	]}
);
