var lastID = " "; //Globale Variable

  function popup(seite,dsatz)
  {
   	window.open(seite+"?datensatz="+dsatz, "xyz", "left=0,top=0, resizable=yes, scrollbars=yes, dependent=1");
  }


function farbwechsel(id,design)
  {
  document.getElementById(id).className = design;
  document.getElementById(id).style.cursor = "pointer";
  }
function show_info(id)
{ //function
   if (document.getElementById(id).style.display == 'none') 
    {
     document.getElementById(id).style.display = 'block';
    }
    else
    {
     document.getElementById(id).style.display = 'none';
    }
} //function

//===
function zeige_tophit(id,letztes)
  { // function
  		document.getElementById('div_start').style.display = 'none'
		  //document.getElementById(id).style.cursor = "pointer";
    if (document.getElementById(id).style.display == 'none') 
     { //if
      lastID = letztes; 
      document.getElementById(id).style.display = 'block';
      if (lastID != " " && lastID != id)
	        { //if2
		         document.getElementById(lastID).style.display = 'none';
		       }
	     lastID = id;
     }
     else // Falls geöffntet, wird geschlossen
     {
      document.getElementById(id).style.display = 'none';
     } 
  }  // function

//===

function Aufklappen(id,letztes,anker)
  { // function
    if (document.getElementById(id).style.display == 'none') 
     { //if1
      lastID = letztes; 
						//location.href = "#home";
						//location.href = "#"+anker;
      document.getElementById(id).style.display = 'block';
      if (lastID != " " && lastID != id)
	        { //if2
		         document.getElementById(lastID).style.display = 'none';
		       }
	     lastID = id;
     }
     else // Falls geöffntet, wird geschlossen
     {
      document.getElementById(id).style.display = 'none';
     } 
  }  // function
		
function anzeigen_div_iFrame(anzeigescript)
 {
        document.getElementById("DIVallg").style.height = Hoehe-100;
								links = (Weite/2)-350;
        document.getElementById("DIVallg").style.left = links;
        document.getElementById("iFrameallg").style.height = Hoehe-175;
        document.getElementById("DIVallg").style.visibility = 'visible';
        document.getElementById("iFrameallg").src = anzeigescript;
 }

function schliessen_div_iFrame()
 {
        top.document.getElementById("iFrameallg").src = "";
        top.document.getElementById("DIVallg").style.visibility = 'hidden';
 }

function jsLink_einZiel(verweis)
  {
  verweis_url = verweis; //+"?para="+para;
//  top.location.href = verweis_url;
  self.location.href = verweis_url;
  }

function jsLink_einZiel_parent(verweis)
  {
  verweis_url = verweis; //+"?para="+para;
//  top.location.href = verweis_url;
  parent.location.href = verweis_url;
  }

function Fenster_ueberwachen ()
{ // function
/* Überwachung von "Netscape & Co" initialisieren */
if (!window.Weite && window.innerWidth) 
 {
   window.onresize = neuAufbau;
   Weite = Fensterweite();
   Hoehe = Fensterhoehe();
   AbzugHead = 30;
   AbzugFeet = 30;
   Korrektur = 0;
   HoeheInhalt = (Hoehe-(AbzugHead+AbzugFeet+Korrektur)); //- (HoeheBannerOben+HoeheFusszeile)-Browserkorrektur

 }

/* Überwachung von Internet Explorer initialisieren */
if (!window.Weite && document.body && document.body.clientWidth)
 {
   window.onresize = neuAufbau;
   Weite = Fensterweite();
   Hoehe = Fensterhoehe();
   AbzugHead = 30;
   AbzugFeet = 30;
   Korrektur = 4;
   HoeheInhalt = (Hoehe-(AbzugHead+AbzugFeet+Korrektur)); //- (HoeheBannerOben+HoeheFusszeile)-Browserkorrektur
 }
} // function

function Fensterweite () 
{ //function
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.body.clientWidth) {
    return document.body.clientWidth;
  } else {
    return 0;
  }
} // function

function Fensterhoehe () 
{ //function
  if (window.innerHeight) 
     {
       return window.innerHeight;
     } else if (document.body && document.body.clientHeight) {
    return document.body.clientHeight;
  } else {
    return 0;
  }
} // function
//------------------------------------------------------------------------------------------
function neuAufbau () 
// Muss direkt nach <body> notiert werden 
{ // function
  if (Weite != Fensterweite() || Hoehe != Fensterhoehe())
    location.href = location.href;
} // function


