n.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if(pair[0] == variable){return pair[1];}
  }
  return(false);
}
function setCookie(cname, cvalue) {
  // delete old cookies
  document.cookie = cname + "=;max-age=0;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/e";

  document.cookie = cname + "=;max-age=0;expires=Thu, 01 Jan 1970 00:00:00 UTC;";
  document.cookie = cname + "=;max-age=0;expires=Thu, 01 Jan 1970 00:00:00 UTC;";

  va