///////////////////////////////////////////////////////////
/////////////// CONFIGURATION /////////////////////////////
	// How often do you want the clock updated?
	// 0 = Never, 1 = Every Second, 2 = Every 5 sec
	// If you pick 0 or 2, the seconds will not be displayed
	var myupdate = 2;

	// Display the date?
	// 0 = No, 1 = Yes
	var DisplayDate = 1;

/////////////// END CONFIGURATION /////////////////////////
///////////////////////////////////////////////////////////

// The following arrays contain data which is used in the clock's
// date function. Feel free to change values for Days and Months
// if needed (if you wanted abbreviated names for example).
	var DaysOfWeek   = new Array("zo","ma","di","wo","do","vr","za");
	var MonthsOfYear = new Array("januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december");

// This array controls how often the clock is updated,
// based on your selection in the configuration.
	var ClockUpdate = new Array(0,1000,5000);

// The main part of the script:
	function show_clock() {
	
	// Get all our date variables:
		var Digital = new Date();
		var day = Digital.getDay();
		var mday = Digital.getDate();
		var month = Digital.getMonth();
		var hours = Digital.getHours();
		var year = Digital.getYear();
		var minutes = Digital.getMinutes();
		var seconds = Digital.getSeconds();

		if (year < 2000) {
		if (document.all)
			year = "19" + year;
		else
			year += 1900;
	}
		
	// Set up the hours for either 24 or 12 hour display:
		if (minutes <= 9) { minutes = "0"+minutes; }
		if (seconds <= 9) { seconds = "0"+seconds; }

	// This is the actual HTML of the clock. If you're going to play around
	// with this, be careful to keep all your quotations in tact.
		myclock = "";
		if (DisplayDate) { myclock += DaysOfWeek[day] + ' ' + mday + ' ' + MonthsOfYear[month] + ' ' + year + '</B><BR>'; }
		myclock += hours + ':' + minutes + "</FONT><BR>";
		if ((myupdate < 2) || (myupdate == 0)) { myclock += ':'+seconds; }

	// Write the clock to the layer:
	    LiveClockIE.innerHTML = myclock;

	if (myupdate != 0) { setTimeout("show_clock()",ClockUpdate[myupdate]); }
}

