function WM_readCookie(name) {
	var allcookies = document.cookie;
	var pos = allcookies.indexOf("phrck=");
  	if(pos == -1){
	   return setCookie();
       }
}


function setCookie()
{
        today = new Date();
        mytime = Math.round((today.getTime()));
        var the_cookie = "phrck=" + mytime;
        var the_date = new Date("December 30, 2010");
        var the_cookie_date = the_date.toGMTString();
        the_cookie = the_cookie + " ;expires=" + the_cookie_date;
        the_cookie = the_cookie + " ;path=" + "/";
        the_cookie = the_cookie + " ;domain=" + ".phrconline.org";

        document.cookie = the_cookie;
}

WM_readCookie("phrck");