var now=new Date(); var age=(new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59)-now.getTime())/1000; d.cookie="rat=true; path=/; max-age="+age;