efix.length)Р if (cookieEndIndex == -1)Р cookieEndIndex = document.cookie.lengthР return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))Р}Рfunction deleteCookie(name, path, domain) {Р if (getCookie(name)) {Р document.cookie = name + "=" + Р ((path) ? "; path=" + path : "") +Р ((domain) ? "; domain=" + domain : "") +Р "; expires=Thu, 01-Jan-70 00:00:01 GMT"Р }Р}Рfunction fixDate(date) {Р var base = new Date(0)Р var skew = base.getTime()Р if (skew > 0)Р date.setTime(date.getTime() - skew)Р}Рvar now = new Date()РfixDate(now)Рnow.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000)Рvar visits = getCookie("counter")Рif (!visits)Р visits = 1РelseР visits = parseInt(visits) + 1РsetCookie("counter", visits, now)Рdocument.write("欢迎您第" + visits + " 次来到本站点")Р// -->