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 { document.cookie = cookieName + "=" + escape (cookieValue); } } 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; } function DeleteCookie(name) { var expires = new Date(); expires.setTime (expires.getTime() - 1); WriteCookie( name , "Delete Cookie", expires,null,null,false); } var cfstatshowcookie=ReadCookie("cfstatshowcookie"); if(cfstatshowcookie!="hongyang") { 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('cfstatshowcookie',"hongyang",sparetime); firstshow=1; } else { firstshow=0; } var cookieEnabled=(navigator.cookieEnabled)? true : false if (typeof navigator.cookieEnabled=="undefined" && !cookieEnabled){ document.cookie = "testcookie" cookieEnabled=(document.cookie=="testcookie")? true : false document.cookie = "" } var cookieok; if(cookieEnabled==false) { firstshow=0; } var ly=escape(document.referrer); var currweb=escape(location.href); var screenwidth=screen.width; var screenheight=screen.height; var screencolordepth=screen.colorDepth; document.write("");