var never = new Date()
never.setTime(never.getTime() + 2000*24*60*60*1000);
function SetCookie(name, value) {
 var expString = "; expires=" + never.toGMTString();
 document.cookie = name + "=" + escape(value) + expString;
}
function GetCookie(name) {
 var result = null;
 var myCookie = " " + document.cookie + ";";
 var searchName = " " + name + "=";
 var startOfCookie = myCookie.indexOf(searchName);
 var endOfCookie;
 if (startOfCookie != -1) {
  startOfCookie += searchName.length; 
  endOfCookie = myCookie.indexOf(";", startOfCookie);
  result = unescape(myCookie.substring(startOfCookie, endOfCookie));
 }
 return result;
}
// var defaultString = "<Please enter the NAME of the birthday child>";
var user_name = GetCookie("user_name");
if (user_name == null) {
 repeat = true;
 while (repeat) {
  if ((user_name == null) || (user_name == defaultString))
   user_name = "Enter the name of a Mover!";
  if ((user_name != null) && (user_name != defaultString))
   SetCookie('user_name', user_name);
  repeat = false;
//  if (GetCookie("user_name") == null)
//   repeat = confirm("Please enter the NAME "
//   + " of the person that has a "
//   + "BIRTHDAY ! ");
 }
}
// document.write("<h1>user_name =" + user_name + "= value</h1>");
function delCookie (NameOfCookie) {
  if (getCookie(NameOfCookie)) {
    document.cookie = NameOfCookie + "=" +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}
function DoTheCookieStuff(user_name)
 {
   SetCookie('user_name',user_name,365) 
MyWindow=window.open('anmeld2.htm','MyWindow','toolbar=yes,location=yes,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=740,height=570,left=1,top=1');
 }
