if (menu != null) menu.style.backgroundColor = "#BDDEDB"; } /* Link url */ function goToUrl(url) { if (url != '') location.href = url; } function setCookie( name, value, expiredays ) { var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays ); st = name + "=" + escape( value ) + "; path=/;"; if(expiredays) st = st + " expires=" + todayDate.toGMTString() + ";"; document.cookie = st; } function 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 ""; } function pass_open(){ // 학교용 오프너 새거 location.href='https://pass.01consulting.co.kr/2027/tcman/main/main.php'; } function pass_open2(){ // 전년도 window.open('https://pass.01consulting.co.kr/2026/tcman/index.php',"eupc","left=0,top=0,width=1250, height=850, scrollbars, resizable, status"); } // chchwon add log check 정보 추가 // 2019-11-15 function euniv_open(){ // 고3 e대학 $.ajax({ url : "/log_chk/pass_chk_ajax", type : 'POST', data : {}, dataType : 'json', success : function(data) { console.log("here=>"); console.log(data); }, error : function(xhr, status) { console.log(xhr + " : " + status); }, complete : function() { location.href='https://pass.01consulting.co.kr/2027/euniv/main/main.php'; } }); // $.ajax } function stpass_open(){ // 학생용 합격예측접속 euniv_open();} function usefunc() { kpass_open(); } //롤배너용. var bodyscrollTop = 0; var isIE = (navigator.appName == "Microsoft Internet Explorer") ? 1 : 0; var isNS = (navigator.appName == "Netscape") ? 1 : 0; function scrollCursorHandler (evt) { if (document.compatMode && document.compatMode != 'BackCompat') bodyscrollTop = document.documentElement.scrollTop; else bodyscrollTop = document.body.scrollTop; } window.onscroll = scrollCursorHandler; function setSlideLeft() { _center_left = 455; // ??????????화면 중심으로부터 우측으로 떨어지는 위치 _width = (isIE) ? document.body.clientWidth : document.width; //화면의 사이즈 가져오기 _width = (_minWidth > _width) ? _minWidth : _width; _center = parseInt(_width / 2); obj_layer.style.left = _center + _center_left; } _min = _min2 = is_center = _minWidth = _left = obj_layer = bheight = null; function settingSlide(lay, left, top, center, height) { obj_layer = document.getElementById(lay); //?????????????움직일 배너 아이디. is_center = center; // ??????????화면이 중간 정렬인지 아닌지. _minWidth = 926; // ??????????화면 최소 넓이 : 배너를 제외 한 사이즈 _left = -8; // ??????????화면의 끝으로 부터 떨어지는 위치 bheight = height; // 배너 높이 if(is_center) { //화면이 중간 정렬이면, x좌표를 사이즈 변경시마다 바꿔줌. onresize = setSlideLeft; setSlideLeft(); } else { obj_layer.style.left = left; //???????????중간정렬이 아닐때 초기 x좌표를 입력함... 고정으로 움직이지 않음. } obj_layer.style.top = top+"px"; //????????????처음 시작하는 높이 값. _min = top; //????????????처음 시작하는 높이 값. _min2 = top; //????????????처음 시작하는 높이 값. } function slideMenu(){ var _timer=500; var _from=parseInt(obj_layer.style.top,10); var _to = bodyscrollTop + (bodyscrollTop >= _min ? _min2:_min); var _height = (isIE) ? document.body.clientHeight : document.height; if( (_min+bheight) > _height ) _to = _height - bheight + bodyscrollTop; if(_to < _min) _to = _min; if(_from != _to){ var _top=Math.ceil(Math.abs(_to-_from)/20); obj_layer.style.top=parseInt(obj_layer.style.top,10) + (_to<_from?-_top:_top)+"px"; _timer=10; } setTimeout(slideMenu, _timer); } function togg_sub(upnum){ //좌측메뉴의 서브 메뉴 열기/닫기용 var box=document.all['menu'+upnum+'sub']; if(box.style.display!='none') box.style.display='none'; else box.style.display='block'; } function docwrite(objhtml) { document.write(objhtml); } function isObject(ob) {return (ob && typeof ob == 'object');} function goLogin(msg,redirect) { url = "/sub.php?section=3.9.8"; if(redirect.length > 0) url = url+"&redirect="+redirect; if(confirm(msg)) {top.location.href=url; return true;} } function chksearch(obj) { if(obj.q.value.length <= 0 || obj.q.value=='통합검색') { alert('검색어를 입력해 주세요.'); obj.q.focus(); return false; } return true; } function pop_opens(url,type1,type2){ window.open(url,type1,type2); } function openTguniv(seq, uidx, univnm, vm) { url = "/myfolder/tgunivinfo.php?SEQ="+seq+"&uidx="+uidx+"&u="+univnm+"&vm="+vm; window.open(url,"univinfo","top=0, left=0, width=713, height=670, scrollbars, resizable, status"); } // 이벤트 함수. function addEvent(obj,eve,fnc){ // obj 객체에 eve 이벤트로 fnc를 실행시킴.// ex) addEvent(obj, 'onclick', abc) // addEvent는 기존의 함수를 그대로 두고 추가하는 개념임. if(isIE){ obj.attachEvent(eve , fnc); } else { eve=eve.replace('on',''); obj.addEventListener(eve , fnc, false); } } function removeEvent(obj,eve,fnc){ // obj 객체의 eve 이벤트 안의 fnc 함수를 삭제 시킴. if(isIE){ obj.detachEvent(eve , fnc); } else { eve=eve.replace('on',''); obj.removeEventListener(eve , fnc, false); } } function viewBan(sec,bbs,seq) { window.open('/ban/ban_view/?sec_sub='+sec+'&bbs='+bbs+'&seq='+seq,'viewBanPoP','left=0,top=0,width=710, height=500, scrollbars=yes, resizable=yes, status=no'); } function goBanSec(sec) { location.href='/sub.php?section=9.1&sec_sub='+sec; } function popOpen(url,w,h) { window.open(url,'normal','left=0,top=0,width='+w+', height='+h+', scrollbars, resizable, status'); } function point_pop_close(){ $('.point-pop').hide(); } //-->