function SetEmail() {
	if (GetCookie ('Email') != null) {
		document.invoer.Email.value = GetCookie ('Email');
		document.invoer.Wachtwoord.value = GetCookie ('Wachtwoord');
		document.invoer.Email.focus()
		if (GetCookie ('Wachtwoord') == '') {
			document.invoer.WachtwoordBewaren.checked = false
			document.invoer.Wachtwoord.value = '';
		}
	}
}
function SetCookie(cookieName,cookieValue,nDays) {
 var today = new Date();
 var expire = new Date();
 if (nDays==null || nDays==0) nDays=1;
 expire.setTime(today.getTime() + 3600000*24*nDays);
 document.cookie = cookieName+"="+escape(cookieValue)+ ";expires="+expire.toGMTString();
}

function GetCookie (name) {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
      return getCookieVal (j);
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break;
	}
return "";
}
function getCookieVal (offset) {
  var endstr = document.cookie.indexOf (";", offset);
 if (endstr == -1)
    endstr = document.cookie.length;
  return document.cookie.substring(offset, endstr);
}


