<!--
var vlag = 'wintertijd'; 
function Waarheen()
{
var the_date = new Date();
var d = the_date.getUTCDate();
var M = the_date.getUTCMonth() + 1;
    if (d>=31 && M==3) {vlag='zomertijd';}; 
    if (M>3 && M<11) {vlag='zomertijd';}; 
    if (d>=28 && M==10) {vlag='wintertijd';};
}


//Script auteur: Rinie Hooijer, HTML 4.0 in de praktijk ISBN 90-430-0002-7
//Script aangepast door de webmaster
function MakeArray(n) {
     this.length=n;
     for (var i=1;i<=n;i++) {
     this[i]=0;
  }
}

//De dagen van de week
days=new MakeArray(7);
days[0]="zaterdag";
days[1]="zondag";
days[2]="maandag";
days[3]="dinsdag";
days[4]="woensdag";
days[5]="donderdag";  
days[6]="vrijdag";

//Functie van de dagen van de week
function bereken(form) {
    var NNN1=parseInt(form.day.value, 10)
    if ((NNN1<0) || (NNN1>31)) {
    alert("Deze dag bestaat niet") //Deze regel kunt u aanpassen
  }

    var NNN2=parseInt(form.month.value, 10)
    if ((NNN2<0) || (NNN2>12)) {
    alert("Deze maand bestaat niet") //Deze regel kunt u aanpassen
  }
    var NNN2x=parseInt(form.month.value, 10)
    var NNN3=parseInt(form.year.value, 10)

// Om terug te gaan naar dagen voor 1900 verandert u dit getal.
    if (NNN3<1900) {
alert("Neem contact met mij op voor dagen voor 1900!") //Deze regel kunt u aanpassen
   }
    if (NNN2==1) {
    NNN2x=13;
    NNN3=NNN3-1
   }
    if (NNN2==2) {
    NNN2x=14;
    NNN3=NNN3-1
   }
    var NNN4=parseInt(((NNN2x+1)*3)/5, 10); 
    var NNN5=parseInt(NNN3/4, 10); 
    var NNN6=parseInt(NNN3/100, 10); 
    var NNN7=parseInt(NNN3/400, 10); 
    var NNN8=NNN1+(NNN2x*2)+NNN4+NNN3+NNN5-NNN6+NNN7+2;
    var NNN9=parseInt(NNN8/7, 10); 
    var NNN0=NNN8-(NNN9*7);
    form.birthday.value=days[NNN0]
    if (NNN3<=1900) {form.birthday.value=days[NNN0]='undefined'}; 
    }


   function announceTime(){
	//get the date, the hour, minutes, and seconds
   var the_date = new Date();
	var the_hour = the_date.getUTCHours();
    var the_minute  =  the_date.getUTCMinutes();
      if (the_minute < 10) { the_minute = "0" + the_minute;}
      var the_second = the_date.getSeconds(); 
      if (the_second < 10){ the_second = "0" + the_second;}
	//put together the string and alert with it
	var the_time = the_hour + " : " + the_minute + " : " + the_second;
	alert( "De wereldtijd is nu: " + the_time + ".");}


   //get the date, the hour, minutes, and seconds
   function announceTime2(){
   var the_date = new Date();
   var tz = the_date.getTimezoneOffset();
   tz = tz/60
   var the_hour = the_date.getUTCHours();
   var het_uur = the_date.getHours();
   var the_minute  =  the_date.getUTCMinutes();
   var the_second = the_date.getUTCSeconds(); 
   //put together the string and alert with it
	var the_time = the_hour + " : " + the_minute + " : " + the_second;
	var de_tijd =  het_uur + " : " + the_minute + " : " + the_second;
   var  tijdzone; 
   if (tz<0) {tijdzone = "<br> met tijdzone offset " + tz + " uur t.o.v. Greenwich."};
   if (tz>0) {tijdzone = "<br> met tijdzone offset " + tz + " uur t.o.v. Greenwich."};
   if (tz=0) {tijdzone = "<br> met tijdzone offset " + tz + " uur t.o.v. Greenwich."};
   document.writeln("De wereldtijd was zo juist: <font color='red'>" + the_hour + " uur en " + the_minute + " minuten" + "</font> en uw lokale tijd: ");
   document.writeln("<font color='red'>" + het_uur + " uur en " + the_minute + " minuten " + "</font>" + tijdzone);
   document.writeln("<br>Laad deze pagina zo nodig opnieuw voor de meest recente tijd.");} 

//Author: Michael Gudaitis
//e-mail: sparrow@erols.com
//You may use this script free of charge so long as
//this copyright information stays intact.
//copyright 1998
//
//Dit script werkt niet goed en is door de webmaster vervangen door het script van Rinie Hooijer. Zie boven!

function cala_day(form) {
        
        var nSwitch = 0
        var nMonth = parseInt(form.month.value)
        var nDay =  parseInt(form.day.value)
        var nYear =  parseInt(form.year.value)
        
        if(!(nYear % 4) && (nMonth > 2)) {
                nSwitch = 1
        }               

        var nDayOfWeek = cala_weekday(nMonth, nDay, nYear)
        
        if(nSwitch) {
                nDayOfWeek++
                nSwitch = 0
        }
        
        day_display(form, nDayOfWeek)
}

function cala_weekday( x_nMonth, x_nDay, x_nYear) {

        if(x_nMonth >= 3){      
                x_nMonth -= 2
        }
        else {
                x_nMonth += 10
        }

        if( (x_nMonth == 11) || (x_nMonth == 12) ){
                x_nYear--
        }

        var nCentNum = parseInt(x_nYear / 100)
        var nDYearNum = x_nYear % 100
        
        var nPart1 = parseInt(2.6 * x_nMonth - .2)
        
        var nZeller = (parseInt(nPart1 + x_nDay + nDYearNum + (nDYearNum / 4) + (nCentNum / 4) - 2 * nCentNum)) % 7
        
        if(nZeller < 0){
                nZeller += 7
        }
        
        return nZeller
}

function day_display(form, x_nDayOfWeek) {

        if(x_nDayOfWeek == 0) {
                form.birthday.value = "Zaterdag"
                return
        }
        if(x_nDayOfWeek == 1) {
                form.birthday.value = "Zondag"
                return
        }
        if(x_nDayOfWeek == 2) {
                form.birthday.value = "Maandag"
                return
        }
        if(x_nDayOfWeek == 3) {
                form.birthday.value = "Dinsdag"
                return
        }
        if(x_nDayOfWeek == 4) {
                form.birthday.value = "Woensdag"
                return
        }
        if(x_nDayOfWeek == 5) {
                form.birthday.value = "Donderdag"
                return
        }
        if(x_nDayOfWeek == 6) {
                form.birthday.value = "Vrijdag"
                return
        }

        form.birthday.value = "Geen geldige datum."
}
//-->




