var Postseite = '/Post.htm'

function ZweiFrames(URL1, R1, URL2, R2)
{
  parent.frames[R1].location.href=URL1;
  parent.frames[R2].location.href=URL2;
}

function CheckFrameSet()
{
  if (!parent.Links || !parent.ROben)
  {
    location.href="/obstland_ag.htm?"+location.pathname;
  }
}

function CheckFrameCall()
{
  var QueryString=location.search;
  if (QueryString)
  {
    frames.Haupt.location.href = QueryString.substring(1, QueryString.length);
  }
}

function WechsleKontakt(Seite)
{
  var Ziel, Name, Endung, Pos, Rahmen, DateiName, Pfad;
  if (Seite != "")
  {
    DateiName = Seite;
    Pos = DateiName.lastIndexOf("/");
    if (Pos != -1)
    {
      Pfad = DateiName.substr(0,Pos+1);
      DateiName = DateiName.slice(Pos+1);
    }
    else
    {
      Pfad = "";
    }
    Pos = DateiName.indexOf(".htm");
    Endung = DateiName.slice(Pos+1);
    Name = DateiName.substr(0,Pos);
    Ziel = Pfad + "Kontakt_" + Name + "." + Endung;
    Rahmen = "Haupt";
  }
  else
  {
    Ziel = "#";
    Rahmen = "ROben";
  }
  parent.ROben.document.links[0].href = Ziel;
  parent.ROben.document.links[0].target = Rahmen;
}

function popup(BildName, Breite, Hoehe)
// Breite und Höhe beziehen sich aufs Bild
{
  window.open('Bild.htm?'+BildName, 'Fenster',
    'location=no,toolbar=no,menubar=no,status=no,width='+ (Breite+20) +',height=' + (Hoehe+80));
}

function fenster(Seite, Links, Oben, Breite, Hoehe)
// Breite und Höhe beziehen sich aufs Fenster
{
  var li, ob;
  if(navigator.appName == 'Netscape')
  {
    li = window.screenX;
    ob = window.screenY;
  }
  else
  {
    li = top.screenLeft;
    ob = top.screenTop;
  }
  li = li + Links;
  ob = ob + Oben;
  window.open(Seite, 'Fenster'+Links,
    "locationbar=no,menubar=no,status=no,dependent=yes,left="+li+",top="+ob+",width="+Breite+",height="+Hoehe);
}

