function calctime()
{

var currenttime = new Date();

var nday=currenttime.getDay();
var nmonth=currenttime.getMonth();
var ntoday=currenttime.getDate();
var nyear=currenttime.getYear();

var hours = currenttime.getHours();
var minutes = currenttime.getMinutes();
var seconds = currenttime.getSeconds();
var timesuffix = "AM";

if (nday==0)
  nday="zo";
if (nday==1)
  nday="ma";
if (nday==2)
  nday="di";
if (nday==3)
  nday="wo";
if (nday==4)
  nday="do";
if (nday==5)
  nday="vri";
if (nday==6)
  nday="za";

if (nmonth==0)
  nmonth="jan";
  if (nmonth==1)
  nmonth="feb";
  if (nmonth==2)
  nmonth="mrt";
  if (nmonth==3)
  nmonth="apr";
  if (nmonth==4)
  nmonth="mei";
  if (nmonth==5)
  nmonth="juni";
  if (nmonth==6)
  nmonth="juli";
  if (nmonth==7)
  nmonth="aug";
  if (nmonth==8)
  nmonth="sep";
  if (nmonth==9)
  nmonth="okt";
  if (nmonth==10)
  nmonth="nov";
  if (nmonth==11)
  nmonth="dec";  
  if (nyear<=99)
  nyear= "19"+nyear;

if ((nyear>99) && (nyear<2000))
 nyear+=1900;
 
if (hours == 0)
{
hours = 12;
}
if (minutes < 10)
{
minutes = "0" + minutes;
}
if (seconds < 10)
{
seconds = "0" + seconds;
}
var clocklocation = document.getElementById('digitalclock');
clocklocation.innerHTML = nday+", "+ntoday + " " + nmonth + " [" + hours + ":" + minutes +"]";
setTimeout("calctime()", 1000);
}
calctime();
