var a = new Date();
a = new Date(a.getTime() +1000*60*60*24*365);
document.cookie = 'referer='+document.referrer+'; expires='+a.toGMTString()+';'; 
