function openCounselRightBanner(){ var infoCounUrl = '/goods/comm/counsel/join_cnsl_form.jsp'; setFormName('iv_goods_form'); infoCounUrl += "?goods_name="+getViewObjVal("goods_name") infoCounUrl += "&company_name="+getViewObjVal("company_name") infoCounUrl += "&group_product_cd="+getViewObjVal("group_product_cd") infoCounUrl += "&curr_page="+getViewObjVal("curr_page"); infoCounUrl += "&i_market_cd="+getViewObjVal("i_market_cd"); openIvWin(infoCounUrl, 'counsel_pop', 450, 440, 'no'); } function ivDisPlanInfoRight(no){ var totCntPlna = totCntPlna1; var minPlanId = minPlanId1; var maxPlanId = maxPlanId1; if(no == -1){ if(minPlanId == 0) return; eval("ban_tab_plan1_" + ( minPlanId + no ) + ".style.display = 'block'"); eval("ban_tab_plan1_" + maxPlanId + ".style.display = 'none'"); }else{ if(maxPlanId >= totCntPlna -1) return; eval("ban_tab_plan1_" + minPlanId + ".style.display = 'none'"); eval("ban_tab_plan1_" + ( maxPlanId + no ) + ".style.display = 'block'"); } eval("minPlanId1 = minPlanId + no"); eval("maxPlanId1 = maxPlanId + no"); } function oneToOneView(){ if(document.getElementById('one_to_one_info').style.display != 'none'){ closeOneToOneView(); return; } try{ document.getElementById('right_banner_div').style.zIndex = 15; }catch(E){} if(member_yn){ var httpRequest = getXMLHttpRequest(); var url = '/join_site/layout/insvalley/oneToOneAllService.jsp'; httpRequest.open('GET', url, false); httpRequest.send(null); document.getElementById('one_to_one_detail').innerHTML = httpRequest.responseText.trim(); } document.getElementById('one_to_one_all').style.display = ''; document.getElementById('one_to_one_info').style.display = ''; } function closeOneToOneView(){ try{ document.getElementById('right_banner_div').style.zIndex = 14; document.getElementById('one_to_one_all').style.display = 'none'; document.getElementById('one_to_one_info').style.display = 'none'; }catch(e){} } var httpRequestRealtime; function getOneToOneNotice(){ insu_increase_cookie = layer_getCookie('insu_increase'); car_expire_cookie = layer_getCookie('car_expire'); coupon_cookie = layer_getCookie('coupon_cookie'); if(insu_increase_cookie == 'Y' && car_expire_cookie == 'Y' && coupon_cookie == 'Y') return; httpRequestRealtime = getXMLHttpRequest(); var url = '/join_site/layout/insvalley/getOneToOneNotice.jsp'; httpRequestRealtime.open('GET', url, true); httpRequestRealtime.onreadystatechange = goServiceOneToOne; httpRequestRealtime.send(null); } function layer_setCookie(name, value, expiredays){ var todayDate = new Date(); //¿À´Ã 24½Ã·Î ÄíŰ À¯È¿½Ã°£ ¼³Á¤ //(setTimeÀ¸·Î Ãʰ¡Áö 0À¸·Î ÇÏ¸é ¸ðµç½Ã°£ÀÌ ÃʱâÈ­ µÇ±â¶§¹®¿¡ ÃÊ´Â ±×³É³ªµÐ´Ù) 2005.12.02 By ¹é½ÂÃá var hour_1 = eval(24-todayDate.getHours()); todayDate.setHours(eval(todayDate.getHours()+hour_1)); todayDate.setMinutes(0); document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" } //°øÁö»çÇ× Pop-up function layer_getCookie(name){ var nameOfCookie = name + "="; var x = 0; while(x <= document.cookie.length){ var y = (x+nameOfCookie.length); if(document.cookie.substring( x, y ) == nameOfCookie){ if ((endOfCookie=document.cookie.indexOf( ";", y )) == -1) endOfCookie = document.cookie.length; return unescape(document.cookie.substring( y, endOfCookie)); } x = document.cookie.indexOf( " ", x ) + 1; if(x == 0) break; } return ""; } var insu_increase_cookie = ''; var car_expire_cookie = ''; var coupon_cookie = ''; var service_result; function goServiceOneToOne(){ if(httpRequestRealtime.readyState == 4){ if(httpRequestRealtime.status == 200){ service_result = eval("(" + httpRequestRealtime.responseText + ")"); getServiceIncrease(); } } } function getServiceIncrease(){ if(insu_increase_cookie != 'Y' && service_result.insu_increase.increase_yn){ var insu = service_result.insu_increase; var message = ''; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "
" + name + "´Ô,
\n"; message += "
" + insu.increase_year + "³â " + insu.increase_month + "¿ù " + insu.increase_day + "ÀÏ ÀÌÈÄ¿¡´Â
\n"; message += "º¸Ç質ÀÌ 1¼¼ Áõ°¡ÇÏ¿© º¸Çè·á°¡ »ó½ÂµË´Ï´Ù.
´Ý±â
\n"; document.getElementById('one_to_one_detail').innerHTML = message; document.getElementById('one_to_one_all').style.display = ''; document.getElementById('one_to_one_info').style.display = ''; setTimeout("getCarExpire()", 5000); }else{ getCarExpire(); } layer_setCookie("insu_increase", "Y" , 1); } function getCarExpire(){ closeOneToOneView(); if(car_expire_cookie != 'Y' && service_result.car_expiration.expiration_yn){ var car_info = service_result.car_expiration; var message = ''; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "
ÀÚµ¿Â÷º¸Çè ¸¸±â " + car_info.expiration_day_ago + "ÀÏÀü ÀÔ´Ï´Ù!
\n"; message += "
" + name + "´ÔÀÇ ÀÚµ¿Â÷º¸Çè ¸¸±âÀÏÀº
\n"; message += "" + car_info.expiration_year + "³â " + car_info.expiration_month + "¿ù " + car_info.expiration_day + "ÀÏ(" + car_info.expiration_day_of_week + "¿äÀÏ)ÀÔ´Ï´Ù.
ÀÚµ¿Â÷º¸Çè ºñ±³°ßÀû
´Ý±â
\n"; document.getElementById('one_to_one_detail').innerHTML = message; document.getElementById('one_to_one_all').style.display = ''; document.getElementById('one_to_one_info').style.display = ''; setTimeout("getCouponLayer()", 5000); }else{ getCouponLayer(); } layer_setCookie("car_expire", "Y" , 1); } function getCouponLayer(){ closeOneToOneView(); if(coupon_cookie != 'Y' && service_result.coupon.coupon_yn){ var coupon_info = service_result.coupon; var message = ''; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "\n"; message += "
" + name + "´Ô,
\n"; message += "
ÄíÆùÀ¸·Î º¸Çè·á Àý¾àÇϼ¼¿ä!
\n"; message += "
100% Çö±Ýȯ±ÞÄíÆù " + coupon_info.coupon_num + "Àå
³» ÄíÆùº¸±â
´Ý±â
\n"; document.getElementById('one_to_one_detail').innerHTML = message; document.getElementById('one_to_one_all').style.display = ''; document.getElementById('one_to_one_info').style.display = ''; setTimeout("closeOneToOneView()", 5000); } layer_setCookie("coupon_cookie", "Y" , 1); }