var v_1 = [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("p177","opt_smdr_cocall")}, {value: "2", option: langs.getText("p177","opt_smdr_coicmcall")}];

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm177_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm177_mktbl", title: langs.getText("common","mktbl"), table: [{label: langs.getText("common","order")}, {label: langs.getText("common","attr")}, {label: langs.getText("common","val"), colspan: 2}, {label: langs.getText("common","range")}]},
						{key: "pgm177_smdr_saveen", title: langs.getText("p177","smdr_saveen"), tr: [{order: 1}, {label: langs.getText("p177","smdr_saveen")}, {name: "SMDR_SAVEEN", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_printen", title: langs.getText("p177","smdr_printen"), tr: [{order: 1}, {label: langs.getText("p177","smdr_printen")}, {name: "SMDR_PRINTEN", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_longdist", title: langs.getText("p177","smdr_longdist"), tr: [{order: 1}, {label: langs.getText("p177","smdr_longdist")}, {name: "SMDR_LONGDIST", value: "", select: [{value: "0", option: langs.getText("common","opt_all_call")}, {value: "1", option: langs.getText("common","long_distance")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_ldcdc", title: langs.getText("p177","smdr_ldcdc"), tr: [{order: 1}, {label: langs.getText("p177","smdr_ldcdc")}, {name: "SMDR_LDCDC", value: "", textfield: [{max: 2, size: 5}], colspan: 2, message: "", cont: 0}, {label: "07-15"}]},
						{key: "pgm177_smdr_pincall", title: langs.getText("p177","smdr_pincall"), tr: [{order: 1}, {label: langs.getText("p177","smdr_pincall")}, {name: "SMDR_PINCALL", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_pabcall", title: langs.getText("p177","smdr_pabcall"), tr: [{order: 1}, {label: langs.getText("p177","smdr_pabcall")}, {name: "SMDR_PABCALL", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_recddt", title: langs.getText("p177","smdr_recddt"), tr: [{order: 1}, {label: langs.getText("p177","smdr_recddt")}, {name: "SMDR_RECDDT", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_dialdh", title: langs.getText("p177","smdr_dialdh"), tr: [{order: 1}, {label: langs.getText("p177","smdr_dialdh")}, {name: "SMDR_DIALDH", value: "", textfield: [{max: 2, size: 5}], colspan: 2, message: "", cont: 0}, {label: "0-9"}]},
						{key: "pgm177_smdr_hidedgt", title: langs.getText("p177","smdr_hidedgt"), tr: [{order: 1}, {label: langs.getText("p177","smdr_hidedgt")}, {name: "SMDR_HIDEDGT", value: "", select: [{value: "0", option: langs.getText("p177","opt_hidedgt_left")}, {value: "1", option: langs.getText("p177","opt_hidedgt_right")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_curunit", title: langs.getText("p177","smdr_curunit"), tr: [{order: 1}, {label: langs.getText("p177","smdr_curunit")}, {name: "SMDR_CURUNIT", value: "", textfield: [{max: 3, size: 5}], colspan: 2, message: "", enable_mullang: 1}, {label: langs.getText("p177","cmt_max3ch")}]},
						{key: "pgm177_smdr_costperunp", title: langs.getText("p177","smdr_costperunp"), tr: [{order: 1}, {label: langs.getText("p177","smdr_costperunp")}, {name: "SMDR_COSTPERUNP", value: "", textfield: [{max: 6, size: 8}], colspan: 2, message: "", cont: 0}, {label: langs.getText("common","must6digit")}]},
						{key: "pgm177_smdr_fration", title: langs.getText("p177","smdr_fration"), tr: [{order: 1}, {label: langs.getText("p177","smdr_fration")}, {name: "SMDR_FRATION", value: "", textfield: [{max: 1, size: 5}], colspan: 2, message: "", cont: 0}, {label: "0-5"}]},
						{key: "pgm177_smdr_stime", title: langs.getText("p177","smdr_stime"), tr: [{order: 1}, {label: langs.getText("p177","smdr_stime")}, {name: "SMDR_STIME", value: "", textfield: [{max: 3, size: 5}], colspan: 2, message: "", cont: 0}, {label: "(*1"+langs.getText("common","cmt_second")+")", cont: 1}, {label: "000-250"}]},
						{key: "pgm177_smdr_ldcdc", title: langs.getText("p177","smdr_ldcdc"),	struct: [{tr: [{order: 1, rowspan: 5}, {label: langs.getText("p177","smdr_ldc"), rowspan: 5}, {label: "1 ", cont: 0}, {name: "SMDR_LDC_1", value: "", textfield: [{max: 2, size: 5}], message: "", cont: 0}, {label: langs.getText("common","max2digit")}]},
						                                                                                 {tr: [{label: "2 ", cont: 0}, {name: "SMDR_LDC_2", value: "", textfield: [{max: 2, size: 5}], message: "", cont: 0}, {label: langs.getText("common","max2digit")}]},
						                                                                                 {tr: [{label: "3 ", cont: 0}, {name: "SMDR_LDC_3", value: "", textfield: [{max: 2, size: 5}], message: "", cont: 0}, {label: langs.getText("common","max2digit")}]},
						                                                                                 {tr: [{label: "4 ", cont: 0}, {name: "SMDR_LDC_4", value: "", textfield: [{max: 2, size: 5}], message: "", cont: 0}, {label: langs.getText("common","max2digit")}]},
						                                                                                 {tr: [{label: "5 ", cont: 0}, {name: "SMDR_LDC_5", value: "", textfield: [{max: 2, size: 5}], message: "", cont: 0}, {label: langs.getText("common","max2digit")}]}]},
						{key: "pgm177_smdr_smdrsvci", title: langs.getText("p177","smdr_smdrsvci"), tr: [{order: 1}, {label: langs.getText("p177","smdr_smdrsvci")}, {name: "SMDR_SVCI", value: "", select: [{value: "0", option: langs.getText("common","bell_ring")}, {value: "1", option: "CLI"}, {value: "2", option: "CPN"}], colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_smdrsvcii", title: langs.getText("p177","smdr_smdrsvcii"), tr: [{order: 1}, {label: langs.getText("p177","smdr_smdrsvcii")}, {name: "SMDR_SVCII", value: "", select: [{value: "0", option: langs.getText("common","bell_ring")}, {value: "1", option: "CLI"}, {value: "2", option: "CPN"}, {value: "3", option: langs.getText("common","opt_none")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_msn", title: langs.getText("p177","smdr_msn"), tr: [{order: 1}, {label: langs.getText("p177","smdr_msn")}, {name: "SMDR_MSN", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_serial", title: langs.getText("p177","smdr_serial"), tr: [{order: 1}, {label: langs.getText("p177","smdr_serial")}, {name: "SMDR_SERIAL", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_interface", title: langs.getText("p177","smdr_interface"), tr: [{order: 1}, {label: langs.getText("p177","smdr_interface")}, {name: "SMDR_INTERFACE", value: "", select: v_1, colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_icmsave", title: langs.getText("p177","smdr_icmsave"), tr: [{order: 1}, {label: langs.getText("p177","smdr_icmsave")}, {name: "SMDR_ICMSAVE", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_icmprint", title: langs.getText("p177","smdr_icmprint"), tr: [{order: 1}, {label: langs.getText("p177","smdr_icmprint")}, {name: "SMDR_ICMPRINT", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_disccause", title: langs.getText("p177","smdr_disccause"), tr: [{order: 1}, {label: langs.getText("p177","smdr_disccause")}, {name: "SMDR_DISCCAUSE", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_longtime", title: langs.getText("p177","smdr_longtime"), tr: [{order: 1}, {label: langs.getText("p177","smdr_longtime")}, {name: "SMDR_LONGTIME", value: "", textfield: [{max: 3, size: 5}], colspan: 2, message: "", cont: 0}, {label: "(*10"+langs.getText("common","simple_minute")+")", cont: 1}, {label: "000-144"}]},
						{key: "pgm177_smdr_netcallsave", title: langs.getText("p177","smdr_netcallsave"), tr: [{order: 1}, {label: langs.getText("p177","smdr_netcallsave")}, {name: "SMDR_NETCALLSAVE", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_stnchargerate", title: langs.getText("p177","smdr_stnchargerate"), tr: [{order: 1}, {label: langs.getText("p177","smdr_stnchargerate")}, {name: "SMDR_STNCHARGERATE", value: "", select: [{value: "0", option: langs.getText("p177","opt_stnchargerate_is")}, {value: "1", option: langs.getText("p177","opt_stnchargerate_itis")}, {value: "2", option: langs.getText("p177","opt_stnchargerate_itds")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_atdchargerate", title: langs.getText("p177","smdr_atdchargerate"), tr: [{order: 1}, {label: langs.getText("p177","smdr_atdchargerate")}, {name: "SMDR_ATDCHARGERATE", value: "", select: [{value: "0", option: langs.getText("p177","opt_atdchargerate_is")}, {value: "1", option: langs.getText("p177","opt_atdchargerate_asc")}, {value: "2", option: langs.getText("p177","opt_atdchargerate_tsc")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
						{key: "pgm177_smdr_idc", title: langs.getText("common","inter_acc_code"), struct: [{tr: [{order: 1, rowspan: 3}, {label: langs.getText("common","inter_acc_code"), rowspan: 3}, {label: "1 ", cont: 0}, {name: "SMDR_IDC_1", value: "", textfield: [{max: 4, size: 5}], message: "", cont: 0}, {label: langs.getText("common","max4digit")}]},
																																		 {tr: [{label: "2 ", cont: 0}, {name: "SMDR_IDC_2", value: "", textfield: [{max: 4, size: 5}], message: "", cont: 0}, {label: langs.getText("common","max4digit")}]},
																																		 {tr: [{label: "3 ", cont: 0}, {name: "SMDR_IDC_3", value: "", textfield: [{max: 4, size: 5}], message: "", cont: 0}, {label: langs.getText("common","max4digit")}]}]},
						{key: "pgm177_smdr_mdc", title: langs.getText("p177","smdr_mdc"), struct: [{tr: [{order: 1, rowspan: 3}, {label: langs.getText("p177","smdr_mdc"), rowspan: 3}, {label: "1 ", cont: 0}, {name: "SMDR_MDC_1", value: "", textfield: [{max: 4, size: 5}], message: "", cont: 0}, {label: langs.getText("common","max4digit")}]},
																															  {tr: [{label: "2 ", cont: 0}, {name: "SMDR_MDC_2", value: "", textfield: [{max: 4, size: 5}], message: "", cont: 0}, {label: langs.getText("common","max4digit")}]},
																															  {tr: [{label: "3 ", cont: 0}, {name: "SMDR_MDC_3", value: "", textfield: [{max: 4, size: 5}], message: "", cont: 0}, {label: langs.getText("common","max4digit")}]}]},
						{key: "pgm177_smdr_vsfvmdisp", title: langs.getText("p177","smdr_vsfvmdisp"), tr: [{order: 1}, {label: langs.getText("p177","smdr_vsfvmdisp")}, {name: "SMDR_VSFVMDISP", value: "", select: [{value: "0", option: langs.getText("p177","opt_vsfvmdisp_i")}, {value: "1", option: langs.getText("p177","opt_vsfvmdisp_v")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
                                                {key: "pgm177_smdr_netnumber", title: langs.getText("p177","smdr_netnumber"), tr: [{order: 1}, {label: langs.getText("p177","smdr_netnumber")}, {name: "SMDR_NETNUMBER", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
                                                {key: "pgm177_smdr_ogtype", title: langs.getText("p177","smdr_ogtype"), tr: [{order: 1}, {label: langs.getText("p177","smdr_ogtype")}, {name: "SMDR_OGTYPE", value: "", select: [{value: "0", option: langs.getText("common","opt_all_call")}, {value: "1", option: langs.getText("p177","opt_answered_call")}], colspan: 2, message: "", cont: 0}, {label: ""}]},
                                                {key: "pgm177_smdr_dialdgt", title: langs.getText("p177","smdr_dialdgt"), tr: [{order: 1}, {label: langs.getText("p177","smdr_dialdgt")}, {name: "SMDR_DIALDGT", value: "", select: [{value: "0", option: langs.getText("p177","opt_dgt_pstn")}, {value: "1", option: langs.getText("p177","opt_dgt_user")}], colspan: 2, message: "", cont: 0}, {label: ""}]}
		]}
	]}
);
