<!--
/* Copyright http://www.perlscriptsjavascripts.com 
   Free and commercial Perl and JavaScripts     */
   
// page to go to if cookie exists
// noDays*24*60*60*1000)  changed to noDays*60*1000
go_to = "http://robots.epson.com/downloads/epsondownloadsrespond.htm";

// number of days cookie lives for
num_days = 180;
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");
// -->
