<!--
function startInschrijving(cursuscode) {
  writeCookie("Inschrijving",cursuscode);
}

function inschrijvingVoltooid() {
  writeCookie("Inschrijving","",-1);
}

function studiegidsAangevraagd() {
  writeCookie("Studiegids","ja");
}

function valideerTerugbellen(theForm) {
  var val_ok = true;
  if (is_leeg(radioValue(theForm.elements["radGeslacht"]))) {
	val_ok = false;
	window.alert("Aanhef invullen is verplicht");
  }
  if (is_leeg(theForm.elements["txtAchternaam"].value)) {
	val_ok = false;
	window.alert("Achternaam invullen is verplicht");
  }
  if (is_leeg(theForm.elements["txtTelefoon"].value)) {
	val_ok = false;
	window.alert("Telefoon invullen is verplicht");
  } else {
	if (!valideerTel(theForm.elements["txtTelefoon"].value,'',false)) {
	  val_ok = false;
	  window.alert("Ongeldig telefoonnummer");
	}
  }
  if (is_leeg(theForm.elements["txtVraag"].value)) {
	val_ok = false;
	window.alert("Vraag invullen is verplicht");
  }
  return val_ok;
}

function terugbelactie() {
  var cursuscode = readCookie("Inschrijving");
  var studiegids = readCookie("Studiegids");

  if (cursuscode != null && cursuscode != "") {
    if (studiegids == null || studiegids == "") {
	  window.open('modules/afronden.asp?cursuscode=' + cursuscode,'afronden','width=600,height=400');
	}
  }
}

// Example:
// writeCookie("myCookie", "my name", 24);
// Stores the string "my name" in the cookie "myCookie" which expires after 24 hours.
function writeCookie(name, value, hours)
{
  var path = ";path=/";
  var expire = "";
  if(hours != null)
  {
    expire = new Date((new Date()).getTime() + hours * 3600000);
    expire = "; expires=" + expire.toGMTString();
  }
  document.cookie = name + "=" + escape(value) + expire + path;
}
// Example:
// alert( readCookie("myCookie") );
function readCookie(name)
{
  var cookieValue = "";
  var search = name + "=";
  if(document.cookie.length > 0)
  { 
    offset = document.cookie.indexOf(search);
    if (offset != -1)
    { 
      offset += search.length;
      end = document.cookie.indexOf(";", offset);
      if (end == -1) end = document.cookie.length;
      cookieValue = unescape(document.cookie.substring(offset, end))
    }
  }
  return cookieValue;
}
-->