function birthday(year,month,date,person) {

    this.year=year

    this.month=month

    this.date=date

    this.person=person

  }



  function birthdaylist() {

  }



  blist=new birthdaylist()

  blist[0]= new birthday(04,1,1,"Do. 1-1 Down Town, Gemert")

  blist[1]= new birthday(04,2,13,"Za. 13-2 Podiumcafe De Souffeur, Leerdam")

  blist[2]= new birthday(04,1,30,"Vr. 30-1 De Lichtboei, Harlingen")

  blist[3]= new birthday(04,1,23,"Vr. 23-1 Het Keerpunt, Spijkerboor")

  

  blist[5]= new birthday(04,2,20,"Za. 20-12 De Ster, Goor")
  blist[6]= new birthday(04,2,24,"Wo. 24-12 Cafe Belgie, Almelo, Toon & Teun unplugged")
   blist[7]= new birthday(04,2,21,"Z0. 21-12 De tijd, Neede")

  

  var now=new Date()

  today=new Date(now.getYear(),now.getMonth(),now.getDate())   // today 0:00:00

  function daysFromToday(sdate) {

    return Math.round((sdate.getTime()-today.getTime())/(24*60*60*1000))

  }



  function writeNextBirthday(list) {

    var daysToClosest=888

    var closest

    for (var i in list) {

      thisDate=new Date(today.getYear(),list[i].month,list[i].date)

      if (daysFromToday(thisDate)<0)

        thisDate.setYear(today.getYear()+1)

      if (daysFromToday(thisDate)<daysToClosest) {

        daysToClosest=daysFromToday(thisDate)

        closest=i

      }

    }

    if (daysToClosest==0)

      document.write(""+list[closest].person+""+(today.getYear()-list[closest].year)+"")

    else if (daysToClosest==1)

      document.write(""+list[closest].person+""+(today.getYear()-list[closest].year)+"")

    else

      document.write(""+list[closest].person+"")

  }
