function storeSREDID() {
var thirtyDays = (60*60*1000*24)*30;
var vals = document.location.search;
start = vals.indexOf("SREDID=");
if (start != -1) {
var end = vals.indexOf("&", start);
if (end == -1){ end = vals.length }
var date = new Date();date.setTime(date.getTime()+ thirtyDays)...