function Get_Cookie(name) {
  var start = document.cookie.indexOf(name+"=");
  var len = start+name.length+1;
  if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
  if (start == -1) return null;
  var end = document.cookie.indexOf(";",len);
  if (end == -1) end = document.cookie.length;
 return unescape(document.cookie.substring(len,end));
}
function Set_RegisteredCookie()
{
	var theDate = new Date();
	var theDate2 = new Date(theDate.getTime()+ 7*24*60*60*1000)
	var the_cookie_date = theDate2.toGMTString();
	var the_cookie2="registered=yes"
	the_cookie2 = the_cookie2 + ";expires=" + the_cookie_date;
	the_cookie2 = the_cookie2 + ";path=/;"
	document.cookie = the_cookie2;
}
function Set_RegisteredDownCookie()
{
	var theDate = new Date();
	var theDate2 = new Date(theDate.getTime()+ 7*24*60*60*1000)
	var the_cookie_date = theDate2.toGMTString();
	var the_cookie2="registeredfordownload=yes"
	the_cookie2 = the_cookie2 + ";expires=" + the_cookie_date;
	the_cookie2 = the_cookie2 + ";path=/;"
	document.cookie = the_cookie2;
}
