var chatId; function setStat() { var sitenum = "1"; var sessionid = "SESSIONID_"+sitenum; var connectid = "CONNECTID_"+sitenum; var appname = navigator.userAgent; var os; var osversion; var browser; var browsername; var isfirst = false; // üũ ÇØ»óµµ var vn_screenx = screen.width; // È­¸é½ºÅ©¸° ³ÐÀÌ var vn_screeny = screen.height; // È­¸é½ºÅ©¸° ³ôÀÌ var resolution = vn_screenx + " * " + vn_screeny; // Check OS if(appname.indexOf("NT 5.0")>0) { os = "Windows 2000"; osversion = "2000"; } else if(appname.indexOf("NT 6.0")>0) { os = "Windows Vista"; osversion = "VISTA"; } else if(appname.indexOf("NT 5.1")>0) { os = "Windows XP"; osversion = "XP"; } else if(appname.indexOf("NT 5.2")>0) { os = "Windows 2003"; osversion = "2003"; } else if(appname.indexOf("98")>0) { os = "Windows 98"; osversion = "98"; } else if(appname.indexOf("ME")>0) { os = "Windows ME"; osversion = "ME"; } else if(appname.indexOf("LINU")>0) { os = "LINUX"; osversion=""; } else { os = "ETC"; osversion="-"; } if(appname.indexOf("MSIE 7.0")>0) { browser="MSIE 7.0"; browsername="Internet Explorer"; } else if(appname.indexOf("MSIE 6.0")>0) { browser="MSIE 6.0"; browsername="Internet Explorer"; } else if(appname.indexOf("MSIE 5.5")>0) { browser="MSIE 5.5"; browsername="Internet Explorer"; } else if(appname.indexOf("MSIE 5.0")>0) { browser="MSIE 5.0"; browsername="Internet Explorer"; } else if(appname.indexOf("MSIE")>0) { browser="MSIE"; browsername="Internet Explorer"; } else if(appname.indexOf("Gecko")>0) { browser="Gecko"; browsername=navigator.appName;} else if(appname.indexOf("Opera")>0) {browser = "Opera"; browsername="Internet Explorer";} else { browser = "ETC"; browsername=navigator.platform; } var url = document.URL var urls = url.split("?"); var urlhost = urls[0]; var urlquery = urls.length>1 ? urls[1] : ""; //alert(typeof("parent.document")); var pref = "";//document==null ? "" : parent.document.referrer; var ref = document.referrer; var refs, refhost="", refquery=""; try{ pref = parent.document.referrer;}catch(_e){ try{ pref = top.document.referrer; }catch(_e){ pref = ""} } if(pref != ref) { ref = pref; } if(ref==url) { ref = ""; } else { refs = ref.split("?"); refhost = refs[0]; refquery = refs.length>1 ? refs[1] : ""; } var expire = new Date(); var sessionid_val = getCookie(sessionid); var connectid_val = getCookie(connectid); var curdate = new Date(2024, 11, 1, 11, 24, 1, expire.getMilliseconds() ); expire.setTime(curdate.getTime() + 1000 * 3600 * 24 * 365); if(sessionid_val=="") { setCookie(sessionid, ""+curdate.getTime(), expire); sessionid_val = ""+curdate.getTime(); } if(connectid_val == "") { connectid_val = ""+curdate.getTime(); setCookie(connectid,connectid_val,null); isfirst = true; } chatId = connectid_val; // À̹ÌÁö ¸µÅ©ÇÒ ¶§´Â Àý´ë °æ·Î·Î ÇÕ´Ï´Ù. HOST¸í±îÁö Àû¾î ÁÖ¾î¾ß ÇÕ´Ï´Ù. var img = "http://weblog2.hwalin.co.kr/stat.jsp?sitenum=" + sitenum+"&isfirst="+isfirst+"&sessionid="+sessionid_val+"&connectid="+connectid_val+"&os="+escape(os)+"&osversion="+escape(osversion)+"&browser="+escape(browser)+"&browsername="+escape(browsername)+"&ref="+escape((ref))+"&url="+escape((url))+"&resolution="+resolution; document.write(""); } // COOKIE ¼³Á¤ 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 setCookie (name, value, expires) { if(expires==null) document.cookie = name + "=" + escape (value) + "; path=/"; else document.cookie = name + "=" + escape (value) + "; path=/; expires=" + expires.toGMTString(); } /////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////// setStat(); /////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////