// Stand: 22.10.2007
//
function ShowHeader(WebPath)
{
 document.writeln('    <table border="0" cellspacing="0" cellpadding="5" style="width:100%;">\n     <tr>');
 document.write('      <td style="text-align:left; width:100px;"><a href="http://www.hvz.baden-wuerttemberg.de"');
 document.write(' target="_top"><img \n       src="');
 document.writeln(WebPath+'\/logo_hvz_k4.gif" alt="Logo" title="Hochwasser-Vorhersage-Zentrale"><\/a><\/td>');
 document.write('      <td style="text-align:center"><span class="InfoBold">Hochwasser-Vorhersage-Zentrale Baden-W&uuml;rttemberg<br>');
 document.writeln('Landesanstalt f&uuml;r Umwelt, Messungen und Naturschutz<br>\n       Baden-W&uuml;rttemberg<\/span><\/td>');
 document.write('      <td style="text-align:right; width:100px;"><a href="http://www.lubw.baden-wuerttemberg.de" target="_top">');
 document.write('<img \n       src="'+WebPath+'\/logo_lubw.gif" alt="Logo" title="Landesanstalt ');
 document.writeln(' f&uuml;r Umwelt, Messungen und Naturschutz"><\/a><\/td>\n     <\/tr>\n    <\/table>\n    <hr>\n');
}
//
function ShowPic(PicName,PicTitle)
{
 var Pic,Title;
 if (document.all && navigator.appVersion.substring(22,23) == 4)
  Pic = document.all['BILD'];
 else
  Pic = document.getElementById('BILD');
 if (Pic)
 {
  Pic.src = PicName;
  Pic.title = PicTitle;
 }
 return false;
}
//
function PageInit(WebPath,Mode)
{
 var Papa=0;
 try
 {
  if (top.HVZWIN) Papa = 1;
 }
 catch (e) {}
 if (Papa == 1)
 {
  if (Mode == 0)
   top.HVZWIN.Off();
  else
   top.HVZWIN.On(Mode,window.location.href);
  document.writeln('   <div id="printHeader">');
 }
 ShowHeader(WebPath);
 if (Papa == 1)
 {
  document.writeln('   <\/div>');
  top.HVZWIN.SaveUrl(window.location.href);
 }
}
//
function GetCookie(Name)
{
 var Prefix = Name + "=";
 var CookieStartIndex = document.cookie.indexOf(Prefix);
 if (CookieStartIndex == -1) return null;
 var CookieEndIndex = document.cookie.indexOf(";",CookieStartIndex+Prefix.length);
 if (CookieEndIndex == -1) CookieEndIndex = document.cookie.length;
 var CookieText = document.cookie.substring(CookieStartIndex+Prefix.length,CookieEndIndex);
 return unescape(CookieText);
}
//
function SetCookie(Name,Value,LifeTime)
{
 if (Name && Value)
 {
  var MSec,GMT=new Date(),NewCookie;
  NewCookie = Name+"="+escape(Value);
  if (LifeTime && LifeTime != 0)
  {
   if (LifeTime < 0) LifeTime = 0;         // Cookie löschen
   MSec = GMT.getTime()+(LifeTime*60000);  // LifeTime in Minuten
   GMT.setTime(MSec);
   GMT = GMT.toGMTString();
   NewCookie = NewCookie+"; expires="+GMT;
  }
  document.cookie = NewCookie;
 }
}
//
function SaveUrl(Url)
{
 SetCookie('url',Url,0);
}
//
function PushUrl(Url)
{
 if (top.HVZNAV) top.HVZNAV.SaveUrl(Url);
}
//