function getCookie(name){
  var cname = name + "=";
  var dc = document.cookie;
  if (dc.length > 0) {
    begin = dc.indexOf(cname);
    if (begin != -1) {
      begin += cname.length;
      end = dc.indexOf(";", begin);
      if (end == -1) end = dc.length;
        return unescape(dc.substring(begin, end));
    }
  }
  return null;
}

function setCookie(name, value, expires, path, domain, secure) {
  document.cookie = name + "=" + escape(value) +
  ((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
  ((path == null) ? "" : "; path=" + path) +
  ((domain == null) ? "" : "; domain=" + domain) +
  ((secure == null) ? "" : "; secure");
}


function getName()
{
        var fn = getCookie('first_name');
        var expiration = new Date();
        expiration.setTime (expiration.getTime() + (1000 * 60 * 60 * 24 * 1));
        // This is a cookied person
        if (fn)
        {
            var tt=getCookie('tenpop');
            if (tt == "yuppa")
            {
            }
            else
            {
//		window.open('http://oas-central.realmedia.com/RealMedia/ads/Creatives/crain/CBO_INTERSTITIAL_LOCKDOWN/10thingspopup.html','tenthings',config='toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,height=50,width=50');
//                setCookie('tenpop', 'yuppa', expiration, '/', '.chicagobusiness.com');
            }
            return;
	}
}

