function setCookies1( name, value, expires ) { document.cookie = name + "=" + escape (value) + "; path=/; expires=" + expires.toGMTString(); } function closeWin(objname,pop) { var expdate = new Date(); expdate.setTime(expdate.getTime() + 24*60*60*1000 ); // *365 365일 setCookies1( pop, "done" , expdate ); document.getElementById(objname).style.display = "none"; } function getCookies1(Name) { var search = Name + "="; offset = document.cookie.indexOf(search); if (document.cookie.length > 0) { // 쿠키가 설정되어 있다면 if (offset != -1) { // 쿠키가 존재하면 offset += search.length; // set index of beginning of value end = document.cookie.indexOf(";", offset); // 쿠키 값의 마지막 위치 인덱스 번호 설정 if (end == -1) end = document.cookie.length; return unescape(document.cookie.substring(offset, end)); } } } function win_link(url_link) { location.href=url_link; }