/*
ÅëÇÕÁ¶°Ç°Ë»ö javascript function
#### typeof °ü·Ã °øÅë ÇÔ¼ö ¸¸µé¾î if ¹®¿¡ »ç¿ëÇÒ °Í
*/
//
function ModKygPeriodType(frm_nm) {
var kyg_p_tp_val = $("#" + frm_nm + " input[name=KygPeriodTypeYear]").val();
$("#" + frm_nm + " input[name=KygPeriodTypeYear]").val(parseInt(kyg_p_tp_val) + 1);
MovePg(frm_nm, 1);
}
//
function MovePg(frm_nm, pg_no) {
$("#" + frm_nm + " input[name=pg]").val(pg_no);
$("#" + frm_nm).submit();
}
//
function ModSwTchTxt() {
if (every_sw_tch == true) {
if ($("#sw_tch_txt span[class=sel_txt] span[name='every_sw_tch']").length == 0)
$("#sw_tch_txt span[class=sel_txt]").append("¸ðµçºÐ¾ß");
$("#sw_tch_txt span[class=sel_txt] span[name=sw_tch_kyg][value=°æ¸Å]").addClass('d-none');
$("#sw_tch_txt span[class=sel_txt] span[name=sw_tch_pre][value=¿¹Á¤]").addClass('d-none');
$("#sw_tch_txt span[class=sel_txt] span[name=sw_tch_gng][value=°ø¸Å]").addClass('d-none');
$("#sw_tch_txt span[class=sel_txt] span[name=sw_tch_bun][value=ºÐ¾ç]").addClass('d-none');
$("#sw_tch_txt span[class=sel_txt] span[name=sw_tch_rp][value=½Ç°Å·¡°¡]").addClass('d-none');
}
else if (every_sw_tch == false) {
if ($("#sw_tch_txt span[class=sel_txt] span[name='every_sw_tch']").length > 0)
$("#sw_tch_txt span[class=sel_txt] span[name=every_sw_tch][value=¸ðµçºÐ¾ß]").remove();
$("#sw_tch_txt span[class=sel_txt] span[name=sw_tch_kyg][value=°æ¸Å]").removeClass('d-none');
$("#sw_tch_txt span[class=sel_txt] span[name=sw_tch_pre][value=¿¹Á¤]").removeClass('d-none');
$("#sw_tch_txt span[class=sel_txt] span[name=sw_tch_gng][value=°ø¸Å]").removeClass('d-none');
$("#sw_tch_txt span[class=sel_txt] span[name=sw_tch_bun][value=ºÐ¾ç]").removeClass('d-none');
$("#sw_tch_txt span[class=sel_txt] span[name=sw_tch_rp][value=½Ç°Å·¡°¡]").removeClass('d-none');
}
}
// Ç¥½ÃÇÒ °Ë»öÁ¶°ÇÀÌ ´Ù¼öÀÏ °æ¿ì »ç¿ëÇÏ´Â ÇÔ¼ö
function PrintSrchOptMultiValue(attr_nm, val_A) {
if ($.isArray(val_A) == true) {
if (attr_nm.includes("[]") == false) attr_nm = attr_nm + '[]';
if (val_A.length > 0) {
$.each(val_A, function (idx, val) {
PrintSelSrchOpts(attr_nm, val, '');
});
}
}
else {
PrintSelSrchOpts(attr_nm, val_A, '');
}
}
// Ç¥½ÃµÈ °Ë»öÁ¶°ÇÀ» Á¦°ÅÇÏ´Â ÇÔ¼ö
function RemoveOptsTitle(txt_bx_nm, tt_nm, tt_1, tt_2) {
if (tt_nm == '') return false;
else if (tt_1
&& tt_2
&& $(txt_bx_nm + " span[class=sel_txt] span[name=" + tt_1 + "]").length == 0
&& $(txt_bx_nm + " span[class=sel_txt] span[name=" + tt_2 + "]").length == 0) $(txt_bx_nm + " span[class=sel_txt] div[name=" + tt_nm + "]").remove();
}
// °Ë»ö Á¶°Çº° Ç¥½ÃÇÒ div ÀÇ name ¹× name ÀÇ escape ó¸® ÇÔ¼ö
function getTboxnAttrNm(attr_nm) {
var txt_bx_nm = '';
//var attr_nm = '';
if ($.inArray(attr_nm, sw_tch_btn_A) > -1) txt_bx_nm = '#sw_tch_txt';
else if ($.inArray(attr_nm, amt_comb_A) > -1) txt_bx_nm = '#amt_txt';
else if ($.inArray(attr_nm, ssu_comb_A) > -1) txt_bx_nm = '#ssu_txt';
else if ($.inArray(attr_nm, area_inp_A) > -1) txt_bx_nm = '#area_txt';
else if (attr_nm == 'rltyct_A[]') { txt_bx_nm = '#usg_txt'; attr_nm = "rltyct_A\\[\\]"; }
else if (attr_nm == 'k_rltyct_A[]') { txt_bx_nm = '#usg_kyg_txt'; attr_nm = "k_rltyct_A\\[\\]"; }
else if (attr_nm == 'p_rltyct_A[]') { txt_bx_nm = '#usg_pre_txt'; attr_nm = "p_rltyct_A\\[\\]"; }
else if (attr_nm == 'g_rltyct_A[]') { txt_bx_nm = '#usg_gng_txt'; attr_nm = "g_rltyct_A\\[\\]"; }
else if (attr_nm == 'b_rltyct_A[]') { txt_bx_nm = '#usg_bun_txt'; attr_nm = "b_rltyct_A\\[\\]"; }
else if (attr_nm == 'r_rltyct_A[]') { txt_bx_nm = '#usg_rp_txt'; attr_nm = "r_rltyct_A\\[\\]"; }
else if (attr_nm == 'sale_status_A[]') { txt_bx_nm = '#etc_kyg_txt'; attr_nm = "sale_status_A\\[\\]"; }
else if (attr_nm == 'search_txt') txt_bx_nm = '#srch_txt';
else if ($.inArray(attr_nm, kyg_sp_A) > -1) txt_bx_nm = '#etc_kyg_txt';
else if ($.inArray(attr_nm, kyg_opts_li_A) > -1) txt_bx_nm = '#etc_kyg_txt';
else if ($.inArray(attr_nm, pre_opts_li_A) > -1) txt_bx_nm = '#etc_pre_txt';
else if ($.inArray(attr_nm, gng_opts_li_A) > -1) txt_bx_nm = '#etc_gng_txt';
else if ($.inArray(attr_nm, bun_opts_li_A) > -1) txt_bx_nm = '#etc_bun_txt';
else if ($.inArray(attr_nm, rp_opts_li_A) > -1) txt_bx_nm = '#etc_rp_txt';
else txt_bx_nm = '#etc_txt';
return { txt_bx_nm: txt_bx_nm, attr_nm: attr_nm };
}
function ChecknAddClass(selector, find_class, new_class) {
if (!$(selector).hasClass(find_class))
$(selector).addClass(new_class);
}
function RemoveDupOpts() {
// ------------- Áߺ¹µÈ ¿ëµµ °Ë»öÁ¶°Ç Á¦°Å
var k_rty_list = [];
var p_rty_list = [];
var g_rty_list = [];
var b_rty_list = [];
var r_rty_list = [];
var merged_rty_list = [];
// ---
$("#usg_kyg_txt span[class=sel_txt] span[name=k_rltyct_A\\[\\]]").each(function (idx, val) { k_rty_list.push($(val).attr('value')); });
$("#usg_pre_txt span[class=sel_txt] span[name=p_rltyct_A\\[\\]]").each(function (idx, val) { p_rty_list.push($(val).attr('value')); });
$("#usg_gng_txt span[class=sel_txt] span[name=g_rltyct_A\\[\\]]").each(function (idx, val) { g_rty_list.push($(val).attr('value')); });
$("#usg_bun_txt span[class=sel_txt] span[name=b_rltyct_A\\[\\]]").each(function (idx, val) { b_rty_list.push($(val).attr('value')); });
$("#usg_rp_txt span[class=sel_txt] span[name=r_rltyct_A\\[\\]]").each(function (idx, val) { r_rty_list.push($(val).attr('value')); });
// ---
if (k_rty_list.length > 0) merged_rty_list = k_rty_list.concat(merged_rty_list);
if (p_rty_list.length > 0) merged_rty_list = p_rty_list.concat(merged_rty_list);
if (g_rty_list.length > 0) merged_rty_list = g_rty_list.concat(merged_rty_list);
if (b_rty_list.length > 0) merged_rty_list = b_rty_list.concat(merged_rty_list);
if (r_rty_list.length > 0) merged_rty_list = r_rty_list.concat(merged_rty_list);
// ---
if (merged_rty_list.length == 0) {
$("#usg_txt span[class=sel_txt]").html('');
}
var k_has_rty = false;
var p_has_rty = false;
var g_has_rty = false;
var b_has_rty = false;
var r_has_rty = false;
$(merged_rty_list).each(function (idx, val) {
val_4_print = val;
val = val.replace('/', '\\/');
// ---
if ($("#detail_srch_frm").length > 0) {
if ($("#detail_srch_frm input[name=sw_tch_kyg]:checked").length == 0
|| ($("#detail_srch_frm input[name=sw_tch_kyg]:checked").length == 1 && $.inArray(val, k_rty_list) > -1)) k_has_rty = true;
else k_has_rty = false;
if ($("#detail_srch_frm input[name=sw_tch_pre]:checked").length == 0
|| ($("#detail_srch_frm input[name=sw_tch_pre]:checked").length == 1 && $.inArray(val, p_rty_list) > -1)) p_has_rty = true;
else p_has_rty = false;
if ($("#detail_srch_frm input[name=sw_tch_gng]:checked").length == 0
|| ($("#detail_srch_frm input[name=sw_tch_gng]:checked").length == 1 && $.inArray(val, g_rty_list) > -1)) g_has_rty = true;
else g_has_rty = false;
if ($("#detail_srch_frm input[name=sw_tch_bun]:checked").length == 0
|| ($("#detail_srch_frm input[name=sw_tch_bun]:checked").length == 1 && $.inArray(val, b_rty_list) > -1)) b_has_rty = true;
else b_has_rty = false;
if ($("#detail_srch_frm input[name=sw_tch_rp]:checked").length == 0
|| ($("#detail_srch_frm input[name=sw_tch_rp]:checked").length == 1 && $.inArray(val, r_rty_list) > -1)) r_has_rty = true;
else r_has_rty = false;
}
else if ($("#d_srch_frm").length > 0) {
if ($("#d_srch_frm input[name=sw_tch_kyg]").val() == ''
|| ($("#d_srch_frm input[name=sw_tch_kyg]").val() != '' && $.inArray(val, k_rty_list) > -1)) k_has_rty = true;
else k_has_rty = false;
if ($("#d_srch_frm input[name=sw_tch_pre]").val() == ''
|| ($("#d_srch_frm input[name=sw_tch_pre]").val() != '' && $.inArray(val, p_rty_list) > -1)) p_has_rty = true;
else p_has_rty = false;
if ($("#d_srch_frm input[name=sw_tch_gng]").val() == ''
|| ($("#d_srch_frm input[name=sw_tch_gng]").val() != '' && $.inArray(val, g_rty_list) > -1)) g_has_rty = true;
else g_has_rty = false;
if ($("#d_srch_frm input[name=sw_tch_bun]").val() == ''
|| ($("#d_srch_frm input[name=sw_tch_bun]").val() != '' && $.inArray(val, b_rty_list) > -1)) b_has_rty = true;
else b_has_rty = false;
if ($("#d_srch_frm input[name=sw_tch_rp]").val() == ''
|| ($("#d_srch_frm input[name=sw_tch_rp]").val() != '' && $.inArray(val, r_rty_list) > -1)) r_has_rty = true;
else r_has_rty = false;
}
// ---
if (k_has_rty == true
&& p_has_rty == true
&& g_has_rty == true
&& b_has_rty == true
&& r_has_rty == true
) {
if ($("#usg_txt span[class=sel_txt] span[name=rty_li\\[\\]][value=" + val + "]").length == 0) $("#usg_txt span[class=sel_txt]").append("" + val_4_print + "");
if ($("#usg_kyg_txt span[class=sel_txt] span[name=k_rltyct_A\\[\\]][value=" + val + "]").length > 0) ChecknAddClass("#usg_kyg_txt span[class=sel_txt] span[name=k_rltyct_A\\[\\]][value=" + val + "]", "d-none", "d-none");
if ($("#usg_pre_txt span[class=sel_txt] span[name=p_rltyct_A\\[\\]][value=" + val + "]").length > 0) ChecknAddClass("#usg_pre_txt span[class=sel_txt] span[name=p_rltyct_A\\[\\]][value=" + val + "]", "d-none", "d-none");
if ($("#usg_gng_txt span[class=sel_txt] span[name=g_rltyct_A\\[\\]][value=" + val + "]").length > 0) ChecknAddClass("#usg_gng_txt span[class=sel_txt] span[name=g_rltyct_A\\[\\]][value=" + val + "]", "d-none", "d-none");
if ($("#usg_bun_txt span[class=sel_txt] span[name=b_rltyct_A\\[\\]][value=" + val + "]").length > 0) ChecknAddClass("#usg_bun_txt span[class=sel_txt] span[name=b_rltyct_A\\[\\]][value=" + val + "]", "d-none", "d-none");
if ($("#usg_rp_txt span[class=sel_txt] span[name=r_rltyct_A\\[\\]][value=" + val + "]").length > 0) ChecknAddClass("#usg_rp_txt span[class=sel_txt] span[name=r_rltyct_A\\[\\]][value=" + val + "]", "d-none", "d-none");
}
else {
$("#usg_txt span[class=sel_txt] span[name=rty_li\\[\\]][value=" + val + "]").remove();
if ($("#usg_kyg_txt span[class=sel_txt] span[name=k_rltyct_A\\[\\]][value=" + val + "]").length > 0) $("#usg_kyg_txt span[class=sel_txt] span[name=k_rltyct_A\\[\\]][value=" + val + "]").removeClass('d-none');
if ($("#usg_pre_txt span[class=sel_txt] span[name=p_rltyct_A\\[\\]][value=" + val + "]").length > 0) $("#usg_pre_txt span[class=sel_txt] span[name=p_rltyct_A\\[\\]][value=" + val + "]").removeClass('d-none');
if ($("#usg_gng_txt span[class=sel_txt] span[name=p_rltyct_A\\[\\]][value=" + val + "]").length > 0) $("#usg_gng_txt span[class=sel_txt] span[name=g_rltyct_A\\[\\]][value=" + val + "]").removeClass('d-none');
if ($("#usg_bun_txt span[class=sel_txt] span[name=p_rltyct_A\\[\\]][value=" + val + "]").length > 0) $("#usg_bun_txt span[class=sel_txt] span[name=b_rltyct_A\\[\\]][value=" + val + "]").removeClass('d-none');
if ($("#usg_rp_txt span[class=sel_txt] span[name=p_rltyct_A\\[\\]][value=" + val + "]").length > 0) $("#usg_rp_txt span[class=sel_txt] span[name=r_rltyct_A\\[\\]][value=" + val + "]").removeClass('d-none');
}
});
// ---
$("#usg_txt").removeClass("d-none");
// ---
// $.each(sw_tch_date_to, function(idx, val){
//// if(val != bf_date && bf_date != '') diff_sw_tch.push(idx);
//// bf_date = val;
// console.log(idx+'/'+val);
// });
//console.log('-------------') ;
// -------------
// var kyg_date_fr = '', kyg_date_to = '', pre_date_fr = '', pre_date_to = '', gng_date_fr = '', gng_date_to = '';
// var date_fr = { kyg:'', pre:'', gng:'' };
// var date_to = { kyg:'', pre:'', gng:'' };
// var sw_tch_list = [];
// // ---
// if($("div[name=kyg_sale_date_tt]").length > 0)
// {
// sw_tch_list.push('kyg');
// if($("span[name=kyg_sale_date_from]").length > 0) kyg_date_fr = $("span[name=kyg_sale_date_from]").attr('value');
// if($("span[name=kyg_sale_date_to]").length > 0) kyg_date_to = $("span[name=kyg_sale_date_to]").attr('value');
// date_fr['kyg'] = kyg_date_fr;
// date_to['kyg'] = kyg_date_to;
// }
// // ---
// if($("div[name=pre_date_tt]").length > 0)
// {
// sw_tch_list.push('pre');
// if($("span[name=pre_date_from]").length > 0) pre_date_fr = $("span[name=pre_date_from]").attr('value');
// if($("span[name=pre_date_to]").length > 0) pre_date_to = $("span[name=pre_date_to]").attr('value');
// date_fr['pre'] = pre_date_fr;
// date_to['pre'] = pre_date_to;
// }
// // ---
// if($("div[name=gng_date_tt]").length > 0)
// {
// sw_tch_list.push('gng');
// if($("span[name=gng_date_from]").length > 0) gng_date_fr = $("span[name=gng_date_from]").attr('value').replace(/\//g, '.');
// if($("span[name=gng_date_to]").length > 0) gng_date_to = $("span[name=gng_date_to]").attr('value').replace(/\//g, '.');
// date_fr['gng'] = gng_date_fr;
// date_to['gng'] = gng_date_to;
// }
// // ---
// if(date_fr['kyg'] == date_to['kyg'] && $("span[name=kyg_date]").length == 0) { $("span[name=kyg_sale_date_from]").remove(); $("span[name=kyg_sale_date_to]").remove(); $("div[name=kyg_sale_date_tt]").append(''+date_fr['kyg']+''); }
// else
// $("span[name=kyg_date]").remove();
// if(date_fr['pre'] == date_to['pre'] && $("span[name=pre_date]").length == 0) { $("span[name=pre_date_from]").remove(); $("span[name=pre_date_top]").remove(); $("div[name=pre_date_tt]").append(''+date_fr['pre']+''); }
// else
// $("span[name=pre_date]").remove();
// if(date_fr['gng'] == date_to['gng'] && $("span[name=gng_date]").length == 0) { $("span[name=gng_date_from]").remove(); $("span[name=gng_date_top]").remove(); $("div[name=gng_date_tt]").append(''+date_fr['gng']+''); }
// else
// $("span[name=gng_date]").remove();
// // ---
// var diff_sw_tch = [];
// var bf_date = '';
// $.each(date_fr, function(idx, val){
// if(val != bf_date && bf_date != '') diff_sw_tch.push(idx);
// bf_date = val;
// });
// //$.each(date_to, function(idx, val){
// // if(val != bf_date && bf_date != '') diff_sw_tch.push(idx);
// // bf_date = val;
// //});
//console.log(date_fr);
//console.log(date_to);
//console.log(diff_sw_tch);
// -------------
ClearEmptyOptsBox();
}
// ¼±ÅÃµÈ °Ë»öÁ¶°Ç print ¸ÞÀÎ ÇÔ¼ö
function PrintSelSrchOpts(attr_nm, attr_val, fw) {
// ------------------------------------- Ç¥½ÃÇÒ ÇÊ¿ä°¡ ¾ø´Â °Ë»öÁ¶°ÇÀÏ °æ¿ì ( flag °ª °°Àº °æ¿ì )
if ($.inArray(attr_nm, opts_4_skip_li_A) > -1) return false;
else if ($.isArray(attr_val) == true) {
PrintSrchOptMultiValue(attr_nm, attr_val);
return false;
}
// -------------------------------------
var txt_bx_nm = '';
var stop_print = false;
// ---
attr_nm = decodeURI(attr_nm);
// --- selector ¿¡ »ç¿ëÇÒ value ¿Í print ÇÒ value ¸¦ Á¤¸®ÇÔ
attr_nm_4_txt = attr_nm;
attr_val_4_txt = attr_val;
attr_val = attr_val.replace('/', '\\/');
// --- ¼±ÅÃÇÑ °Ë»öÁ¶°ÇÀ» º¸¿©ÁÙ div ÀÇ À̸§ °áÁ¤, attr_nm ÀÇ '/' ¸¦ escape ó¸® ÇÔ
var t_bx_n_attr_nm = getTboxnAttrNm(attr_nm);
txt_bx_nm = t_bx_n_attr_nm['txt_bx_nm'];
attr_nm = t_bx_n_attr_nm['attr_nm'];
// --- print ÇÒ°Ë»öÁ¶°ÇÀ» º¯¼ö¿¡ ÀúÀå
var opt_txt = '';
if (attr_nm == 'BUN_SRCH_OVER') opt_txt = '¹ÌºÐ¾ç';
else opt_txt = attr_val_4_txt;
// ---
var opts_4_print = [];
var add_or_not = '';
// ------------------------------------- Ç¥½ÃÇÒ °Ë»öÁ¶°Ç Á¾·ùº° ¼±Á¶Ä¡
// --- ¿ëµµ ´ëºÐ·ù ¼±ÅýÃ
if (attr_nm_4_txt == 'rltyct_A[]') {
if ($('#detail_srch_frm input[name=' + attr_nm + '][value=' + attr_val + ']:checked').length > 0)
ModDtlRtyct(attr_val_4_txt, true, false);
else
ModDtlRtyct(attr_val_4_txt, false, true);
// ---
return false;
}
// --- ¼±ÅÃµÈ ºÐ¾ß¿¡ Á¾¼ÓµÈ ±â°£, ¿ëµµ
else if ($('#detail_srch_frm').length > 0
&& (($('#detail_srch_frm input[name=sw_tch_kyg]:checked').length == 0 && (attr_nm == 'kyg_sale_date_from' || attr_nm == 'kyg_sale_date_to' || attr_nm == 'k_rltyct_A\\[\\]'))
|| ($('#detail_srch_frm input[name=sw_tch_pre]:checked').length == 0 && (attr_nm == 'pre_date_from' || attr_nm == 'pre_date_to' || attr_nm == 'p_rltyct_A\\[\\]'))
|| ($('#detail_srch_frm input[name=sw_tch_gng]:checked').length == 0 && (attr_nm == 'gng_date_from' || attr_nm == 'gng_date_to' || attr_nm == 'g_rltyct_A\\[\\]'))
|| ($('#detail_srch_frm input[name=sw_tch_bun]:checked').length == 0 && (attr_nm == 'b_rltyct_A\\[\\]'))
|| ($('#detail_srch_frm input[name=sw_tch_rp]:checked').length == 0 && (attr_nm == 'r_rltyct_A\\[\\]')))) { return false; }
else if ($('#d_srch_frm').length > 0
&& (($('#d_srch_frm input[name=sw_tch_kyg]').val() == '' && (attr_nm == 'kyg_sale_date_from' || attr_nm == 'kyg_sale_date_to' || attr_nm == 'k_rltyct_A\\[\\]'))
|| ($('#d_srch_frm input[name=sw_tch_pre]').val() == '' && (attr_nm == 'pre_date_from' || attr_nm == 'pre_date_to' || attr_nm == 'p_rltyct_A\\[\\]'))
|| ($('#d_srch_frm input[name=sw_tch_gng]').val() == '' && (attr_nm == 'gng_date_from' || attr_nm == 'gng_date_to' || attr_nm == 'g_rltyct_A\\[\\]'))
|| ($('#d_srch_frm input[name=sw_tch_bun]').val() == '' && (attr_nm == 'b_rltyct_A\\[\\]'))
|| ($('#d_srch_frm input[name=sw_tch_rp]').val() == '' && (attr_nm == 'r_rltyct_A\\[\\]')))) { return false; }
// --- ÆäÀÌÁö onload ‰çÀ»¶§
else if (fw != 'load'
&& (attr_nm == 'sw_tch_kyg' || attr_nm == 'sw_tch_pre' || attr_nm == 'sw_tch_gng' || attr_nm == 'sw_tch_bun' || attr_nm == 'sw_tch_rp')
) {
if (attr_nm == 'sw_tch_kyg') { sw_tch_txt_nm = 'kyg'; add_or_not = ($('input[name=sw_tch_kyg]:checked').length == 0) ? 'remove' : 'add'; opts_4_print = kyg_opts_li_A.concat(kyg_sp_A); }
else if (attr_nm == 'sw_tch_pre') { sw_tch_txt_nm = 'pre'; add_or_not = ($('input[name=sw_tch_pre]:checked').length == 0) ? 'remove' : 'add'; opts_4_print = pre_opts_li_A; }
else if (attr_nm == 'sw_tch_gng') { sw_tch_txt_nm = 'gng'; add_or_not = ($('input[name=sw_tch_gng]:checked').length == 0) ? 'remove' : 'add'; opts_4_print = gng_opts_li_A; }
else if (attr_nm == 'sw_tch_bun') { sw_tch_txt_nm = 'bun'; add_or_not = ($('input[name=sw_tch_bun]:checked').length == 0) ? 'remove' : 'add'; opts_4_print = bun_opts_li_A; }
else if (attr_nm == 'sw_tch_rp') { sw_tch_txt_nm = 'rp'; add_or_not = ($('input[name=sw_tch_rp]:checked').length == 0) ? 'remove' : 'add'; opts_4_print = rp_opts_li_A; }
// ---
if (typeof opts_4_print !== 'undefined') {
if (add_or_not == 'remove') {
$.each(opts_4_print, function (idx, val) {
val = EscapeBrkets(val);
if ($(".dtl_srch_opt span[class=sel_txt] span[name=" + val + "]").length > 0)
$(".dtl_srch_opt span[class=sel_txt] span[name=" + val + "]").remove();
if (typeof opts_tt_li_Obj[val] !== 'undefined' &&
$(".dtl_srch_opt div[name=" + opts_tt_li_Obj[val] + "]").length > 0
) {
$(".dtl_srch_opt div[name=" + opts_tt_li_Obj[val] + "]").remove();
}
});
}
else {
$.each(opts_4_print, function (idx, val) {
jqry_selector = EscapeBrkets(val);
inp_val = $("#detail_srch_frm").find('select[name=' + jqry_selector + '], input[name=' + jqry_selector + ']').val();
if (inp_val == '') { }
else if ($.inArray(val, kyg_sp_A) > -1 || val == 'BUN_SRCH_OVER') {
if ($("#detail_srch_frm input[name=" + jqry_selector + "]:checked").length > 0)
PrintSrchOptMultiValue(val, inp_val);
}
else if (val == 'sale_status_A[]'
|| val == 'k_rltyct_A[]'
|| val == 'p_rltyct_A[]'
|| val == 'g_rltyct_A[]'
|| val == 'b_rltyct_A[]'
|| val == 'r_rltyct_A[]'
) {
var s_stat_li = [];
$("#detail_srch_frm input[name=" + jqry_selector + "]:checked").each(function () {
s_stat_li.push($(this).val());
});
PrintSrchOptMultiValue(val, s_stat_li);
}
else if (typeof inp_val !== 'undefined' && inp_val != '') PrintSrchOptMultiValue(val, inp_val);
});
}
}
// ---
if ($(".dtl_srch_opt span[class=sel_txt] span[name=sw_tch_" + sw_tch_txt_nm + "]").length > 0)
$(".dtl_srch_opt span[class=sel_txt] span[name=sw_tch_" + sw_tch_txt_nm + "]").remove();
else
$(txt_bx_nm + " span[class=sel_txt]").append("" + opt_txt + "");
ModSwTchTxt();
ClearEmptyOptsBox();
// ---
return false;
}
// ------------------------------------- °Ë»öÁ¶°Çº° Ç¥½ÃÇÒ Á¦¸ñ, ´ÜÀ§, title tag ÀÇ name °áÁ¤
var other_txt = '';
var other_txt_2 = '';
var other_txt_cls = '';
var related_txt_nm = '';
var other_txt_tt_nm = '';
if (attr_nm == 'min_amt_from') { other_txt = ''; other_txt_tt_nm = ''; other_txt_2 = ''; }
else if (attr_nm == 'min_amt_to') { other_txt = ''; other_txt_tt_nm = ''; other_txt_2 = ''; }
else if (attr_nm == 'bldg_area_from') { other_txt = '°Ç: '; other_txt_tt_nm = 'bldg_area_tt'; other_txt_2 = '§³'; }
else if (attr_nm == 'bldg_area_to') { other_txt = '°Ç: '; other_txt_tt_nm = 'bldg_area_tt'; other_txt_2 = '§³'; }
else if (attr_nm == 'land_area_from') { other_txt = '´ë: '; other_txt_tt_nm = 'land_area_tt'; other_txt_2 = '§³'; }
else if (attr_nm == 'land_area_to') { other_txt = '´ë: '; other_txt_tt_nm = 'land_area_tt'; other_txt_2 = '§³'; }
else if (attr_nm == 'family_cnt_from') { other_txt = '¼¼´ë¼ö: '; other_txt_tt_nm = 'family_cnt_tt'; other_txt_2 = ''; }
else if (attr_nm == 'family_cnt_to') { other_txt = '¼¼´ë¼ö: '; other_txt_tt_nm = 'family_cnt_tt'; other_txt_2 = ''; }
else if (attr_nm == 'kyg_void_cnt_from') { other_txt = '°æ¸ÅÀ¯Âû¼ö: '; other_txt_tt_nm = 'kyg_void_tt'; other_txt_2 = ''; }
else if (attr_nm == 'kyg_void_cnt_to') { other_txt = '°æ¸ÅÀ¯Âû¼ö: '; other_txt_tt_nm = 'kyg_void_tt'; other_txt_2 = ''; }
else if (attr_nm == 'gng_void_cnt_from') { other_txt = '°ø¸ÅÀ¯Âû¼ö: '; other_txt_tt_nm = 'gng_void_tt'; other_txt_2 = ''; }
else if (attr_nm == 'gng_void_cnt_to') { other_txt = '°ø¸ÅÀ¯Âû¼ö: '; other_txt_tt_nm = 'gng_void_tt'; other_txt_2 = ''; }
else if (attr_nm == 'kyg_p_interested') { other_txt = 'ÀÌÇØ°ü°èÀÎ: '; other_txt_tt_nm = 'kyg_p_intr_tt'; other_txt_2 = ''; }
else if (attr_nm == 'bun_over_btn') { other_txt = 'ÀÌÇØ°ü°èÀÎ: '; other_txt_tt_nm = 'bun_over_tt'; other_txt_2 = ''; }
else if (attr_nm == 'build_year_tp') { other_txt = 'ÁØ°ø³âµµ: '; other_txt_tt_nm = 'build_year_tp_tt'; other_txt_2 = ''; }
else if (attr_nm == 'household_tp') { other_txt = '¼¼´ë¼ö: '; other_txt_tt_nm = 'household_tt'; other_txt_2 = ''; }
else if (attr_nm == 'parking_tp') { other_txt = 'ÁÖÂ÷°ø°£: '; other_txt_tt_nm = 'parking_tp_tt'; other_txt_2 = ''; }
else if (attr_nm == 'kyg_sale_date_from') { other_txt = '¸Å°¢±âÀÏ: '; other_txt_tt_nm = 'kyg_sale_date_tt'; other_txt_2 = ''; sw_tch_date_fr['kyg'] = attr_val; }
else if (attr_nm == 'kyg_sale_date_to') { other_txt = '¸Å°¢±âÀÏ: '; other_txt_tt_nm = 'kyg_sale_date_tt'; other_txt_2 = ''; sw_tch_date_to['kyg'] = attr_val; }
else if (attr_nm == 'pre_date_from') { other_txt = '°ø°íÀÏ: '; other_txt_tt_nm = 'pre_date_tt'; other_txt_2 = ''; sw_tch_date_fr['pre'] = attr_val; }
else if (attr_nm == 'pre_date_to') { other_txt = '°ø°íÀÏ: '; other_txt_tt_nm = 'pre_date_tt'; other_txt_2 = ''; sw_tch_date_to['pre'] = attr_val; }
else if (attr_nm == 'gng_date_from') { other_txt = 'ÀÔÂûÀÏÀÚ: '; other_txt_tt_nm = 'gng_date_tt'; other_txt_2 = ''; sw_tch_date_fr['gng'] = attr_val.replace(/\//g, '.'); }
else if (attr_nm == 'gng_date_to') { other_txt = 'ÀÔÂûÀÏÀÚ: '; other_txt_tt_nm = 'gng_date_tt'; other_txt_2 = ''; sw_tch_date_to['gng'] = attr_val.replace(/\//g, '.'); }
// ------------------------------------- ±â°£ ¹× À¯Âû¼ö °°ÀÌ from ~ to °³³äÀÌ ÀÖ´Â °æ¿ì ¹üÀ§ Ç¥½Ã¸¦ À§ÇÑ ¼³Á¤
var ex_attr_nm = attr_nm.split('_');
var exist_rvs_attr = false;
var rvs_attr_nm = '';
var attr_nm_pos = '';
if (ex_attr_nm[ex_attr_nm.length - 1] == 'from') { exist_rvs_attr = true; attr_nm_pos = 'bf'; ex_attr_nm[ex_attr_nm.length - 1] = 'to'; rvs_attr_nm = ex_attr_nm.join('_'); }
else if (ex_attr_nm[ex_attr_nm.length - 1] == 'to') { exist_rvs_attr = true; attr_nm_pos = 'aft'; ex_attr_nm[ex_attr_nm.length - 1] = 'from'; rvs_attr_nm = ex_attr_nm.join('_'); }
// ------------------------------------- ¼±ÅÃµÈ °Ë»öÁ¶°Ç Á¦°Å ¹× update
if (attr_nm == 'sido') {
$(txt_bx_nm + " span[class=sel_txt]").children("span[name=sido], span[name=sgg], span[name=umd]").remove();
if (attr_val == '') {
ClearEmptyOptsBox();
return false;
}
}
else if (attr_nm == 'sgg') $(txt_bx_nm + " span[class=sel_txt]").children("span[name=sgg], span[name=umd]").remove();
else if (attr_nm == 'umd') $(txt_bx_nm + " span[class=sel_txt]").children("span[name=umd]").remove();
else if (attr_nm == 'BUN_SRCH_OVER') $(txt_bx_nm + " span[class=sel_txt]").children("span[name=BUN_SRCH_OVER]").remove();
else if ($.inArray(attr_nm, sw_tch_btn_A) > -1
|| $.inArray(attr_nm, kyg_sp_A) > -1
) {
if ($(txt_bx_nm + " span[class=sel_txt] span[name=" + attr_nm + "]").length > 0) {
$(txt_bx_nm + " span[class=sel_txt] span[name=" + attr_nm + "]").remove();
ClearEmptyOptsBox();
return false;
}
}
else if (attr_nm_4_txt == 'k_rltyct_A[]'
|| attr_nm_4_txt == 'p_rltyct_A[]'
|| attr_nm_4_txt == 'g_rltyct_A[]'
|| attr_nm_4_txt == 'b_rltyct_A[]'
|| attr_nm_4_txt == 'r_rltyct_A[]'
|| attr_nm_4_txt == 'sale_status_A[]'
) {
if ($("#usg_txt span[class=sel_txt] span[name=rty_li\\[\\]][value=" + attr_val + "]").length > 0)
$("#usg_txt span[class=sel_txt] span[name=rty_li\\[\\]][value=" + attr_val + "]").remove();
if ($(txt_bx_nm + " span[class=sel_txt] span[name=" + attr_nm + "][value=" + attr_val + "]").length > 0) {
$(txt_bx_nm + " span[class=sel_txt] span[name=" + attr_nm + "][value=" + attr_val + "]").remove();
RemoveDupOpts();
ClearEmptyOptsBox();
return false;
}
}
else if (attr_val == '') {
$(txt_bx_nm + " span[class=sel_txt] span[name=" + attr_nm + "]").remove();
RemoveOptsTitle(txt_bx_nm, other_txt_tt_nm, attr_nm, rvs_attr_nm);
ClearEmptyOptsBox();
return false;
}
else if ($(txt_bx_nm + " span[class=sel_txt] span[name=" + attr_nm + "]").length > 0) {
$(txt_bx_nm + " span[class=sel_txt] span[name=" + attr_nm + "]").val(attr_val_4_txt);
$(txt_bx_nm + " span[class=sel_txt] span[name=" + attr_nm + "]").html(opt_txt + other_txt_2);
RemoveOptsTitle(txt_bx_nm, other_txt_tt_nm, attr_nm, rvs_attr_nm);
ClearEmptyOptsBox();
return false;
}
//console.log(attr_val + ' / ' +attr_nm);
// ------------------------------------- Ãß°¡ÇؾßÇÒ Á¶°ÇÀÌ ÀÖ´Ù¸é Ãß°¡ÇÔ
var n_html = '';
if (other_txt != '' && $(txt_bx_nm + " span[class=sel_txt] div[name=" + other_txt_tt_nm + "]").length == 0)
n_html += "
" + other_txt + "
";
n_html += "" + opt_txt + other_txt_2 + "";
if (exist_rvs_attr == true) {
if (attr_nm_pos == 'bf' && $(txt_bx_nm + " span[class=sel_txt] span[name='" + rvs_attr_nm + "']").length > 0) $(txt_bx_nm + " span[class=sel_txt] span[name='" + rvs_attr_nm + "']").before(n_html);
else if (attr_nm_pos == 'aft' && $(txt_bx_nm + " span[class=sel_txt] span[name='" + rvs_attr_nm + "']").length > 0) $(txt_bx_nm + " span[class=sel_txt] span[name='" + rvs_attr_nm + "']").after(n_html);
else
$(txt_bx_nm + " span[class=sel_txt]").append(n_html);
}
else {
$(txt_bx_nm + " span[class=sel_txt]").append(n_html);
}
// --- ±â°£ °Ë»öÁ¶°Ç trim
if (attr_nm == 'kyg_sale_date_to'
&& $("div[name=kyg_sale_date_tt]").length > 0
&& $("span[name=kyg_sale_date_to]").length > 0
) {
if ($("span[name=kyg_sale_date_from]").attr('value') == $("span[name=kyg_sale_date_to]").attr('value')) {
$("div[name=kyg_sale_date_tt]").append('' + $("span[name=kyg_sale_date_to]").attr('value') + '');
sw_tch_date['kyg'] = $("span[name=kyg_date]").attr('value');
$("span[name=kyg_sale_date_from]").remove();
$("span[name=kyg_sale_date_to]").remove();
}
}
else if ($.inArray(attr_nm, ['kyg_sale_date_from', 'kyg_sale_date_to']) > -1)
$("span[name=kyg_date]").remove();
// ---
if (attr_nm == 'pre_date_to'
&& $("div[name=pre_date_tt]").length > 0
&& $("span[name=pre_date_to]").length > 0
) {
if ($("span[name=pre_date_from]").attr('value') == $("span[name=pre_date_to]").attr('value')) {
$("div[name=pre_date_tt]").append('' + $("span[name=pre_date_to]").attr('value') + '');
sw_tch_date['pre'] = $("span[name=pre_date]").attr('value');
$("span[name=pre_date_from]").remove();
$("span[name=pre_date_to]").remove();
}
}
else if ($.inArray(attr_nm, ['pre_date_from', 'pre_date_to']) > -1)
$("span[name=pre_date]").remove();
// ---
if (attr_nm == 'gng_date_to'
&& $("div[name=gng_date_tt]").length > 0
&& $("span[name=gng_date_to]").length > 0
) {
if ($("span[name=gng_date_from]").attr('value') == $("span[name=gng_date_to]").attr('value')) {
$("div[name=gng_date_tt]").append('' + $("span[name=gng_date_to]").attr('value').replace(/\//g, '.') + '');
sw_tch_date['gng'] = $("span[name=gng_date]").attr('value').replace(/\//g, '.');
$("span[name=gng_date_from]").remove();
$("span[name=gng_date_to]").remove();
}
}
else if ($.inArray(attr_nm, ['gng_date_from', 'gng_date_to']) > -1)
$("span[name=gng_date]").remove();
// ---
if ($("#d_srch_frm input[name=search_type]").val() == 'sa_num') {
$("div[name=kyg_sale_date_tt]").remove();
$("span[name=kyg_sale_date_from]").remove();
$("span[name=kyg_sale_date_to]").remove();
$("span[name=kyg_date]").remove();
$("div[name=pre_date_tt]").remove();
$("span[name=pre_date_from]").remove();
$("span[name=pre_date_to]").remove();
$("span[name=pre_date]").remove();
$("div[name=gng_date_tt]").remove();
$("span[name=gng_date_from]").remove();
$("span[name=gng_date_to]").remove();
$("span[name=gng_date]").remove();
}
// ---
////if($("span[name=gng_date]").length > 0)
//if($.inArray(attr_nm, ['kyg_sale_date_to', 'pre_date_to', 'gng_date_to']) > -1)
//{
// $.each(sw_tch_date_to, function(idx, val){
// if(idx == 'kyg') el_nm = 'kyg_sale_date';
// else if(idx == 'pre') el_nm = 'pre_date';
// else if(idx == 'gng') el_nm = 'gng_date';
// // ---
// if(sw_tch_date_fr[idx] == val && $("div[name="+el_nm+"_tt]").length > 0)
// {
// $("div[name="+idx+"_date_tt]").append(''+val+'');
// $("span[name="+el_nm+"_from]").remove();
// $("span[name="+el_nm+"_to]").remove();
// }
// else
// $("span[name="+el_nm+"]").remove();
// console.log(idx+'/'+val);
// });
// //$("#period_txt").css('display','block');
// //
// //$("#period_txt span[name=sel_txt]").append($("span[name=gng_date]").html());
//}
// ------------------------------------- Ç¥½ÃÇÒ °Ë»öÁ¶°ÇÀÌ ¾ø´Â div ¸¦ º¸ÀÌÁö ¾Êµµ·Ï ÇÔ
RemoveDupOpts();
ClearEmptyOptsBox();
ModSwTchTxt();
}
// Ç¥½ÃÇÒ °Ë»öÁ¶°ÇÀÌ ¾ø´Â div ¸¦ º¸ÀÌÁö ¾Êµµ·Ï ÇÔ¼ö
function ClearEmptyOptsBox() {
($("#srch_txt span[class=sel_txt]").html() == '') ? $("#srch_txt").addClass("d-none") : $("#srch_txt").removeClass("d-none");
($("#sw_tch_txt span[class=sel_txt]").html() == '') ? $("#sw_tch_txt").addClass("d-none") : $("#sw_tch_txt").removeClass("d-none");
($("#usg_txt span[class=sel_txt]").html() == '') ? $("#usg_txt").addClass("d-none") : $("#usg_txt").removeClass("d-none");
($("#period_txt span[class=sel_txt]").html() == '') ? $("#period_txt").addClass("d-none") : $("#period_txt").removeClass("d-none");
($("#usg_kyg_txt span[class=sel_txt]").html() == '') ? $("#usg_kyg_txt").addClass("d-none") : $("#usg_kyg_txt").removeClass("d-none");
($("#usg_pre_txt span[class=sel_txt]").html() == '') ? $("#usg_pre_txt").addClass("d-none") : $("#usg_pre_txt").removeClass("d-none");
($("#usg_gng_txt span[class=sel_txt]").html() == '') ? $("#usg_gng_txt").addClass("d-none") : $("#usg_gng_txt").removeClass("d-none");
($("#usg_bun_txt span[class=sel_txt]").html() == '') ? $("#usg_bun_txt").addClass("d-none") : $("#usg_bun_txt").removeClass("d-none");
($("#usg_rp_txt span[class=sel_txt]").html() == '') ? $("#usg_rp_txt").addClass("d-none") : $("#usg_rp_txt").removeClass("d-none");
($("#stat_txt span[class=sel_txt]").html() == '') ? $("#stat_txt").addClass("d-none") : $("#stat_txt").removeClass("d-none");
($("#ssu_txt span[class=sel_txt]").html() == '') ? $("#ssu_txt").addClass("d-none") : $("#ssu_txt").removeClass("d-none");
($("#amt_txt span[class=sel_txt]").html() == '') ? $("#amt_txt").addClass("d-none") : $("#amt_txt").removeClass("d-none");
($("#area_txt span[class=sel_txt]").html() == '') ? $("#area_txt").addClass("d-none") : $("#area_txt").removeClass("d-none");
($("#etc_txt span[class=sel_txt]").html() == '') ? $("#etc_txt").addClass("d-none") : $("#etc_txt").removeClass("d-none");
($("#etc_kyg_txt span[class=sel_txt]").html() == '') ? $("#etc_kyg_txt").addClass("d-none") : $("#etc_kyg_txt").removeClass("d-none");
($("#etc_pre_txt span[class=sel_txt]").html() == '') ? $("#etc_pre_txt").addClass("d-none") : $("#etc_pre_txt").removeClass("d-none");
($("#etc_gng_txt span[class=sel_txt]").html() == '') ? $("#etc_gng_txt").addClass("d-none") : $("#etc_gng_txt").removeClass("d-none");
($("#etc_bun_txt span[class=sel_txt]").html() == '') ? $("#etc_bun_txt").addClass("d-none") : $("#etc_bun_txt").removeClass("d-none");
($("#etc_rp_txt span[class=sel_txt]").html() == '') ? $("#etc_rp_txt").addClass("d-none") : $("#etc_rp_txt").removeClass("d-none");
// ---
if ($("#usg_kyg_txt span[class=sel_txt]").html() != '' && $("#usg_kyg_txt span[class=sel_txt] span:not(.d-none)").length == 0) $("#usg_kyg_txt").addClass("d-none");
if ($("#usg_pre_txt span[class=sel_txt]").html() != '' && $("#usg_pre_txt span[class=sel_txt] span:not(.d-none)").length == 0) $("#usg_pre_txt").addClass("d-none");
if ($("#usg_gng_txt span[class=sel_txt]").html() != '' && $("#usg_gng_txt span[class=sel_txt] span:not(.d-none)").length == 0) $("#usg_gng_txt").addClass("d-none");
if ($("#usg_bun_txt span[class=sel_txt]").html() != '' && $("#usg_bun_txt span[class=sel_txt] span:not(.d-none)").length == 0) $("#usg_bun_txt").addClass("d-none");
if ($("#usg_rp_txt span[class=sel_txt]").html() != '' && $("#usg_rp_txt span[class=sel_txt] span:not(.d-none)").length == 0) $("#usg_rp_txt").addClass("d-none");
}
// Ç¥½ÃµÈ °Ë»öÁ¶°Ç ÃʱâÈ
function RemoveOptsBox() {
$("#srch_txt span[class=sel_txt]").html(''); (!$("#srch_txt").hasClass("d-none")) ? $("#srch_txt").addClass("d-none") : '';
$("#sw_tch_txt span[class=sel_txt]").html(''); (!$("#sw_tch_txt").hasClass("d-none")) ? $("#sw_tch_txt").addClass("d-none") : '';
$("#usg_txt span[class=sel_txt]").html(''); (!$("#usg_txt").hasClass("d-none")) ? $("#usg_txt").addClass("d-none") : '';
$("#period_txt span[class=sel_txt]").html(''); (!$("#period_txt").hasClass("d-none")) ? $("#period_txt").addClass("d-none") : '';
$("#usg_kyg_txt span[class=sel_txt]").html(''); (!$("#usg_kyg_txt").hasClass("d-none")) ? $("#usg_kyg_txt").addClass("d-none") : '';
$("#usg_pre_txt span[class=sel_txt]").html(''); (!$("#usg_pre_txt").hasClass("d-none")) ? $("#usg_pre_txt").addClass("d-none") : '';
$("#usg_gng_txt span[class=sel_txt]").html(''); (!$("#usg_gng_txt").hasClass("d-none")) ? $("#usg_gng_txt").addClass("d-none") : '';
$("#usg_bun_txt span[class=sel_txt]").html(''); (!$("#usg_bun_txt").hasClass("d-none")) ? $("#usg_bun_txt").addClass("d-none") : '';
$("#usg_rp_txt span[class=sel_txt]").html(''); (!$("#usg_rp_txt").hasClass("d-none")) ? $("#usg_rp_txt").addClass("d-none") : '';
$("#stat_txt span[class=sel_txt]").html(''); (!$("#stat_txt").hasClass("d-none")) ? $("#stat_txt").addClass("d-none") : '';
$("#ssu_txt span[class=sel_txt]").html(''); (!$("#ssu_txt").hasClass("d-none")) ? $("#ssu_txt").addClass("d-none") : '';
$("#amt_txt span[class=sel_txt]").html(''); (!$("#amt_txt").hasClass("d-none")) ? $("#amt_txt").addClass("d-none") : '';
$("#area_txt span[class=sel_txt]").html(''); (!$("#area_txt").hasClass("d-none")) ? $("#area_txt").addClass("d-none") : '';
$("#etc_txt span[class=sel_txt]").html(''); (!$("#etc_txt").hasClass("d-none")) ? $("#etc_txt").addClass("d-none") : '';
$("#etc_kyg_txt span[class=sel_txt]").html(''); (!$("#etc_kyg_txt").hasClass("d-none")) ? $("#etc_kyg_txt").addClass("d-none") : '';
$("#etc_pre_txt span[class=sel_txt]").html(''); (!$("#etc_pre_txt").hasClass("d-none")) ? $("#etc_pre_txt").addClass("d-none") : '';
$("#etc_gng_txt span[class=sel_txt]").html(''); (!$("#etc_gng_txt").hasClass("d-none")) ? $("#etc_gng_txt").addClass("d-none") : '';
$("#etc_bun_txt span[class=sel_txt]").html(''); (!$("#etc_bun_txt").hasClass("d-none")) ? $("#etc_bun_txt").addClass("d-none") : '';
$("#etc_rp_txt span[class=sel_txt]").html(''); (!$("#etc_rp_txt").hasClass("d-none")) ? $("#etc_rp_txt").addClass("d-none") : '';
}
// µÚ·Î°¡±â½Ã ¼±ÅÃÇß´ø °Ë»öÁ¶°Ç ¼±ÅÃÇÏ´Â ÇÔ¼ö
function trim_opt_btn(srch_opt) {
if ((typeof Cjs_getCookie('set_sw_by_user') !== 'undefined' && Cjs_getCookie('set_sw_by_user') != 1)
&& (typeof srch_opt.sw_tch_kyg == 'undefined' || srch_opt.sw_tch_kyg == 0 || srch_opt.sw_tch_kyg == '')
&& (typeof srch_opt.sw_tch_pre == 'undefined' || srch_opt.sw_tch_pre == 0 || srch_opt.sw_tch_pre == '')
&& (typeof srch_opt.sw_tch_gng == 'undefined' || srch_opt.sw_tch_gng == 0 || srch_opt.sw_tch_gng == '')
&& (typeof srch_opt.sw_tch_bun == 'undefined' || srch_opt.sw_tch_bun == 0 || srch_opt.sw_tch_bun == '')
&& (typeof srch_opt.sw_tch_rp == 'undefined' || srch_opt.sw_tch_rp == 0 || srch_opt.sw_tch_rp == '')
) {
srch_opt.sw_tch_kyg = 1;
}
// ------------------------------------- ºÐ¾ß ¹öÆ°
for (var swt_iii = 0; swt_iii < sw_tch_A.length; swt_iii++) {
// Áöµµ ºÐ¾ß UI ÃÖ½ÅÈ
if ($("#frm_bg_log input[name=tk_pid]").val() == 'map_srch') {
if (typeof srch_opt['sw_tch_' + sw_tch_A[swt_iii]] !== 'undefined' && srch_opt['sw_tch_' + sw_tch_A[swt_iii]] != '') {
$("#selected_filter .sw_tch_info button[value=sw_tch_" + sw_tch_A[swt_iii] + "]").addClass('active');
$("#selected_filter .sw_tch_info button[value=sw_tch_" + sw_tch_A[swt_iii] + "]").attr('aria-pressed', 'true');
}
else {
$("#selected_filter .sw_tch_info button[value=sw_tch_" + sw_tch_A[swt_iii] + "]").removeClass('active');
$("#selected_filter .sw_tch_info button[value=sw_tch_" + sw_tch_A[swt_iii] + "]").removeAttr('aria-pressed');
}
}
// ÇÊÅÍ ºÐ¾ß ÃÖ½ÅÈ
//console.log(sw_tch_A[swt_iii]);
if (typeof srch_opt['sw_tch_' + sw_tch_A[swt_iii]] !== 'undefined' && srch_opt['sw_tch_' + sw_tch_A[swt_iii]] != '') {
$("#detail_srch_frm input[name=sw_tch_" + sw_tch_A[swt_iii] + "]").prop('checked', true);
$("#detail_srch_frm input[name=sw_tch_" + sw_tch_A[swt_iii] + "]").parent().addClass('active');
$("#" + sw_tch_A[swt_iii] + "_box").removeClass('hide');
$("#detail_srch_frm input[name=sw_tch_" + sw_tch_A[swt_iii] + "]").parent().find('.grn_arrow, .grn_arrow_big').addClass('rotate_n_180');
//console.log($("#detail_srch_frm input[name=sw_tch_"+sw_tch_A[swt_iii]+"]").parent().find('.grn_arrow').html());
//console.log($("#detail_srch_frm input[name=sw_tch_"+sw_tch_A[swt_iii]+"]").parent().find('.grn_arrow, .grn_arrow_big').attr('class')) ;
//$("#srch_opt_info").append($("#detail_srch_frm input[name=sw_tch_"+sw_tch_A[swt_iii]+"]").val());
}
else {
$("#detail_srch_frm input[name=sw_tch_" + sw_tch_A[swt_iii] + "]").prop('checked', false);
$("#detail_srch_frm input[name=sw_tch_" + sw_tch_A[swt_iii] + "]").parent().removeClass('active');
$("#" + sw_tch_A[swt_iii] + "_box").addClass('hide');
$("#detail_srch_frm input[name=sw_tch_" + sw_tch_A[swt_iii] + "]").parent().find('.grn_arrow, .grn_arrow_big').removeClass('rotate_n_180');
}
}
// ------------------------------------- ¿ëµµ, ÀÔÂû°á°ú(°æ¸Å) ¹öÆ°
//console.log(srch_btn_ct_A);
for (var btn_iii = 0; btn_iii < srch_btn_ct_A.length; btn_iii++) {
// Áöµµ ¿ëµµ UI ÃÖ½ÅÈ
if ($("#frm_bg_log input[name=tk_pid]").val() == 'map_srch') {
// Áöµµ ¿ëµµ UI class ÃʱâÈ
$("#selected_filter .rltyct_info button").removeClass('usage_apt_on usage_billa_on usage_otel_on usage_other_on');
// ¼±ÅÃµÈ ¿ëµµ°¡ ÀÖ´Ù¸é view ÀÇ class ÃÖ½ÅÈ
if (typeof srch_opt['rltyct_A'] !== 'undefined' && srch_opt['rltyct_A'].length)
for (var rct_iii = 0; rct_iii < srch_opt['rltyct_A'].length; rct_iii++) {
//console.log(srch_opt['rltyct_A'][rct_iii]);
// ¿ëµµ ¹öÆ° class nm
if (srch_opt['rltyct_A'][rct_iii] == '¾ÆÆÄÆ®') rct_cls_nm = 'apt';
else if (srch_opt['rltyct_A'][rct_iii] == '¿ÀÇǽºÅÚ') rct_cls_nm = 'otel';
//else if(srch_opt['rltyct_A'][rct_iii] == '´Ù¼¼´ë') rct_cls_nm = 'billa';
//else if(srch_opt['rltyct_A'][rct_iii] == 'ÁÖÅÃ') rct_cls_nm = 'other';
else if (srch_opt['rltyct_A'][rct_iii] == '¿¬¸³/´Ù¼¼´ë') rct_cls_nm = 'billa';
else if (srch_opt['rltyct_A'][rct_iii] == '´Üµ¶/´Ù°¡±¸') rct_cls_nm = 'other';
else if (srch_opt['rltyct_A'][rct_iii] == '»ó°¡') rct_cls_nm = 'other';
else if (srch_opt['rltyct_A'][rct_iii] == 'ÅäÁö') rct_cls_nm = 'other';
else if (srch_opt['rltyct_A'][rct_iii] == '±âŸ') rct_cls_nm = 'other';
// ¿ëµµ ¹öÆ° class ¼öÁ¤
//console.log(srch_opt['rltyct_A'][rct_iii].replace('/','\/'));
$("#selected_filter .rltyct_info button[value=" + srch_opt['rltyct_A'][rct_iii].replace('/', '\\/') + "]").addClass('usage_' + rct_cls_nm + '_on');
//console.log('usage_'+rct_cls_nm+'_on');
}
}
// ¹öÆ° class ÃʱâÈ
$("#detail_srch_frm input[name=" + srch_btn_ct_A[btn_iii] + "\\[\\]]").prop('checked', false);
$("#detail_srch_frm input[name=" + srch_btn_ct_A[btn_iii] + "\\[\\]]").parent().removeClass('active');
// ¼±ÅÃµÈ ¿ëµµ view ÃÖ½ÅÈ
if (typeof srch_opt[srch_btn_ct_A[btn_iii]] !== 'undefined' && srch_opt[srch_btn_ct_A[btn_iii]].length) {
for (var inp_iii = 0; inp_iii < srch_opt[srch_btn_ct_A[btn_iii]].length; inp_iii++) {
s_btn_val = srch_opt[srch_btn_ct_A[btn_iii]][inp_iii].replace('/', '\\/');
$("#detail_srch_frm input[name=" + srch_btn_ct_A[btn_iii] + "\\[\\]][value=" + s_btn_val + "]").prop('checked', true);
$("#detail_srch_frm input[name=" + srch_btn_ct_A[btn_iii] + "\\[\\]][value=" + s_btn_val + "]").parent().addClass('active');
}
}
}
// ------------------------------------- °æ¸Å
// ------------------------------------- Ư¼ö¹°°Ç ¹öÆ°
for (var k_sp_iii = 0; k_sp_iii < kyg_sp_ct_A.length; k_sp_iii++) {
if (typeof srch_opt[kyg_sp_ct_A[k_sp_iii]] !== 'undefined' && srch_opt[kyg_sp_ct_A[k_sp_iii]] != '') {
$("#detail_srch_frm input[name=" + kyg_sp_ct_A[k_sp_iii] + "]").prop('checked', true);
$("#detail_srch_frm input[name=" + kyg_sp_ct_A[k_sp_iii] + "]").parent().addClass('active');
}
else {
$("#detail_srch_frm input[name=" + kyg_sp_ct_A[k_sp_iii] + "]").prop('checked', false);
$("#detail_srch_frm input[name=" + kyg_sp_ct_A[k_sp_iii] + "]").parent().removeClass('active');
}
}
// ------------------------------------- ¸Å¹°
// ------------------------------------- °Å·¡Á¾·ù
$("#detail_srch_frm input[name=trade_type]").prop('checked', false);
$("#detail_srch_frm input[name=trade_type]").parent().removeClass('active');
// --- ¼±ÅÃÇß´ø °Å·¡Á¾·ù ÀÖÀ»½Ã ¼±ÅÃ, ¼±ÅÃÇß´ø Á¶°ÇÀÌ ¾ø´Ù¸é 'Àüü' °¡ default
if (typeof srch_opt['trade_type'] !== 'undefined' && srch_opt['trade_type'] != '') {
$("#detail_srch_frm input[name=trade_type][value=" + srch_opt['trade_type'] + "]").prop('checked', true);
$("#detail_srch_frm input[name=trade_type][value=" + srch_opt['trade_type'] + "]").parent().addClass('active');
}
else {
$("#detail_srch_frm input[name=trade_type][value=all]").prop('checked', false);
$("#detail_srch_frm input[name=trade_type][value=all]").parent().addClass('active');
}
// ------------------------------------- °ø¸Å
// ------------------------------------- Àç»êÁ¾·ù
if (typeof srch_opt['property_type'] !== 'undefined' &&
srch_opt['property_type'] != '')
$("#detail_srch_frm select[name=property_type]").val(srch_opt['property_type']);
else
$("#detail_srch_frm select[name=property_type]").val('');
// ------------------------------------- ´ã´çÁö»ç
if (typeof srch_opt['org_sub'] !== 'undefined' &&
srch_opt['org_sub'] != '')
$("#detail_srch_frm select[name=org_sub]").val(srch_opt['org_sub']);
else
$("#detail_srch_frm select[name=org_sub]").val('');
// ------------------------------------- ºÐ¾ç
// ------------------------------------- ¹ÌºÐ¾ç
if (typeof srch_opt['BUN_SRCH_OVER'] !== 'undefined' && srch_opt['BUN_SRCH_OVER'] != '') {
$("#detail_srch_frm input[name=BUN_SRCH_OVER]").prop('checked', true);
$("#detail_srch_frm input[name=BUN_SRCH_OVER]").parent().addClass('active');
}
else {
$("#detail_srch_frm input[name=BUN_SRCH_OVER]").prop('checked', false);
$("#detail_srch_frm input[name=BUN_SRCH_OVER]").parent().removeClass('active');
}
}
// °Ë»öÁ¶°Ç ÃʱâÈ
function Srch_Frm_Reset(frm_nm) {
$("#" + frm_nm + " select").prop('selectedIndex', 0);
$("#" + frm_nm + " input[type=checkbox]").removeAttr('checked'); // inline checked attribute À» Á¦°ÅÇÔ.
$("#" + frm_nm + " input[type=checkbox]").prop('checked', false); // inspector ¿¡ Ç¥½ÃµÇÁö ¾Ê´Â checked ¿É¼ÇÀ» ¸¦ Á¦°Å.
$("#" + frm_nm + " label[name=sw_tch_A_btn]").find('.grn_arrow, .grn_arrow_big').removeClass('rotate_n_180');
$("#" + frm_nm + " input[type=radio]").prop('checked', false);
$("#" + frm_nm + " input[type=text]").val('');
$("#" + frm_nm + " input[type=number]").val('');
$("#" + frm_nm + " input[name=sel_stat]").val('');
$("#" + frm_nm + " input[name=sel_rtyct]").val('');
// ---
$("#" + frm_nm + " input[name=js_frm_reset]").val('1');
// ---
for (var swt_iii = 0; swt_iii < sw_tch_A.length; swt_iii++) {
$("#detail_srch_frm input[name=sw_tch_" + sw_tch_A[swt_iii] + "]").prop('checked', false);
$("#detail_srch_frm input[name=sw_tch_" + sw_tch_A[swt_iii] + "]").parents().children(".grn_arrow").removeClass('rotate_n_180');
}
// ---
Cjs_setCookie('kyg_box', ''); $("#kyg_box").addClass('hide');
Cjs_setCookie('pre_box', ''); $("#pre_box").addClass('hide');
Cjs_setCookie('gen_box', ''); $("#gen_box").addClass('hide');
Cjs_setCookie('gng_box', ''); $("#gng_box").addClass('hide');
Cjs_setCookie('bun_box', ''); $("#bun_box").addClass('hide');
Cjs_setCookie('rp_box', ''); $("#rp_box").addClass('hide');
Cjs_setCookie('kyg_rlty_bx', ''); $("#kyg_rlty_bx").addClass('hide');
Cjs_setCookie('pre_rlty_bx', ''); $("#pre_rlty_bx").addClass('hide');
Cjs_setCookie('gng_rlty_bx', ''); $("#gng_rlty_bx").addClass('hide');
Cjs_setCookie('bun_rlty_bx', ''); $("#bun_rlty_bx").addClass('hide');
Cjs_setCookie('rp_rlty_bx', ''); $("#rp_rlty_bx").addClass('hide');
Cjs_setCookie('cookie_sido', '')
Cjs_setCookie('cookie_sgg', '');
Cjs_setCookie('cookie_umd', '');
Cjs_setCookie('set_sw_by_user', '');
// ---
remove_class('id', 'detail_srch_frm', '', 'label', 'active');
RemoveOptsBox();
// ---
$("#detail_srch_frm input[name=sw_tch_kyg]").prop('checked', true);
if (!$("#detail_srch_frm input[name=sw_tch_kyg]").parents().children(".grn_arrow").hasClass('rotate_n_180')) {
$("#detail_srch_frm input[name=sw_tch_kyg]").parents().children(".grn_arrow").addClass('rotate_n_180');
$("#kyg_box").removeClass('hide');
}
$("#detail_srch_frm label[target-el='kyg_box'][btn-tp='change_css_display']").trigger('click');
if (!$("#detail_srch_frm input[name=sw_tch_kyg]").parents().children(".grn_arrow").hasClass('rotate_n_180')) {
$("#kyg_box").removeClass('hide');
}
if (!$("#detail_srch_frm label[target-el='kyg_box'][btn-tp='change_css_display']").hasClass('active'))
$("#detail_srch_frm label[target-el='kyg_box'][btn-tp='change_css_display']").addClass('active');
// ---
Cjs_setCookie('prev_srch_opt', $("#" + frm_nm).serialize());
}
// ¿ëµµ»ó¼¼ ¹öÆ° view update ÇÔ¼ö
function OnOffUsgBtns(usg_obj, inp_nm, prop_stat, class_act) {
if (usg_obj.length == 0) return false;
$.each(usg_obj, function (idx, val) {
inp_nm_4_func = inp_nm.replace(/\\/g, '');
val_4_selector = val.replace('/', '\\/');
if (class_act == true) {
$("#detail_srch_frm input[name=" + inp_nm + "][value='" + val_4_selector + "']").parent().removeClass('active');
$("#detail_srch_frm input[name=" + inp_nm + "][value='" + val_4_selector + "']").prop('checked', prop_stat);
if (val_4_selector != '' && $("span[class=sel_txt] span[name=" + inp_nm + "][value=" + val_4_selector + "]").length > 0)
PrintSrchOptMultiValue(inp_nm_4_func, val, '');
}
else {
$("#detail_srch_frm input[name=" + inp_nm + "][value='" + val_4_selector + "']").parent().addClass('active');
$("#detail_srch_frm input[name=" + inp_nm + "][value='" + val_4_selector + "']").prop('checked', prop_stat);
if (val_4_selector != '' && $("span[class=sel_txt] span[name=" + inp_nm + "][value=" + val_4_selector + "]").length == 0)
PrintSrchOptMultiValue(inp_nm_4_func, val, '');
}
});
}
// ºÐ¾ßº° ´ëºÐ·ù ¿ëµµ¿¡ ¼ÓÇÑ »ó¼¼¿ëµµ¸¦ °¡Á®¿À´Â ÇÔ¼ö
function getUsgList(rtyct) {
var rty_List = {};
var kyg_rty_A = [];
var pre_rty_A = [];
var gng_rty_A = [];
var bun_rty_A = [];
var rp_rty_A = [];
if (rtyct == '¾ÆÆÄÆ®') { kyg_rty_A = ['¾ÆÆÄÆ®']; pre_rty_A = ['¾ÆÆÄÆ®']; gng_rty_A = ['¾ÆÆÄÆ®']; bun_rty_A = ['¾ÆÆÄÆ®']; rp_rty_A = ['¾ÆÆÄÆ®']; }
else if (rtyct == '¿ÀÇǽºÅÚ') { kyg_rty_A = ['¿ÀÇǽºÅÚ']; pre_rty_A = ['¿ÀÇǽºÅÚ']; gng_rty_A = ['¿ÀÇǽºÅÚ']; bun_rty_A = ['¿ÀÇǽºÅÚ']; rp_rty_A = ['¿ÀÇǽºÅÚ']; }
else if (rtyct == '´Üµ¶/´Ù°¡±¸') { kyg_rty_A = kyg_sole_rlty_A; pre_rty_A = pre_sole_rlty_A; gng_rty_A = gng_sole_rlty_A; bun_rty_A = bun_sole_rlty_A; rp_rty_A = rp_sole_rlty_A; }
else if (rtyct == '¿¬¸³/´Ù¼¼´ë') { kyg_rty_A = kyg_billa_rlty_A; pre_rty_A = pre_billa_rlty_A; gng_rty_A = gng_billa_rlty_A; bun_rty_A = bun_billa_rlty_A; rp_rty_A = rp_billa_rlty_A; }
else if (rtyct == '»ó°¡') { kyg_rty_A = kyg_store_rlty_A; pre_rty_A = pre_store_rlty_A; gng_rty_A = gng_store_rlty_A; bun_rty_A = bun_store_rlty_A; rp_rty_A = rp_store_rlty_A; }
else if (rtyct == 'ÅäÁö') { kyg_rty_A = kyg_land_rlty_A; pre_rty_A = pre_land_rlty_A; gng_rty_A = gng_land_rlty_A; bun_rty_A = bun_land_rlty_A; rp_rty_A = rp_land_rlty_A; }
else if (rtyct == 'ºÐ¾ç/ÀÔÁÖ±Ç') { kyg_rty_A = []; pre_rty_A = []; gng_rty_A = []; bun_rty_A = []; rp_rty_A = ['ºÐ¾ç/ÀÔÁÖ±Ç']; }
rty_List = { kyg_rty_A: kyg_rty_A, pre_rty_A: pre_rty_A, gng_rty_A: gng_rty_A, bun_rty_A: bun_rty_A, rp_rty_A: rp_rty_A };
return rty_List;
}
// ¼±ÅÃµÈ »ó¼¼¿ëµµÀÇ view ¸¦ update ÇÏ´Â ÇÔ¼ö
function TrimRtyBtn(rtyct) {
var sel_cnt = 0;
var tot_rty_cnt = 0;
var rty_List = {};
var kyg_rty_A = [];
var pre_rty_A = [];
var gng_rty_A = [];
var bun_rty_A = [];
var rp_rty_A = [];
// ---
rty_List = getUsgList(rtyct);
kyg_rty_A = rty_List.kyg_rty_A;
pre_rty_A = rty_List.pre_rty_A;
gng_rty_A = rty_List.gng_rty_A;
bun_rty_A = rty_List.bun_rty_A;
rp_rty_A = rty_List.rp_rty_A;
// ---
rtyct = rtyct.replace('/', '\\/');
// ---
sel_cnt += BtnCheckorNot('kyg', rtyct, kyg_rty_A);
sel_cnt += BtnCheckorNot('pre', rtyct, pre_rty_A);
sel_cnt += BtnCheckorNot('gng', rtyct, gng_rty_A);
sel_cnt += BtnCheckorNot('bun', rtyct, bun_rty_A);
sel_cnt += BtnCheckorNot('rp', rtyct, rp_rty_A);
// ---
tot_rty_cnt += kyg_rty_A.length;
tot_rty_cnt += pre_rty_A.length;
tot_rty_cnt += gng_rty_A.length;
tot_rty_cnt += bun_rty_A.length;
tot_rty_cnt += rp_rty_A.length;
// ---
//console.log($("#detail_srch_frm input[name=rltyct_A\\[\\]][value=" + rtyct + "]").parent().hasClass('active'));
//console.log($("#detail_srch_frm input[name=rltyct_A\\[\\]][value=" + rtyct + "]").parent().html());
//console.log(tot_rty_cnt +' / '+ sel_cnt);
//console.log(rtyct);
var label_nm = $("#detail_srch_frm input[name=rltyct_A\\[\\]][value=" + rtyct + "]").attr('id');
if (sel_cnt > 0 && tot_rty_cnt == sel_cnt) {
$("#detail_srch_frm input[name=rltyct_A\\[\\]][value=" + rtyct + "]").prop('checked', true);
if (!$("label[for=" + label_nm + "]").hasClass('active'))
$("label[for=" + label_nm + "]").addClass('active');
}
else {
$("#detail_srch_frm input[name=rltyct_A\\[\\]][value=" + rtyct + "]").prop('checked', false);
$("label[for=" + label_nm + "]").removeClass('active');
}
}
// ºÐ¾ßº° ¿ëµµ »ó¼¼ ¹öÆ°µéÁß ¼±ÅÃµÈ ¹öÆ°µéÀÇ °¹¼ö¸¦ ±¸ÇÔ
function BtnCheckorNot(sw_tch, rtyct, rty_obj) {
if (sw_tch == 'kyg') btn_nm = 'k_rltyct_A\\[\\]';
else if (sw_tch == 'pre') btn_nm = 'p_rltyct_A\\[\\]';
else if (sw_tch == 'gng') btn_nm = 'g_rltyct_A\\[\\]';
else if (sw_tch == 'bun') btn_nm = 'b_rltyct_A\\[\\]';
else if (sw_tch == 'rp') btn_nm = 'r_rltyct_A\\[\\]';
else
return 0;
// -----------
selected_cnt = 0;
// -----------
$.each(rty_obj, function (idx, val) {
if ($('#detail_srch_frm input[name=' + btn_nm + '][value=' + val.replace('/', '\\/') + ']:checked').length > 0)
selected_cnt++;
});
// -----------
return selected_cnt;
}
// ´ëºÐ·ù ¿ëµµ ¹öÆ°¿¡ ¼Ò¼ÓµÈ ºÐ¾ßº° ¿ëµµ»ó¼¼ ¹öÆ° view »óȲ¿¡ ¸Â°Ô update ÇÏ´Â ÇÔ¼ö
function ModDtlRtyct(inp_val, prop_stat, class_act) {
if (inp_val == '¾ÆÆÄÆ®' || inp_val == '¿ÀÇǽºÅÚ' || inp_val == 'ºÐ¾ç/ÀÔÁÖ±Ç') {
var single_rty_A = [];
single_rty_A.push(inp_val);
OnOffUsgBtns(single_rty_A, 'k_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(single_rty_A, 'p_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(single_rty_A, 'g_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(single_rty_A, 'b_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(single_rty_A, 'r_rltyct_A\\[\\]', prop_stat, class_act);
}
else if (inp_val == '´Üµ¶/´Ù°¡±¸') {
OnOffUsgBtns(kyg_sole_rlty_A, 'k_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(pre_sole_rlty_A, 'p_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(gng_sole_rlty_A, 'g_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(bun_sole_rlty_A, 'b_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(rp_sole_rlty_A, 'r_rltyct_A\\[\\]', prop_stat, class_act);
}
else if (inp_val == '¿¬¸³/´Ù¼¼´ë') {
OnOffUsgBtns(kyg_billa_rlty_A, 'k_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(pre_billa_rlty_A, 'p_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(gng_billa_rlty_A, 'g_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(bun_billa_rlty_A, 'b_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(rp_billa_rlty_A, 'r_rltyct_A\\[\\]', prop_stat, class_act);
}
else if (inp_val == '»ó°¡') {
OnOffUsgBtns(kyg_store_rlty_A, 'k_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(pre_store_rlty_A, 'p_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(gng_store_rlty_A, 'g_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(bun_store_rlty_A, 'b_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(rp_store_rlty_A, 'r_rltyct_A\\[\\]', prop_stat, class_act);
}
else if (inp_val == 'ÅäÁö') {
OnOffUsgBtns(kyg_land_rlty_A, 'k_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(pre_land_rlty_A, 'p_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(gng_land_rlty_A, 'g_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(bun_land_rlty_A, 'b_rltyct_A\\[\\]', prop_stat, class_act);
OnOffUsgBtns(rp_land_rlty_A, 'r_rltyct_A\\[\\]', prop_stat, class_act);
}
RemoveDupOpts();
}