{
var url="http://www.theaterdocentenacteur.nl";
var title="Theaterdocent en acteur Teatske Heidstra";
}


d = new Date()
dateText = ""

// Get the current day and convert it to the name of the day
dayValue = d.getDay()
if (dayValue == 0)
    dateText += "Zondag"
else if (dayValue == 1)
    dateText += "Maandag"
else if (dayValue == 2)
    dateText += "Dinsdag"
else if (dayValue == 3)
    dateText += "Woensdag"
else if (dayValue == 4)
    dateText += "Donderdag"
else if (dayValue == 5)
    dateText += "Vrijdag"
else if (dayValue == 6)
    dateText += "Zaterdag"
	
if (d.getYear() < 2000) 
    dateText += d.getDate() + " "  +  ", " + (1900 + d.getYear())
else 
  dateText += " " + d.getDate() + " "    

// Get the current month and convert it to the name of the month
monthValue = d.getMonth()
dateText += " "
if (monthValue == 0)
    dateText += "Januari"
if (monthValue == 1)
    dateText += "Februari"
if (monthValue == 2)
    dateText += "Maart"
if (monthValue == 3)
    dateText += "April"
if (monthValue == 4)
    dateText += "Mei"
if (monthValue == 5)
    dateText += "Juni"
if (monthValue == 6)
    dateText += "Juli"
if (monthValue == 7)
    dateText += "Augustus"
if (monthValue == 8)
    dateText += "September"
if (monthValue == 9)
    dateText += "Oktober"
if (monthValue == 10)
    dateText += "November"
if (monthValue == 11)
    dateText += "December"

// Get the current year; if it's before 2000, add 1900
if (d.getYear() < 2000) 
    dateText += d.getDate() + " "  +  ", " + (1900 + d.getYear())
else 
    dateText += " "  + (d.getYear() )

// Get the current minutes
minuteValue = d.getMinutes()
if (minuteValue < 10)
    minuteValue = "0" + minuteValue

// Get the current hours
hourValue = d.getHours()

// Customize the greeting based on the current hours
if (hourValue < 12)
    {
    greeting = "Goede morgen, "
    timeText = " || " + hourValue + ":" + minuteValue + " AM"
    }
else if (hourValue == 12)
    {
    greeting = "Goede middag, "
    timeText = " || " + hourValue + ":" + minuteValue + " PM"
    }
else if (hourValue < 17)
    {
    greeting = "Een goede middag, "
    timeText = " || " + (hourValue-12) + ":" + minuteValue + " PM"
    }
else
    {
    greeting = "Goede avond, "
    timeText = " || " + (hourValue-12) + ":" + minuteValue + " PM"
    }
// Write the greeting, the date, and the time to the page