tmlcSameHeightForDivs = function() {
    colHeight1 = document.getElementById("content").scrollHeight - 208; 
    // - waarde die content eerder begint als kolom2 en kolom 3
    if (document.getElementById("kolom2")) {
      colHeight2 = document.getElementById("kolom2").scrollHeight;
    } else {
      colHeight2 = 0; 
    }
    colHeight3 = document.getElementById("kolom3").scrollHeight;
  if (colHeight1 < colHeight2 || colHeight1 < colHeight3) { 
    if (colHeight2 > colHeight3) {
        //alert("1: " + colHeight1 + " 2: " + colHeight2);
        colHeight = colHeight2 + 208;
        // +208 die bovenin van colHeight 1 wordt afgetrokken
    } else {
        //alert(colHeight3);
        colHeight = colHeight3 + 175;
    }
    //alert(colHeight);
    document.getElementById("content").style.height = colHeight + "px";
    }
}

function printpage() {
  window.print();
}

window.onload = tmlcSameHeightForDivs;

function zoeken() {
  if(document.zoek.trefwoord.value.length == 0) {
    alert("Er is geen trefwoord opgegeven!");
    return false;
  } else {
    document.zoek.action = "./zoeken.asp?katern=1&i=1&cnt=15";
    document.zoek.method = "GET";
    return true;
  }
}

function doClock() {
  // By Paul Davis - www.kaosweaver.com;
  var t = new Date(), a = doClock.arguments, str = "", i, a1, lang = "1";
  var month = new Array(' Januari ','Jan', ' Februari ','Feb', ' Maart ','Mar', ' April ','Apr', ' Mei ','May', ' Juni ','Jun', ' Juli ','Jul', ' Augustus ','Aug', ' September ','Sep', ' Oktober ','Oct', ' November ',' Nov ', ' December ','Dec');
  var tday = new Array('Zondag ','Sun','Maandag ','Mon', 'Dinsdag ','Tue', 'Woensdag ','Wed','Donderdag ','Thr','Vrijdag ','Fri','Zaterdag ','Sat');
  for (i = 0; i < a.length; i++) {
    a1 = a[i].charAt(1);
    switch (a[i].charAt(0)) {
    case "M":
      if ((Number(a1) == 3) && ((t.getMonth() + 1) < 10)) {
        str += "0";
      }
      str += (Number(a1) > 1) ? t.getMonth() + 1 : month[t.getMonth() * 2 + Number(a1)];
      break;
    case "D":
      if ((Number(a1) == 1) && (t.getDate() < 10)) {
        str += "0";
      }
      str += t.getDate();
      break;
    case "Y":
      str += (a1 == "0") ? t.getFullYear() : t.getFullYear().toString().substring(2);
      break;
    case "W":
      str += tday[t.getDay() * 2 + Number(a1)];
      break;
      default:
      str += unescape(a[i]);
    }
  }
  return str;
}

function zoeken() {
  form = document.getElementById("zoek");
  if(form.trefwoord.value.length == 0) {
    alert("Er is geen trefwoord opgegeven!");
    return false;
  } else {
    form.action = "zoeken.asp";
    form.method = "GET";
    return true;
  }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.name = "openerWin";
  window.open(theURL,winName,features);
}

var windowReference;
