function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=195,height=500,left = 542.5,top = 262');");
}

var clockid=new Array()
	var clockidoutside=new Array()
	var i_clock=-1
	var thistime= new Date()
	weekday = thistime.getDay()
	var day=thistime.getDate()
	var month=thistime.getMonth()
	var year = thistime.getFullYear()
	var hours=thistime.getHours()
	var minutes=thistime.getMinutes()
	var seconds=thistime.getSeconds()
	if (eval(hours) <10) {hours="0"+hours}
	if (eval(minutes) < 10) {minutes="0"+minutes}
	if (seconds < 10) {seconds="0"+seconds}
	var dayarray=new Array("Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag")
	var montharray=new Array("Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus", "September","Oktober","November","December")
	var thistime = dayarray[weekday]+" "+day+" "+montharray[month]+" "+year+" "+hours+":"+minutes+":"+seconds
	
	function writeclock() 
	{
		i_clock++
		if (document.all || document.getElementById || document.layers) {
			clockid[i_clock]="clock"+i_clock
			document.write("<span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span>")
		}
	}

	function clockon() 
	{
		thistime= new Date()
		weekday = thistime.getDay()
		day=thistime.getDate()
		month=thistime.getMonth()
		year = thistime.getFullYear()
		hours=thistime.getHours()
		minutes=thistime.getMinutes()
		seconds=thistime.getSeconds()
		if (eval(hours) <10) {hours="0"+hours}
		if (eval(minutes) < 10) {minutes="0"+minutes}
		if (seconds < 10) {seconds="0"+seconds}
		var dayarray=new Array("Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag")
		var montharray=new Array("Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus", "September","Oktober","November","December")

		thistime = dayarray[weekday]+" "+day+" "+montharray[month]+" "+year+" "+hours+":"+minutes+":"+seconds
		
		
			
		if (document.all) {
			for (i=0;i<=clockid.length-1;i++) {
				var thisclock=eval(clockid[i])
				thisclock.innerHTML=thistime
			}
	}
	
	if (document.getElementById)
	{
		for (i=0;i<=clockid.length-1;i++) 
		{
			document.getElementById(clockid[i]).innerHTML=thistime
		}
	}
		var timer=setTimeout("clockon()",1000)
	}
		window.onload=clockon
