function setCookie(cookiename,cookievalue)
{
	var the_cookie = cookiename + "=" + escape(cookievalue);
	var the_date = new Date("December 31, 2050");
  var the_cookie_date = the_date.toGMTString();
	the_cookie = the_cookie + ";expires=" + the_cookie_date;
	document.cookie = the_cookie;
}
