<!-- business logic -->
<!-- requires cookielib.js (sets the days int var) -->

var now = new Date();
	// fix the bug in Navigator 2.0, Macintosh
	fixDate(now);
	now.setTime(now.getTime() + days * 24 * 60 * 60 * 1000);
	//To debug uncomment the line below
	//now.setTime(now.getTime() + 10 * 1000);
	var visits = getCookie("greshamweb");
	// if the cookie wasn't found, this is your first visit
	var cookie;
	if (!visits) {
	  visits = 1;
	  window.location="disclaimer.html?go="+location;
	} else {
    // increment the counter
  	visits = parseInt(visits) + 1;
	}
// set the new cookie
	//setCookie("greshamweb", visits, now);

<!-- end of business logic -->
