function pop(filename)
{
menuWindow = window.open('/' + filename, filename, "resizable=yes,scrollbar=yes,top=0,left=0,width=360,height=360");
}

function checksub()
{
	var temp = getCookie('subbed');
	
	if ( temp != 'yes')
	{
		location.href = '/authorize.asp?ref=' + location.href;
		//location.href = '/notsubbed.html'
	}
}
	

// Heinle's function for retrieving a cookie.
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;
}
	
	