/* Deze JavaScript is ontworpen door Andrew Tan ICT Solutions.
* Hierdoor berust de copyright ook bij Andrew Tan ICT Solutions:
* (C) Copyright 1999-2004 Andrew Tan ICT Solutions.
* E-mail voor vragen naar: javascripts@snelheidsinfo.nl
*/

var now = new Date();
var dow = now.getDay();
	
	function day()
	{

		if (dow == 0)         document.write ("Zondag")
		else if (dow == 1)    document.write ("Maandag")
		else if (dow == 2)    document.write ("Dinsdag")
		else if (dow == 3)    document.write ("Woensdag")
		else if (dow == 4)    document.write ("Donderdag")
		else if (dow == 5)    document.write ("Vrijdag")
		else                  document.write ("Zaterdag")
	}

var hoy= new Date();

	function date()
		{
		document.write(hoy.getDate());
		}
	function month()
		{
		x = hoy.getMonth();
		if (x==0) document.write("Januari")
			else if (x==1) document.write("Februari")
			else if (x==2) document.write("Maart")
			else if (x==3) document.write("April")
			else if (x==4) document.write("Mei")
			else if (x==5) document.write("Juni")
			else if (x==6) document.write("Juli")
			else if (x==7) document.write("Augustus")
			else if (x==8) document.write("September")
			else if (x==9) document.write("Oktober")
			else if (x==10) document.write("November")
			else document.write("December")
		}
	function year()
		{
		if (hoy.getYear() < 1000) document.write(hoy.getYear() + 1900)
		else document.write(hoy.getYear());
		}
	function hour()
		{
		if (hoy.getHours() > 12) document.write(hoy.getHours())
			else document.write(hoy.getHours());
		}
	function minute()
		{
		if (hoy.getMinutes() > 9) 
		{
		document.write(hoy.getMinutes())
		}
	else 
		{
		document.write("0");
		document.write(hoy.getMinutes());
		}
		}
	function ampm()
		{
		if (hoy.getHours() > 11) document.write("pm")
			else document.write("am");
		}
