function SetCookie(name,value){ var the_cookie = ""; var the_date = new Date("December 31, 2010"); the_cookie = the_cookie + name + "=" + value + ";"; the_cookie = the_cookie + "path=/;"; //the_cookie = the_cookie + "domain=;"; the_cookie = the_cookie + "expires=" + the_date.toGMTString() + ";"; document.cookie = the_cookie; } try{ if(navigator.cookieEnabled){ var _ref=escape(document.referrer); var _firstpage=escape(document.location); SetCookie("referrer",_ref); SetCookie("screen",screen.width+"x"+screen.height); SetCookie("firstpage",_firstpage); } } catch(e){}