function GetCookie(sName) {
  var aCookie = document.cookie.split("; ");
  for (var i=0; i < aCookie.length; i++) {
    var aCrumb = aCookie[i].split("=");
    if (sName == aCrumb[0]) return unescape(aCrumb[1]);
  }
  return null;
}
function SetCookie( sName, sValue, sDomain ) {
  if ( ! ( sValue && sValue.length > 1 ) ) sValue = 1;
  var str = sName + "=" + sValue + ";";
//  if ( sDomain && sDomain.length > 1 ) str = str + "domain: " + sDomain + ";";
  document.cookie =  str;
  return GetCookie(sName) == sValue?1:null;
}
function DeleteCookie(sName) {
  document.cookie = sName + "=; expires=Fri, 31 Dec 1999 23:59:59 GMT;";
  return 1;
}

function GetAndSet( sName, sDomain ) {
  if ( GetCookie( sName ) != 1 && SetCookie( sName, 1, sDomain ) ) {
	window.open('/stream-s-f-popup','popup','isRaised=yes,toolbar=no,scroolbars=no,resizeable=no,alwaysRaised=yes,width=400,height=300');
  }
  return null;
}


function GetAndSett( sName, sDomain ) {
  if ( GetCookie( sName ) != 1 && SetCookie( sName, 1, sDomain ) ) {
	window.open('/s-f-popup','popup','isRaised=yes,toolbar=no,scroolbars=no,resizeable=no,alwaysRaised=yes,width=400,height=300');
  }
  return null;
}
