
function wo_bin_ich()
{
alert("asd");
if (parent.frames.length == 0) //Gibt es eine Frameset?
  {
    Adresse = String(window.location);
	alert("asd2");
    Woerter = Adresse.split("/");
    alert("asd3");
	LastSegment=Woerter[Woerter.length-1];          
    alert("asd4");
	window.parent.location.href="index.htm"+"?"+Woerter[Woerter.length-1];
  }
}

function Frames ()
{
   alert("AAAA"+parent.frames.length);
   if (parent.frames.length == 0)
 
  // Wenn kein Frameset vorhanden, lade einfach index.htm (kann nie verkehrt sein, oder?)
  {
     alert("window.parent.location.href="+window.parent.location.href);
	 window.parent.location.href="index.htm";
  }
  else
  {
	//Adresse="";
	//LastSegment2="";
	if (window.top.location.search)                     // Gibt es ein ? in der URL? (Spezialanweisung in Jscript!)
    {
        LastSegment = window.top.location.search;           // ? in der URL? (Spezialanweisung in Jscript!)
        LastSegment = LastSegment.substring(1);             // nimm den 2. Teil, also alles nach dem ?


        if (LastSegment=="header.htm") LastSegment="intrtxt.htm";
        if (LastSegment=="display.htm") LastSegment="intrtxt.htm";
        if (LastSegment=="intrnav.htm") LastSegment="intrtxt.htm";
        if (LastSegment=="") LastSegment="intrtxt.htm";
        if (LastSegment=="index.htm") LastSegment="intrtxt.htm";
    }
    else
    {
        LastSegment="intrtxt.htm";
    } 
    
  }
  // Schreibe das Frameset, eventuell mit den slash'es
  this.document.write("    <frameset cols=\"220,*\" border=\"0\" frameborder=\"0\" framespacing=\"0\">");
  this.document.write("  <frameset rows=\"0,646*\" border=\"0\" frameborder=\"no\" framespacing=\"0\" cols=\"*\" scrolling=\"no\"> ");
  this.document.write("    <frame src=\code.htm\" name=\"source\" frameborder=\"0\" marginheight=\"0\" marginwitdth=\"0\">");
  this.document.write("      <frame src=\intrnav.htm\" name=\"_nav\" frameborder=\"0\" marginwidth=\"4\" marginheight=\"10\">");
  this.document.write("  </frameset>");
  this.document.write("<frame src=\"" + LastSegment + "\" name=\"_text\" marginwidth=\"10\" marginheight=\"10\">");
  this.document.write("</frameset>");
}

// wann wurde die Datei zuletzt geändert?
function time() {
    lastmod=new Date(document.lastModified);

    if (lastmod.getYear()<2000) year=lastmod.getYear()+1900; else year=lastmod.getYear();
    if (lastmod.getYear()<10) year=lastmod.getYear()+2000;
    if (lastmod.getMinutes()<10) min="0"+lastmod.getMinutes(); else min=lastmod.getMinutes();
    if (lastmod.getSeconds()<10) sec="0"+lastmod.getSeconds(); else sec=lastmod.getSeconds();

    document.write("Letzte Änderung: "+lastmod.getDate()+"."+(lastmod.getMonth()+1)+"."+year);
}