// Diese Funktionen müssen im Head-Teil notiert werden
// Es darf vorher keinerlei Ausgabe erfolgen
function Fenster_ueberwachen ()
{ // function

if (!window.Weite && window.innerWidth) 
 {
   window.onresize = neuAufbau;
   Weite = Fensterweite();
   Hoehe = Fensterhoehe();
   //document.getElementById('index_iframe').height = Hoehe+"px";
   AbzugHead = 110;
   AbzugFeet = 25;
   Korrektur = 30;
   HoeheInhalt = (Hoehe-(AbzugHead+AbzugFeet+Korrektur)); // -(HoeheBannerOben+HoeheFusszeile)-Browserkorrektur
   //document.getElementById('tab_inhalt').height = Hoehe;

 }

/* Überwachung von Internet Explorer initialisieren */
if (!window.Weite && document.body && document.body.clientWidth)
 {
   window.onresize = neuAufbau;
   Weite = Fensterweite();
   Hoehe = Fensterhoehe();
   //document.getElementById('index_iframe').height = Hoehe+"px";
   AbzugHead = 110;
   AbzugFeet = 25;
   Korrektur = 82;
   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

// Ende 1
//------------------------------------------------------------------------------------------
function neuAufbau () 
// Muss direkt nach <body> notiert werden 
{ // function
  if (Weite != Fensterweite() || Hoehe != Fensterhoehe())
    location.href = location.href;
} // function
//------------------------------------------------------------------------------------------

function fw2td(id_td1,design_td1,id_td2,design_td2)
  {
   document.getElementById(id_td1).className = design_td1;
   document.getElementById(id_td1).style.cursor = "pointer";
   document.getElementById(id_td2).className = design_td2;
   document.getElementById(id_td2).style.cursor = "pointer";
  }

function fw2td_out(id_td1,design_td1,id_td2,design_td2)
  {
   document.getElementById(id_td1).className = design_td1;
   document.getElementById(id_td1).style.cursor = "pointer";
   document.getElementById(id_td2).className = design_td2;
   document.getElementById(id_td2).style.cursor = "pointer";
  }


function farbwechsel(id,design)
  {
  document.getElementById(id).className = design;
  document.getElementById(id).style.cursor = "pointer";
  }

function farbwechsel_out(id,design,mm_Farbe)
  {
  document.getElementById(id).className = design;
  //document.getElementById('5XXXXX').className = mm_Farbe;
  }  
function jsLink_newWin(verweis)
  {
   window.open(verweis);
  }
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 jsLink_zweiZiele(verweis1, verweis2)
  {
  window.location.href = verweis1;
  if (verweis2 != '') window.location.href = verweis2;  
  }

