<!-- // (c)2000-2001 WWW.surfusuf.NL
/*****************************************************************
 partly (c)1999-2001 My Brain - www.mybrain.nl - @mybrain.nl
 *****************************************************************/
d=document;
//d.oncontextmenu = nocontextmenu;      // for IE5+
//d.onmousedown = norightclick;        // for all others
yr=(new Date()).getFullYear();
defaultStatus ="Copyright © 1999-" + yr + " - My Brain - www.pijp.net - All Rights Reserved.";

function getCookie(getCookieName) {
  var gcname = getCookieName + "=";
  var m = 0;
  while (m < document.cookie.length) {
    var n = m + gcname.length;
    if (document.cookie.substring(m, n) == gcname){
    var clngth = document.cookie.indexOf (";", n);
    if (clngth == -1) clngth = document.cookie.length;
    return unescape(document.cookie.substring(n, clngth));
    }
    m = document.cookie.indexOf(" ", m) + 1;
    if (m == 0) break;
  }
  return "*";
}
function delCookie(delCookieNaam) {
  document.cookie = delCookieNaam + "=; expires= Thu, 01-Jan-70 00:00:01 GMT";
  document.cookie = delCookieNaam + "=; expires= Thu, 01-Jan-70 00:00:01 GMT; path=/";
  return true;
}
function setCookie(setCookieName, setCookieValue) {
  var expire = new Date ();
  expire.setTime (expire.getTime() + (365 * 24 * 60 * 60 * 1000));
  document.cookie = setCookieName + "=" + escape (setCookieValue) + "; expires=" + expire.toGMTString() + "; path=/";
}
//This block will capture the right click and discard it
if (window.Event) // Only Netscape will have the CAPITAL E.
  document.captureEvents(Event.MOUSEUP); // catch the mouse up event
function nocontextmenu() // this function only applies to IE4, ignored otherwise.
{ event.cancelBubble = true; event.returnValue = false; return false; }
function norightclick(e)   // This function is used by all others
{ if (window.Event) { if (e.which == 2 || e.which == 3) { return false; } }
  else { if (event.button == 2 || event.button == 3) { event.cancelBubble = true; event.returnValue = false; return false; } } 
}
// datum
function writeToday()
{ var vada = new Date();
  var StrVandaag;
	switch (vada.getDay())
	{ case 0 : StrVandaag = "Zondag "; break;
	  case 1 : StrVandaag = "Maandag "; break;
	  case 2 : StrVandaag = "Dinsdag "; break;
	  case 3 : StrVandaag = "Woensdag "; break;
	  case 4 : StrVandaag = "Donderdag "; break;
	  case 5 : StrVandaag = "Vrijdag "; break;
	  case 6 : StrVandaag = "Zaterdag "; break; }
	StrVandaag += vada.getDate()
	switch (vada.getMonth())
	{ case  0 : StrVandaag += " januari "; break;
	  case  1 : StrVandaag += " februari "; break;
	  case  2 : StrVandaag += " maart "; break;
	  case  3 : StrVandaag += " april "; break;
	  case  4 : StrVandaag += " mei "; break;
	  case  5 : StrVandaag += " juni "; break;
	  case  6 : StrVandaag += " juli "; break;
	  case  7 : StrVandaag += " augustus "; break;
	  case  8 : StrVandaag += " september "; break;
	  case  9 : StrVandaag += " oktober "; break;
	  case 10 : StrVandaag += " november "; break;
	  case 11 : StrVandaag += " december "; break; }
	StrVandaag += vada.getFullYear();
	d.write(StrVandaag);
}

function doSearch(){
  var words = d.searchforit.query.value;
  if (notEmpty(words))
  { var searchitems = addplus(words);
    var index = d.searchforit.service.selectedIndex;
    var siteURL = d.searchforit.service.options[index].value;
    setCookie('SearchService',d.searchforit.service.selectedIndex);
    siteURL += searchitems;
    go1(siteURL,"0");
  }
}
function addplus(items){
  var plussed = "";
  for (var t = 1 ; t <= items.length ; t++)
  { if (items.substring(t-1,t) == " ")
    { plussed+="+"; }
    else
    { if (items.substring(t-1,t) == "+")
      { plussed+="%2B"; }
      else
      { plussed+=items.substring(t-1,t); }
    }
  }
  return plussed;
}
function notEmpty(word){
  if (word == "" || word == null)
  { alert("\nWaar bent u naar op zoek??\n\nMinimaal één zoekwoord opgeven ...");
    d.searchforit.query.focus();
    return false; }
  else
  { return true; }
}
function SearchFormInit()
{ searchCookie=getCookie("SearchService");
  if ((searchCookie!='*') && (searchCookie!=-1))
  { d.searchforit.service.selectedIndex = searchCookie; }
  d.searchforit.query.focus();
}

//-->

