einddatum = new Date
einddatum.setMonth(einddatum.getMonth()+6)<!-- cookie verwijderen na 6 maanden -->
jteller = eval(cookie_waarde("bezoekteller"))
jteller++
document.cookie = "bezoekteller="+jteller+";expires=" + einddatum.toGMTString()

function cookie_waarde(cookie_naam) {
thisCookie = document.cookie.split("; ")
for (i=0; i<thisCookie.length; i++){
	if (cookie_naam == thisCookie[i].split("=")[0]){
		return thisCookie[i].split("=")[1]
	}
}
return 0
}

function paginateller(){
for (i=0;i<(5-jteller.toString().length);i++)
document.write('<span class="teller">0</span>')
for (y=0;y<(jteller.toString().length);y++)
document.write('<span class="teller">'+jteller.toString().charAt(y)+'</span>')
}

