
function initArray() {
  this.length = initArray.arguments.length;
  for (var i = 0; i < this.length; i++)
  this[i+1] = initArray.arguments[i]
 }

function DatumWeergave(datum) {
  var weekdag = datum.getDay() + 1;
  var dag = datum.getDate();
  var maand = datum.getMonth() + 1;
  var jaar = datum.getYear();
  var dagArray = new initArray("zondag","maandag", "dinsdag","woensdag","donderdag","vrijdag","zaterdag");
  var maandArray = new initArray("januari","februari","maart","april","mei","juni","juli", "augustus","september","oktober","november","december");

  if (jaar < 70) {
   var jaar4 = (jaar + 2000);
  }
  else {
    var jaar4 = ((jaar < 1900) ? (jaar + 1900) : (jaar));
  }
  var datumwaarde = dagArray[weekdag] + " " + dag + " " + maandArray[maand] + " " + jaar4;
  return datumwaarde;
}

function Vandaag() {
  var nu = new Date();

  if (nu.getHours() >= 18)
    var welkom = ("Goedenavond, ");
  else if (nu.getHours() >= 12)
    var welkom = ("Goedemiddag, ");
  else if (nu.getHours() >= 6)
    var welkom = ("Goedemorgen, ");
  else
  var welkom = ("Goedenacht, ");
  var bericht = welkom + "het is vandaag " + DatumWeergave(nu) + ".";
  document.write(bericht);
}

<!--
var string='';
function ZoekInPage() {
  if (string == '') {
    string = window.prompt( 'Toets de te zoeken tekst in.',string)
  }
  if (string != '' && string != null) {
    findInPage(string);
  }
  else {
    string = '';
  }
}

var NS4 = (document.layers); // Which browser?
var IE4 = (document.all);
var win = window; // window to search.
var n = 0;
function findInPage(str) {
var txt, i, found;
if (str == "")
return false;
// Find next occurance of the given string on the page, wrap around to the
// start of the page if necessary.
if (NS4) {
// Look for match starting at the current point. If not found, rewind
// back to the first match.
if (!win.find(str))
while(win.find(str, false, true))
n++;
else
n++;
// If not found in either direction, give message.
if (n == 0)
alert("Not found.");
}
if (IE4) {
txt = win.document.body.createTextRange();
// Find the nth match from the top of the page.
for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
txt.moveStart("character", 1);
txt.moveEnd("textedit");
}
// If found, mark it and scroll it into view.
if (found) {
txt.moveStart("character", -1);
txt.findText(str);
txt.select();
txt.scrollIntoView();
n++;
}
// Otherwise, start over at the top of the page and find first match.
else {
if (n > 0) {
n = 0;
findInPage(str);
}
// Not found anywhere, give message.
else
alert("Niet gevonden.");
string='';
}
}
return false;
}



var isie=0;
if(window.navigator.appName=="Microsoft Internet Explorer"&&window.navigator.appVersion.substring(window.navigator.appVersion.indexOf("MSIE")+5,window.navigator.appVersion.indexOf("MSIE")+8)>=5.5)
  {
  isie=1;
  }
else
  {
isie=0;
  }
if(isie)
  {
  var html="";
  html+='<table oncontextmenu="return false" style="border:1pt solid #404040" bgcolor="#E6E6EE" width="160" height="120" cellpadding="0" cellspacing="1">';
  html+='<st'+'yle type="text/css" >\n';
  html+='a:link {text-decoration:none;font-family:Arial;font-size:8pt;}\n';
  html+='a:visited {text-decoration:none;font-family:Arial;font-size:8pt;}\n';
  html+='td {font-family:Arial;font-size:8pt;cursor:hand;}\n';
  html+='<\/style>\n';
  html+='<sc'+'ript type="txt/javascript">\n';
  html+='\n<'+'!--\n';
  html+='window.onerror=null;\n';
  html+='/'+' -'+'->\n';
  html+='<\/script>\n';
//window.location.reload()
// window.parent.location.href=window.parent.location.href;  
  html+='<tr><td style="border:1pt solid #E6E9EE cursor:hand" id="i0" onmouseover="document.all.i0.style.background=\'#CFD6E8\';document.all.i0.style.border=\'1pt solid #737B92\';" onmouseout="document.all.i0.style.background=\'#E6E9EE\';document.all.i0.style.border=\'1pt solid #E6E9EE\';" onclick="window.parent.ZoekInPage();"> <img src="menuzoom.gif" width="12" height="12" border="0" hspace="0" vspace="0" align="absmiddle"> Zoek in dit frame<\/td><\/tr>';
  html+='<tr><td style="border:1pt solid #E6E9EE cursor:hand" id="i7" onmouseover="document.all.i7.style.background=\'#CFD6E8\';document.all.i7.style.border=\'1pt solid #737B92\';" onmouseout="document.all.i7.style.background=\'#E6E9EE\';document.all.i7.style.border=\'1pt solid #E6E9EE\';" onclick="window.parent.location.reload();"> <img src="menurefresh.gif" width="12" height="12" border="0" hspace="0" vspace="0" align="absmiddle"> Frame Verversen<\/td><\/tr>';
  html+='<tr><td style="border:1pt solid #E6E9EE cursor:hand" id="i8" onmouseover="document.all.i8.style.background=\'#CFD6E8\';document.all.i8.style.border=\'1pt solid #737B92\';" onmouseout="document.all.i8.style.background=\'#E6E9EE\';document.all.i8.style.border=\'1pt solid #E6E9EE\';" onclick="if(window.parent.document.body.style.zoom!=0) window.parent.document.body.style.zoom*=1.6; else window.parent.document.body.style.zoom=1.6;"> <img src="menuzoom.gif" width="12" height="12" border="0" hspace="0" vspace="0" align="absmiddle"> Zoom Frame In<\/td><\/tr>';
  html+='<tr><td style="border:1pt solid #E6E9EE cursor:hand" id="i9" onmouseover="document.all.i9.style.background=\'#CFD6E8\';document.all.i9.style.border=\'1pt solid #737B92\';" onmouseout="document.all.i9.style.background=\'#E6E9EE\';document.all.i9.style.border=\'1pt solid #E6E9EE\';" onclick="if(window.parent.document.body.style.zoom!=0) window.parent.document.body.style.zoom*=0.625; else window.parent.document.body.style.zoom=0.625;"> <img src="menuzoom.gif" width="12" height="12" border="0" hspace="0" vspace="0" align="absmiddle"> Zoom Frame Out<\/td><\/tr>';
  html+='<tr><td style="border:1pt solid #E6E9EE cursor:hand" id="i6" onmouseover="document.all.i6.style.background=\'#CFD6E8\';document.all.i6.style.border=\'1pt solid #737B92\';" onmouseout="document.all.i6.style.background=\'#E6E9EE\';document.all.i6.style.border=\'1pt solid #E6E9EE\';" onclick="window.parent.print();"> <img src="menuprint.gif" width="12" height="12" border="0" hspace="0" vspace="0" align="absmiddle"> Frame afdrukken<\/td><\/tr>';
  html+='<tr><td style="border:1pt solid #E6E9EE cursor:hand" id="i4" onmouseover="document.all.i4.style.background=\'#CFD6E8\';document.all.i4.style.border=\'1pt solid #737B92\';" onmouseout="document.all.i4.style.background=\'#E6E9EE\';document.all.i4.style.border=\'1pt solid #E6E9EE\';" onclick="window.parent.external.AddFavorite(window.top.location.href,window.top.document.title);"> <img src="menufavorite.gif" width="12" height="12" border="0" hspace="0" vspace="0" align="absmiddle"> Toevoegen aan Favorieten<\/td><\/tr>';
  
  html+='<\/table>';
  var oPopup = window.createPopup();
  }

function dopopup(x,y) {
	if(isie) {
 		var strElement='';
		strElement = document.activeElement.name;
		if (strElement != 'pagetext' ) {
			var oPopupBody = oPopup.document.body;
			oPopupBody.innerHTML = html;
			oPopup.show(x, y, 160, 120, document.body);
		}
		else {
			document.activeElement.oncontextmenu = true ;
		}
	}
}

function click(e) {
	if(isie) {
		if(document.all) {
			if(event.button==2||event.button==3) {
				dopopup(event.x-1,event.y-1);
      }
    }
  }
}

if(isie) {
	document.oncontextmenu = function() {
	dopopup(event.x,event.y);return false;
  }
  document.onmousedown = click;
}


