function swopBG(kleur) {
  document.bgColor='#'+(kleur);
  }

function displayStatusMsg(BarInf) {
  status=BarInf;
  document.returnValue = true;
  }

function flashGetHref() {
  return location.href;
  }

function flashPutHref(href) {
  location.href = href;
  }

function flashGetTitle() {
  return document.title;
  }

function flashPutTitle(title) {
  document.title = title;
  }

function learnform() {
  missinginfo = "";
  if (document.forms['unicycle_learn'].hint.value == "") {
    alert("you did not fill in any hints");
    return false;
    }
  else return true;
  }

function reloadPage(init) {
  if (init==true) with (navigator) {
    if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
      document.pgW=innerWidth;
      document.pgH=innerHeight;
      onresize=reloadPage;
      }
    }
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
  }

function srcblur(el) {
  if (el.defaultValue=='') el.value = el.defaultValue
  }

function findObj(n, d) {
  var p,i,x;
  if(!d) d=document;
  if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);
    }
  if(!(x=d[n])&&d.all)                         x=d.all[n];
  for(i=0;!x&&i<d.forms.length;i++)            x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(     !x&&d.getElementById)                x=d.getElementById(n);
  return x;
  }

function checkG00G13() {
  missinginfo = "";
  if((document.forms['src'].q.value == "")    ||
     (document.forms['src'].q.value == "site-search results powered by:")) {
    alert("fill in a search string");
    return false;
    }
  else {
    return true;
    }
  }

function cutkeyH(ch) {
  if (ch == "35"  ||
      ch == "36"  ||
      ch == "38"  ||
      ch == "39"  ||
      ch == "42"  ||
      ch == "59"  ||
      ch == "60"  ||
      ch == "62"  ||
      ch == "91"  ||
      ch == "92"  ||
      ch == "93"  ||
      ch == "94"  ||
      ch == "96"  ||
      ch == "123" ||
      ch == "124" ||
      ch == "125" ||
      ch == "126") {
    // alert(ch);
    return false;
    }
  else {
    return true;
    }
  }

function P0Pup(webplek,naam,feats) {
  window.open(webplek,naam,feats);
  }
