/* ------------------------------------------------------------------------------------------------------- 달력 ------------------------------------------------------------------------------------------------------- */ function fun_calendar(tar_day,tag,img_name) { var sor = eval('document.'+tar_day); sor_day = sor.value; url = 'calendar.php?tar_day='+tar_day+'&sor_day='+sor_day+'&tag='+tag; pop_frame_cal.location.href = url; yy = 0; xx = 0; if(img_name!=null) { obj = eval('document.all.'+img_name); var newX = 0; var newY = 0; if (obj.offsetParent) { while (obj.offsetParent) { newX += obj.offsetLeft; newY += obj.offsetTop; obj = obj.offsetParent; } } else if(obj.x) { newX += obj.x; newY += obj.y; } yy = newY + 15; xx = newX - 200; } $("#popCal").css({"top":yy, "left":xx}); document.all.popCal.style.visibility = 'visible'; document.all.popCal.style.display = ""; } /* ------------------------------------------------------------------------------------------------------- 팝업관련 ------------------------------------------------------------------------------------------------------- */ function getCookie(strName) { var strArg = strName + '='; var nArgLen, nCookieLen, nEnd; var i = 0, j; nArgLen = strArg.length; nCookieLen = document.cookie.length; if(nCookieLen > 0) { while(i < nCookieLen) { j = i + nArgLen; if(document.cookie.substring(i, j) == strArg) { nEnd = document.cookie.indexOf (';', j); if(nEnd == -1) nEnd = document.cookie.length; return unescape(document.cookie.substring(j, nEnd)); } i = document.cookie.indexOf(' ', i) + 1; if (i == 0) break; } } return(''); } /* ------------------------------------------------------------------------------------------------------- 일반팝업창 ------------------------------------------------------------------------------------------------------- */ function popup_window(num,x_pos,y_pos,width,height) { height = Number(height)+26; url = '../../core/res/popup.php?num='+num; opt = 'left='+x_pos+',top='+y_pos+',width='+width+',height='+height+',resizable=yes'; popnew = 'cookie_flag_'+num; popnew_win = 'cookie_flag_'+num; if(getCookie(popnew) != 'Y') { window.open(url,popnew_win,opt); } } /* ------------------------------------------------------------------------------------------------------- 레이어팝업창 ------------------------------------------------------------------------------------------------------- */ var z_index = 10000; function fun_lay_popup(num,x_pos,y_pos,width,height) { height = Number(height)+25; popnew = 'cookie_flag_'+num; popnew_win = 'div#popup_lay_'+num; z_index++; if(getCookie(popnew) != 'Y') { $(popnew_win).css({ 'z-Index':z_index, 'position':'absolute', 'width': width, 'height': height, 'left': x_pos+'px', 'top': y_pos+'px' }); $(popnew_win).show(); } else { $(popnew_win).hide(); } } function fun_lay_close(num) { popnew_win = 'div#popup_lay_'+num; $(popnew_win).hide(); } // 개인정보취급방침 function fun_pop_privacy() { url = '../../core/res/pop_privacy.php'; window.open(url,'pop_privacy','width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes'); } // 이용약관 function fun_pop_agree() { url = '../../core/res/pop_agree.php'; window.open(url,'pop_agree','width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes'); } // 네이버예약 function fun_rev() { url = 'https://booking.naver.com/booking/3/bizes/691526'; window.open(url); }