// hallo
visitnd=1;
cook = document.cookie;
var VisitName;
function detectCookie()
{
place = cook.indexOf("visitor=",0);
if (place <= -1)
{
while (VisitName == "" || VisitName == null || VisitName == 'Je eigen naam is?')
{
VisitName = prompt('Vul hier de naam en het adres in, dat je op het eind certificaat wilt hebben: ','Gast');
}
}
else
{
end = cook.indexOf(";",place)
if (end <= -1)
{VisitName = cook.substring(place+8,cook.length);}
else
{VisitName = cook.substring(place+8,end);}
}
plac2 = cook.indexOf("nbvisit=",0);
if (plac2 <= -1)
{
visitnd = 1;
}
else
{
end2 = cook.indexOf(";",plac2)
if (end2 <= -1)
{visitnd = cook.substring(plac2+8,cook.length);}
else
{visitnd = cook.substring(plac2+8,end2);}
visitnd ++;
}CreateCookie();

}
dateExp = new Date(2020,11,11);
dateExp = dateExp.toGMTString();
function CreateCookie()
{
document.cookie = 'visitor=' + VisitName + '; expires=' + dateExp + ';';
document.cookie = 'nbvisit=' + visitnd + '; expires=' + dateExp + ';';
}
