   var w_LM = 900; // width_LayerBanner für Positionierung Hintergrundbild
   var w_LL = 0;   // width_LayerLeft
   //var w_LR = 0;   // width_LayerRight
   //var p_LR = 0;   // pos_LayerRight
   var ca_Width = 900; // Breite center_all DIV, die alles zentriert
   var LOvrlp  = 50; // Overlap zum Verstecken des Scrolltextes bei Webdes
   var ProgDif = 0;  // Leichte Verschiebung nach links aus optischen Gründen bei Programmierung
   var Show = "visible";
   var Hide = "hidden";
   var menuon = false; //für Menus

var FString = ' '; // check Formulare
var FMail;         // Window für Mail

var merkQW = 0;
var merkQH = 0;
var merkHW = 0;
var merkHH = 0;

var FQ;
var FH;
var F1;

var alt_y = 0;
//alert("alt_y= " + alt_y);
var BrowserName    = ' ';
var BrowserVersion = ' ';
var MSIE = false;
var voidImg    = 5;
var voidFImg   = 8;


var DHTML = 0, DOM = 0, MS = 0, NS = 0, OP = 0;
DHTML_init();

/*************************************************************************/
function DHTML_init() {

 //alert("DHTML_init");
 
 if (window.opera) {
     OP = 1;
 }
 if(document.getElementById) {
   DHTML = 1;
   DOM = 1;
 }
 if(document.all && !OP) {
   DHTML = 1;
   MS = 1;
 }
if(document.layers && !OP) {
   DHTML = 1;
   NS = 1;
 }

//alert("OP= "+ OP + " DHTML= " + DHTML + " DOM= " + DOM + " MS= " + MS);
}



/*************************************************************************/
function Fensterweite()
{
 if (window.innerWidth) return window.innerWidth;
 else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
 else return 0;
}

/*************************************************************************/
function Fensterhoehe()
{
 if (window.innerHeight) return window.innerWidth;
 else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
 else return 0;
}

/*************************************************************************/
function BrowserAbfrage()
{
    
   BrowserTyp = navigator.userAgent;
   BrowserVersion = navigator.appVersion;
   
   //alert("BrowserVersion= " + BrowserVersion);
   //alert("BrowserTyp= " + BrowserTyp);
   
   if(BrowserTyp.search('MSIE') > -1)
   {
      //alert("Internet Explorer!");
      BrowserName = 'Internet Explorer';
      Pfeil_Headline = 1;
      MSIE = true;
   }
   else
      if(BrowserTyp.search('Opera') > -1)
      {
         //alert("Opera!");
         BrowserName = 'Opera';
         Pfeil_Headline = 1;
      }
      else
         if(BrowserTyp.search('Lynx') > -1)
         {
            //alert("Lynx!");
            BrowserName = 'Lynx';
            Pfeil_Headline = 0;
         }
         else
            if(BrowserTyp.search('Gecko') > -1)
            {
               //alert("Mozilla!");
               BrowserName = 'Mozilla';
               Pfeil_Headline = 1;
            }
            else
               {
                  if (BrowserTyp.substr(0,7) == 'Mozilla')
                  {
                     //alert("Netscape!");
                  
                     BrowserName = 'Netscape';
                  
                     if (BrowserTyp.substr(0,11) < 'Mozilla/5.0')
                     {
                        Pfeil_Headline = 0;
                     }
                     // mal hoffen, dass neuere Netscapes scrollen koennen...
                     else
                     {
                        Pfeil_Headline = 1;
                     }
                  }
                  else
                  {
                     BrowserName = 'Netscape';
                     Pfeil_Headline = 0;
                  }
               }
      
   return;

// Browserabfrage 
   var bV=parseInt(navigator.appVersion);
   var NS4=(document.layers) ? true : false;
   var IE4=((document.all)&&(bV>=4))?true:false;

// Laden der Stylesheets 
/*   if (NS4) 
   {
      document.write ("<link rel=STYLESHEET type=text/css href=/style/style_ns2.css>");
   }
   else 
   {
      document.write ("<link rel=STYLESHEET type=text/css href=/style/style_ie2.css>");
   }
*/
}
/*************************************************************************/

function mouseoutMenuPunkte(MenuLayer) {

	//alert("mouseoutMenuPunkte: MenuLayer= " + MenuLayer);

   if (menuon)
   {
      if ((g = FndObj(MenuLayer)) !=null)
      {
         //alert("g= " + g);
         d  = (document.layers) ? g:g.style;
         d.visibility = Hide;
         //alert(MenuLayer + " ist hidden");
      }
      else
      {
         //alert(MenuLayer + " nicht gefunden ");
      }
   }
   
   menuon = false;
	/*
	if ((navigator.appName == "Microsoft Internet Explorer") && (getExplorerVersion() < 4.5))
		return true;
	hideMenu(false, false);
	*/
	return true;
}


/*************************************************************************/

function mouseonMenuPunkte(MenuLayer) {

//alert("mouseonMenuPunkte: MenuLayer= " + MenuLayer + " menuon= " + menuon);

   if (!menuon)
   {
      if ((g = FndObj(MenuLayer)) !=null)
      {
         //alert("g= " + g);
         d  = (document.layers) ? g:g.style;
         d.visibility = Show;
         //alert(MenuLayer + " ist hidden");
      }
      else
      {
         //alert(MenuLayer + " nicht gefunden ");
      }
   
      menuon = true;
   }
	/*
	if ((navigator.appName == "Microsoft Internet Explorer") && (getExplorerVersion() < 4.5))
		return true;
	hideMenu(false, false);
	*/
	return true;
}

/*************************************************************************/

function BildOeffnen(Bild,W,H)
{
	//alert("FQ= " + FQ + " FH= " + FH);
	FensterOeffnen = true;
	
	W = W + 20;
	H = H + 20;

	if(W > H)
	{
		if (!FQ || FQ.closed == true)
		{
			//alert("undef. od. geschl.: FQ= " + FQ);
			FQX = 60;
			FQY = 30;
		}
		else
		{
			//alert("offen: FQ= " + FQ);
			if (FQ.screenX)
			{
			   FQX = FQ.screenX;
			}
			else
			{
			   FQX = 60;
			}
			
			if (FQ.screenY)
			{
			   FQY = FQ.screenY;
			}
			else
			{
			   FQY = 30;
			}			
	
			if (merkQW != W
			||  merkQH != H)
			{
				FQ.close();

				merkQW = W;
				merkQH = H;
			}
			else
			{
				FensterOeffnen = false;
			}
		}
		
		if (FensterOeffnen)
		{
			//alert("Querfenster ist geschlossen! FQX = " + FQX + " FQY = " + FQY);
			FQ = window.open(Bild,"QuerFenster","resizable=yes,width=" + W + ",height=" + H + ",screenX=" + FQX + ",screenY=" + FQY );
			//alert("FQ= " + FQ);

			if (!FQ)
	 	   	{
	    			//alert("Pop up windows are suppressed on your computer!");
				return;
			}
		}
		else
		{
			//alert("Querfenster ist offen! FQX = " + FQX + " FQY = " + FQY);
			FQ.document.images[0].src = Bild;
		}
		FQ.focus();
	}
	
    	else
	{
		if (!FH || FH.closed == true)
		{
			FHX = 60;
			FHY = 30;
		}
		else
		{
			if (FH.screenX)
			{
			   FHX = FH.screenX;
			}
			else
			{
			   FHX = 60;
			}
			
			if (FH.screenY)
			{
			   FHY = FH.screenY;
			}
			else
			{
			   FHY = 30;
			}			
	
			if (merkHW != W
			||  merkHH != H)
			{
				merkHW = W;
				merkHH = H;
				
				FH.close();
			}
			else
			{
				FensterOeffnen = false;
			}
		}
		
		if (FensterOeffnen)
		{
			//alert("Hochfenster ist geschlossen! FHX = " + FHX + " FHY = " + FHY);
			FH = window.open(Bild,"HochFenster","resizable=yes,width=" + W + ",height=" + H + ",screenX=" + FHX + ",screenY=" + FHY );
		

			if (!FH)
	 	   	{
	    			//alert("Pop up windows are suppressed on your computer!");
				return;
			}
		}
		else
		{
			//alert("Hochfenster ist offen! FHX = " + FHX + " FHY = " + FHY);
			FH.document.images[0].src = Bild;
		}
		
		FH.focus();
	}
   }

/*************************************************************************/

function Fehlermeld(fmeldung)
{
   if (FString.length > 1)
   {
      FString = FString + '\n' + fmeldung;
   }
   else
   {
      FString = fmeldung;
   }
   
   //alert(FString);
}

/*************************************************************************/

function checkForm() 
{
    var keineAnrede = true;
    var Fehler = false;
    FString = '';

    fmeld = new Array(4);
    fmeld[0] = new Array(8); // deutsch
    fmeld[1] = new Array(8); // english
    fmeld[2] = new Array(8); // francais
    fmeld[3] = new Array(8); // espanol
    
    fmeld[0][0] = "Bitte geben Sie Ihren Namen ein";
    fmeld[1][0] = "Please enter your name";
    fmeld[2][0] = "Veuillez entrer votre nom s.v.p.";
    fmeld[3][0] = "Introduzca su nombre por favor";
    
    fmeld[0][1] = "Bitte geben Sie eine E-Mail Adresse ein";
    fmeld[1][1] = "Please enter your email address";
    fmeld[2][1] = "Veuillez entrer votre courriel s.v.p.";
    fmeld[3][1] = "Introduzca su dirección de correo electronico por favor";
    
    fmeld[0][2] = "Bitte geben Sie eine gültige E-Mail Adresse ein";
    fmeld[1][2] = "Please enter a valid email address";
    fmeld[2][2] = "Entrez un courriel valable s.v.p.";
    fmeld[3][2] = "Introduzca una dirección de correo electronico válida por favor";
    
    fmeld[0][3] = "Bitte geben Sie eine gültige Telefonnummer ein";
    fmeld[1][3] = "Please enter a valid telephone number";
    fmeld[2][3] = "Entrez un numéro de téléphone valable s.v.p.";
    fmeld[3][3] = "Introduzca un número de teléfono válido por favor";
    
    fmeld[0][4] = "Bitte geben Sie eine Nachricht ein";
    fmeld[1][4] = "Please enter a message";
    fmeld[2][4] = "Veuillez entrer votre message s.v.p.";
    fmeld[3][4] = "Introduzca su mensaje por favor";
    
    fmeld[0][5] = "Bitte wählen Sie eine Anrede aus";
    fmeld[1][5] = "Please choose a title";
    fmeld[2][5] = "Veuillez choisir un titre s.v.p.";
    fmeld[3][5] = "Seleccione un tratamiento por favor";
    
    fmeld[0][6] = "Bitte geben Sie den Anti-Spam Code ein";
    fmeld[1][6] = "Please enter anti spam code";
    fmeld[2][6] = "Veuillez entrer le code anti-spam";
    fmeld[3][6] = "Introduzca el código por favor";

    
    UrlString = window.location.href;
    //alert("UrlString= " + UrlString);
    if(UrlString.search('deutsch') > -1)
    {
       langind = 0;
    }
    else
    if(UrlString.search('english') > -1)
    {
       langind = 1;
    }
    else
    if(UrlString.search('francais') > -1)
    {
       langind = 2;
    }
    else
    if(UrlString.search('espanol') > -1)
    {
       langind = 3;
    }
    else
    {
       alert("checkForm: Falsches Verzeichnis! " + UrlString);
       return false;
    }
    //alert("langind= " + langind + " UrlString= " + UrlString);

    if(document.emailForm.Anrede[0].checked == true
    || document.emailForm.Anrede[1].checked == true
    || document.emailForm.Anrede[2].checked == true)
    {
    }
    else
    {
       Fehlermeld(fmeld[langind][5]);
       if (!Fehler)
       {
          document.emailForm.Anrede[0].focus();
          Fehler = true;
       }
    }

    if(document.emailForm.NameVName.value.length < 3)
    {
       Fehlermeld(fmeld[langind][0]);
       if (!Fehler)
       {
          document.emailForm.NameVName.focus();
          Fehler = true;
       }
    }

    if(document.emailForm.Email.value.length < 9)
    {
       if(document.emailForm.Email.value == "")
       {
          Fehlermeld(fmeld[langind][1]);
          if (!Fehler)
          {
             document.emailForm.Email.focus();
             Fehler = true;
          }
       }
       else
       {
          Fehlermeld(fmeld[langind][2]);
          if (!Fehler)
          {
             document.emailForm.Email.focus();
             Fehler = true;
          }
       }

    }
    else
    {
       addr = document.emailForm.Email.value;

       // Split on at and dot sign
       bits  = addr.split("@");
       bits2 = addr.split(".");

       // Check if length is less than 2
       if (bits.length < 2 || bits2.length < 2) 
       {
          Fehlermeld(fmeld[langind][2]);
          if (!Fehler)
          {
	     document.emailForm.Email.focus();
	     Fehler = true;
          }
       } 
    }
    
    //alert("document.emailForm.Telefon.value= " + document.emailForm.Telefon.value);
    
    if(document.emailForm.Telefon.value != "")
    {
    	var testnum = '';
    	
    	for (i = 0; i < document.emailForm.Telefon.value.length; i++)
    	{
    	   if (document.emailForm.Telefon.value.substr(i,1) == ' '
    	   ||  document.emailForm.Telefon.value.substr(i,1) == '-'
    	   ||  document.emailForm.Telefon.value.substr(i,1) == '+'
    	   ||  document.emailForm.Telefon.value.substr(i,1) == '/')
    	   {
    	   }
    	   else
    	   {
    	      testnum = testnum+document.emailForm.Telefon.value.substr(i,1)
    	      //alert("testnum= " + testnum + " i= " + i);
    	   }
    	}
    	//alert ("document.emailForm.Telefon.value= " + document.emailForm.Telefon.value
    	//+     " testnum= " + testnum);
    	
    	
    	if (isNaN(testnum) == true)
    	{
          Fehlermeld(fmeld[langind][3]);
          if (!Fehler)
          {
             document.emailForm.Telefon.focus();
             Fehler = true;
          }
    	}
    }
    
    if (document.emailForm.Mailtext.value == "")
    {
          Fehlermeld(fmeld[langind][4]);
          if (!Fehler)
          {
	     document.emailForm.Mailtext.focus();
	     Fehler = true;
          }
    }
    
    if (document.emailForm.PruefCode.value == "")
    {
          Fehlermeld(fmeld[langind][6]);
          if (!Fehler)
          {
	     document.emailForm.PruefCode.focus();
	     Fehler = true;
          }
    }

    /* Persönliche Daten prüfen Ende **************************************************/
    
    if (Fehler)
    {
       alert(FString);
       return false;
    }
    else
    {
       
       //momentan disabled, da Website noch bei Strato gehostet wird...
       //FMail = window.open("","MailWindow","resizable=no,width=460,height=500,screenX=0,screenY=0,status=no,scrollbars=no");	
       //FMail.focus();
       
       return true;
    }

}

/*************************************************************************/

function OeffnenPublicKey()
{

	if (!F1 || F1.closed == true)
	{
		F1X = screen.availWidth - 750;
		F1Y = 130;
		Hoehe = screen.availHeight - this.F1Y;
		
		if (Hoehe > 600)
		{
		   Hoehe = 600;
		}
	   	//alert("GalerieFenster ist geschlossen! F1X = " + F1X + " F1Y = " + F1Y);
    		
    		F1 = window.open("../incl/public_key.php","WPKey","resizable=yes,width=500,height=400,screenX=" + F1X + ",screenY=" + F1Y + ",scrollbars,status=yes");
		if (!F1)
	 	{
	    		//alert("Pop up windows are suppressed on your computer!");
			return;
		}
    		
	}
	else
	{
		if (F1.screenX)
		{
		   F1X = F1.screenX;
		}
		else
		{
		   F1X = screen.availWidth - 220;
		}
		
		if (F1.screenY)
		{
		   F1Y = F1.screenY;
		}
		else
		{
		   F1Y = 130;
		}			
		
	   	//alert("GalerieFenster ist offen! F1X = " + this.F1X + " F1Y = " + this.F1Y);
	   	F1.location.href = ExtraUrl;
	}

    F1.focus();

}

/*************************************************************************/

function SetWindowTitle(titel)
{
   top.document.title = "Prof. Dr. med. Hildegard Sourgens >>  " + titel + " - -";
   

}

/*************************************************************************/

function neuAufbauP()
{
   //alert ("neuAufbauP");
   
   //DHTML_init();
   InitBackground();

}

/******************************************************************************/
/* t = Height oder Width, a = aus welchem Objekt */
function P7_getHW(t,a)
{ //v2.01 by PVII
  var r, p, h = 0, w = 0;

  if ((p = FndObj(a)) !=null)
  {
     if (document.all || document.getElementById)
     {
        h = parseInt(p.offsetHeight);
        w = parseInt(p.offsetWidth);

        if (!h)
        {
           h = parseInt(p.style.pixelHeight);
           w = parseInt(p.style.pixelWidth);
        }
     }

     else
        if (document.layers)
        {
           h = parseInt(p.clip.height);
           w = parseInt(p.clip.width);
        }
  }
  if (t == "width")
  {
     r = w;
  }
  else
  {
     r = h;
  }

  return r;
}

/*************************************************************************/

function SetFensterName(WName)
{
	top.name = WName;

	/*if (WName == 'WWeb')
	{
	   LOvrlp = 520;
	   ProgDif = 20;
	}
	else if (WName == 'WProg')
	     {
	        LOvrlp = 50;
	        ProgDif = 50; // 50 Pixel nach links 
	     }
	else if (WName == 'WInicio')
	     {
	        LOvrlp = 50;
	        ProgDif = 30; // 30 Pixel nach links 
	     }
	else
	{
	   alert("SetFensterName. Falscher Fenstername: " + WName);
	}*/

}

/*************************************************************************/

function LeftposLayerBanner()
{
   w_F  = Fensterweite();
   
   //alert("LeftposLayerBanner: w_F= " + w_F + " w_LM= " + w_LM);
   
   w_L = ((w_F - w_LM) / 2) - ProgDif; // Breite des Banners (width_LayerLeft)
   
   /*if (w_F > w_LM)
   {
      w_L = ((w_F - w_LM) / 2) - ProgDif;
   }
   else
   {
      w_L = w_F - ProgDif;
   }*/
   
   if (w_L < 0)
   {
      w_L = 0;
   }
   
   return w_L;

}

/*************************************************************************/

function LeftposCenterAll()
{
   var w_C = 0;
   
   w_F  = Fensterweite();
   
   //alert("LeftposCenterAll: w_F= " + w_F + " w_LM= " + w_LM);
   
   w_C = ((w_F - ca_Width) / 2) - ProgDif; // Breite des Banners (width_LayerLeft)
   
   if (w_C < 0)
   {
      w_C = 0;
   }
   
   return w_C;

}
/*************************************************************************/

function InitBackground()
{
   
   //alert("InitBackground: DOM= " + DOM);
   if (DOM)
   {
      
      FWidth  = Fensterweite();
      //alert("FWidth= " + FWidth);

      w_LL = LeftposLayerBanner();
      
      /*if (FWidth <= w_LM)
      {
      	w_LM = FWidth;
      }*/
      
      w_LR = (FWidth - w_LM) / 2 + LOvrlp + ProgDif;// Breite des rechten Layers (width_LayerRight)
                                                // bei Webdes überlappen lassen, damit der
                                                // Scrolltext versteckt wird
      
      if (w_LR < 0)
      {
         w_LR = 0;
      }
      
      /* middle piece with table and texts */
      if ((g = FndObj('layerbanner')) !=null)
      {
         d  = (document.layers) ? g:g.style;
         d.left   = w_LL+"px";
         //d.top    = "0px";
         d.width  = w_LM+"px";
         //alert("layerbanner: d.left= " + d.left + " d.width= " + d.width + " d.height= " + d.height);
         //d.height = LHeight+"px";
      }
      else
      {
      	//alert("layerbanner nicht gefunden");
      }
      
      // Layer center_all positionieren ######################
      w_LL = LeftposCenterAll();

      w_LR = (FWidth - ca_Width) / 2 + LOvrlp + ProgDif;
      
      if (w_LR < 0)
      {
         w_LR = 0;
      }
      
      /* middle piece with table and texts */
      if ((g = FndObj('center_all')) !=null)
      {
         d  = (document.layers) ? g:g.style;
         d.left   = w_LL+"px";
         //d.top    = "0px";
         //d.width  = ca_Width+"px";
         //alert("layerbanner: d.left= " + d.left + " d.width= " + d.width + " d.height= " + d.height);
         //d.height = LHeight+"px";
      }
      else
      {
      	//alert("layerbanner nicht gefunden");
      }

   }
   else
   {
      //alert("nicht DOM!");
   }

}

/******************************************************************************/
function FndObj(n, d)
{ //v4.01
   var p, i, x;

   //alert("FndObj; n= " + n);

   if (!d)
      d = document;

   // Auf übergeordnete Frames mit Parameterübergabe prüfen?
   /*if ((p = n.indexOf("?")) > 0 && parent.frames.length)
   {
      d = parent.frames[n.substring(p+1)].document;
      n = n.substring(0,p);
   }*/

   if (!(x = d[n]) && d.all)
      x = d.all[n];

   for (i = 0; !x && i < d.forms.length; i++)
      x = d.forms[i][n];

   for (i = 0; !x  && d.layers && i < d.layers.length;i++)
      x = FndObj(n,d.layers[i].document);

   if (!x && d.getElementById)
      x = d.getElementById(n);

   //alert ("FndObj: x= " + x);
   return x;
}


