<script>
<!--
/* Copyright
http://www.perlscriptsjavascripts.com
Free and commercial Perl and JavaScripts */
// page to go to if cookie exists
go_to = "http://www.perlscriptsjavascripts.com";
// number of days cookie lives for
num_days = 60;
function ged(noDays){
var today = new Date();
var expr = new Date(today.getTime() + noDays*24*60*60*1000);
return expr.toGMTString();
}
function readCookie(cookieName){
var start = document.cookie.indexOf(cookieName);
if (start == -1){
document.cookie = "seenit=yes; expires=" + ged(num_days);
} else {
window.location = go_to;
}
}
readCookie("seenit");
// -->
</script>