function WriteCookie (cookieName, cookieValue, expiry) { var expDate = new Date(); if(expiry) { expDate.setTime (expDate.getTime() + expiry); document.cookie = cookieName + "=" + escape (cookieValue) + "; path=/ expires=" + expDate.toGMTString(); } else { False } } function ReadCookie(name){ var cookieValue = ""; var search = name + "="; if(document.cookie.length > 0) { offset = document.cookie.indexOf(search); if (offset != -1) { offset += search.length; end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; cookieValue = unescape(document.cookie.substring(offset, end)) } } return cookieValue; } var cookieEnabled=(navigator.cookieEnabled)? true : false if (typeof navigator.cookieEnabled=="undefined" && !cookieEnabled){ document.cookie = "testcookie" cookieEnabled=(document.cookie=="testcookie")? true : false document.cookie = "" } var firstshow; var visittotal; if(cookieEnabled==true) { var CFCountShowCookie=ReadCookie("CFCountShowCookie"); var CFCountVisitTotalCookie=ReadCookie("CFCountVisitTotalCookie"); var CFCountGGCookie=ReadCookie("CFCountGGCookie"); if(CFCountShowCookie!="clcmw") { a=new Date(); h=a.getHours(); m=a.getMinutes(); s=a.getSeconds(); sparetime=1000*60*60*24*1-(h*3600+m*60+s)*1000-1; WriteCookie('CFCountShowCookie',"clcmw",sparetime); firstshow=1; } else { firstshow=0; } if(CFCountVisitTotalCookie=="") { sparetime=1000*60*60*24*3650; WriteCookie('CFCountVisitTotalCookie',"1",sparetime); visittotal=1; } else { if(firstshow==1) { visittotal=parseInt(CFCountVisitTotalCookie)+1; sparetime=1000*60*60*24*3650; WriteCookie('CFCountVisitTotalCookie',visittotal,sparetime); } else { visittotal=parseInt(CFCountVisitTotalCookie); } } } else { firstshow=0; visittotal=1; } var ly=escape(document.referrer); var currweb=escape(location.href); var screenwidth=screen.width; var screenheight=screen.height; var screencolordepth=screen.colorDepth; document.write('');