function private_popup(formName){ f = formName; f = eval(f); if(f.private_check.checked == true) { win=window.open('/main/privacy_view/','private','width=552,height=510,left=420,top=200'); win.focus(); } } function quick_private_popup(formName){ f = formName ; f = eval(f) ; if(f.private_check.checked == true) { win=window.open('/main/privacy_view/quick/','private','width=552,height=510,left=420,top=200'); win.focus(); } } function private_popup2(chk){ if(chk == "Y") { win=window.open('/main/privacy_view/special/','private','width=552,height=510,left=420,top=200'); win.focus(); } } function dialogAjaxDefault(ajaxUrl, ajaxWidth, ajaxHeight) { Dialog.alert( { url : ajaxUrl, options : { method : 'get' } }, { className : 'default', width : ajaxWidth, height : ajaxHeight, closable : true, draggable : true, okLabel: 'none' }) } function displayFlash(src, width, height, id) { var flashDSP = "";document.write(flashDSP) } // 상품상세탭 셀렉트 로드페이지지정 function tab_subCTL(tName,scName,clickBtn){ var thistab = $(tName) var thisView = $(scName) var thisNoad = $(tName+" a") var tabNum = thistab.find("a").length-1 thisNoad.click(function() { clickBtn = $(this).index(); //alert(clickBtn) for (i = 0; i <= tabNum; i++){ if(i == clickBtn){ onName = thistab.find("a:eq("+clickBtn+") img").attr("src"); onImages = onName.replace("_off","_on"); thistab.find("a:eq("+clickBtn+") img").attr({src:onImages}); thisView.find(".bohum-text:eq("+clickBtn+")").css({"display":"block"}); }else{ offName = thistab.find("a:eq("+i+") img").attr("src"); if(offName.indexOf("_on")>-1){ offImage = offName.replace("_on","_off"); thistab.find("a:eq("+i+") img").attr({src:offImage}); thisView.find(".bohum-text:eq("+i+")").css({"display":"none"}); } } if(clickBtn == 3){ $(".bohum-details .bohum-right").css({"display":"none"}); }else{ $(".bohum-details .bohum-right").css({"display":"block"}); } } }) if(clickBtn == 3){ $(".bohum-details .bohum-right").css({"display":"none"}); }else{ $(".bohum-details .bohum-right").css({"display":"block"}); } //초기화 for (i = 0; i <= tabNum; i++) { offName = thistab.find("a:eq("+i+") img").attr("src").replace("_on.gif", "_off.gif"); thistab.find("a:eq("+i+") img").attr({ src: offName }) } $(".bohum-details .cont-list .bohum-text").css({"display":"none"}); onName = thistab.find("a:eq("+clickBtn+") img").attr("src").replace("_off.gif","_on.gif"); thistab.find("a:eq("+clickBtn+") img").attr({src:onName}) thisView.find(".bohum-text:eq("+clickBtn+")").css({"display":"block"}); } function product_tabCall(sTabnum){ //tab_subCTL(탭,탭컨텐츠,표시될번호 ) //alert("호출 상품탭메뉴번호 >"+sTabnum) tab_subCTL(".bohum-details .tab",".bohum-details .cont-list",sTabnum); } //무료상담신청 function open_layer_free_request(insur_code, category_code){ var url = "/insur/free_layer_open"; var data = "insur_code="+insur_code+"&category_code="+category_code; $.ajax({ type: "POST", url: url, data: data, success: function(result_data){ $('#free_request_area').html(""); $('#free_request_area').html(result_data); $("#free_request_area").dialog({ width:500, height:600, modal:true, draggable:false, resizable:false }); $('#free_request_area').siblings('div.ui-dialog-titlebar').remove(); } }); } //보험가입신청 function open_layer_join_request(insur_code, category_code){ var url = "/insur/join_request_layer_open"; var data = "insur_code="+insur_code+"&category_code="+category_code; $.ajax({ type: "POST", url: url, data: data, success: function(result_data){ $('#join_request_area').html(""); $('#join_request_area').html(result_data); $("#join_request_area").dialog({ width:510, height:650, modal:true, draggable:false, resizable:false }); $('#join_request_area').siblings('div.ui-dialog-titlebar').remove(); } }); } //sms 인증창 오픈 function open_sms_layer(customer_mobile, type) { $.validationEngine.closePrompt('.formError',true); $.ajax({ type: "POST", url: "/insur/get_auth_no", data: "", success: function(no){ $('#sms_area').load('/insur/set_auth_form', {'auth_no':no, 'customer_mobile':customer_mobile, 'type':type}); $("#sms_area").dialog({ width:450, height:300, modal:true, resizable:false }); $('#sms_area').siblings('div.ui-dialog-titlebar').remove(); } }); } //탭 자동 이동 function auto_tab(id1, id2, length) { if ($(id1).val().length == length) { $(id2).focus(); } } function set_blank(id, check_id) { $(id).val(""); $(check_id).val('Y'); } function show_small_loading(area){ $(area).html("
