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


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

        document.cookie = the_cookie;
}

WM_readCookie("ihtk");









