
function ShowStatusHint(Txt)
{
 window.status = Txt;
}

function ClearStatusLine()
{
 window.status = "";
}

function GetCookie(AName)
{
 var LSearch = AName + "=";
 var LCookie = document.cookie;
 
 if (LCookie.length > 0)
 {
  offset = LCookie.indexOf(LSearch);
  if (offset != -1)
  {
   offset += LSearch.length;
   end = LCookie.indexOf(";", offset);
   if (end == -1) end = LCookie.length;
   return unescape(LCookie.substring(offset, end));
  }
 }
 else return null;
}

function SetCookie(AName, AValue)
{
 var Ma = new Date();
 var Soka = new Date();
 
 Soka.setTime(Ma.getTime()+1000*60*60*24*365*3);
 document.cookie = AName + "=" + escape(AValue) + ";expires=" + Soka.toGMTString();
}

function StoreBornTime()
{
 var LCookie = document.BioApplet.GetBornValues();
 
 if ((LCookie != null) && (LCookie != "!")) 
 { 
  SetCookie("BornTime_For_Bio", LCookie);
 } 
}

function RetrieveBornTime()
{
 var LCookie = GetCookie("BornTime_For_Bio");

 if ((LCookie != null) && (LCookie != ""))
 {
  document.BioApplet.SetBornValues(LCookie);
  return 1;
 }
 else return 0;
}

function IsMyCookieExists()
{
 var LCookie = GetCookie("BornTime_For_Bio");

 if ((LCookie != null) && (LCookie != "")) return true;
 else return false;
}

function GetActualMessage()
{
// var LResult = "Boldog &uacute;j &eacute;vet k&iacute;v&aacute;nok !";
 var LResult = "Bioritmus";
 
 return LResult;
}

function BioOnShow()
{
 RetrieveBornTime();
// document.title = GetActualMessage();
 status = GetActualMessage();
}

function BioOnExit()
{
 StoreBornTime();
}

