  // globale Variabeln zur Anpassung der Position und Größe
  var iWidth, iHeight;
  var screen_width, screen_height;
  // globale Variabeln zur Positionierung der inline PopUp's
  var iPosX, iPosY;
  
  // Ermittlung der Bildschirmposition festlegen
  document.onmousemove = setPosition;
  
  
  // DIV Element/Box innerhalb der Attribute Breite, Höhe und X/Y-Position an anpassen
  // 04.03.2008 daikun.de
  function setDivbox_attr2(div_id){			
    // Bildschirmauflösung
    iWidth = screen.availWidth/2;
    iHeight = screen.availHeight/4;
    // Formatierung auf DIV Element anwenden
    if(document.getElementById(div_id) != null){      
      document.getElementById(div_id).style.visibility = 'visible';
    }else{ /* Element nicht vorhanden, d.h. keine Verarbeitung */ }
  }
  
  
  
  // DIV Element/Box innerhalb der Attribute Breite, Höhe und X/Y-Position an anpassen
  function setDivbox_attr(div_id, iframe_id, iframe_src, width, height, div_pos){

    // Formatierung auf DIV Element anwenden
    if(document.getElementById(div_id) != null){
      // Anzeigebereich bestimmen
      screen_height = (screen.availHeight / 1.5); 
      screen_width  = (screen.availWidth  / 1.5);
      // Inline PopUp passt nicht in Browserfenster?
      if(width > screen_width || height > screen_height){
        // Breite?
        if(width > screen_width){ width = screen_width; }
        // Höhe?
        if(height > screen_height){ height = screen_height; }
      }

			//alert(iPosX + " x " + iPosY);
			
			//alert(div_pos);
			// Positionierung anhand des Übergabeparameters festlegen
			switch(div_pos){
				// Zentrierung bei einfachen Ansichten
				case 'normal': 
						// Positionierung in der Bildmitte
						iPosX = ((screen.availWidth - width) / 3) + "px";
						iPosY = "40" + "px";
					break;
					
				// Zentrierung bei Listen
				case 'listing':
				default:
			      // Position bestimmen
			      iPosY = ((screen_height - height) / 2) + "px";
			      iPosX = ((screen_width - width) / 2) + "px";
					break;
			}
			
      // IFrame Pfade setzen
      document.getElementById(iframe_id).src = iframe_src;
      document.getElementById(iframe_id).style.width    = (width  + 20) + "px";
      document.getElementById(iframe_id).style.height   = (height + 20) + "px";
      // Hiddenbox Größenanpassung
      document.getElementById(div_id).style.width       = width + "px";
      document.getElementById(div_id).style.height      = height + "px";
      // Hiddenbox darstellen und positionieren
      document.getElementById(div_id).style.position = "absolute";
      document.getElementById(div_id).style.display = "block";
      //document.getElementById(div_id).style.marginLeft = iPosX + "px";
      //document.getElementById(div_id).style.paddingTop = iPosY + "px";
      document.getElementById(div_id).style.top = iPosY;
      document.getElementById(div_id).style.left = iPosX;
			
			//alert(document.getElementById(div_id).style.top);
      document.getElementById(div_id).style.visibility  = "visible";
    }else{ /* Element nicht vorhanden, d.h. keine Verarbeitung */ }
  }
  
  // DIV Element/Box innerhalb der Attribute Breite, Höhe und X/Y-Position an anpassen
  function setDivbox_Aflz(div_id, width, height){ 
    // Formatierung auf DIV Element anwenden
    if(document.getElementById(div_id) != null){
      // Anzeigebereich bestimmen
      if (self.innerHeight){ // all except Explorer
      	screen_width = self.innerWidth;
      	screen_height = self.innerHeight;
      }
      else if (document.documentElement && document.documentElement.clientHeight)
      	// Explorer 6 Strict Mode
      {
      	screen_width = document.documentElement.clientWidth;
      	screen_height = document.documentElement.clientHeight;
      }
      else if (document.body) // other Explorers
      {
      	screen_width = document.body.clientWidth;
      	screen_height = document.body.clientHeight;
      }
      
      //screen_height = screen.availHeight; 
      //screen_width  = screen.availWidth;
      // Inline PopUp passt nicht in Browserfenster?
      /*
      if(width > screen_width || height > screen_height){
        // Breite?
        if(width > screen_width){ width = screen_width; }
        // Höhe?
        if(height > screen_height){ height = screen_height; }
      }*/
      
      // Position bestimmen
      //if(iPosY == null){
        // iPosY = ((screen_height - height) / 2) + "px";
        iPosY = "10px";
      //}
      
      //if(iPosX == null){
        //iPosX = ((screen_width - width) / 2) + "px";
        iPosX = "10px";
      //}
    
      // Hiddenbox Größenanpassung
      document.getElementById(div_id).style.width = width;
      document.getElementById(div_id).style.height = height;      
      // Hiddenbox darstellen und positionieren
      document.getElementById(div_id).style.position = "absolute";
      document.getElementById(div_id).style.display = "block";
      document.getElementById(div_id).style.margin = "0px";
      document.getElementById(div_id).style.padding = "0px";
      document.getElementById(div_id).style.top = iPosY;
      document.getElementById(div_id).style.left = iPosX;
      document.getElementById(div_id).style.visibility = "visible";
    }else{ /* Element nicht vorhanden, d.h. keine Verarbeitung */ }
  }
  
  
  // Funktion zur Ein-/Ausblendung von DIV Elementen 
  function setDivbox_visible(div_id, div_visible){
    // Prüfung ob Element Existiert
    if(document.getElementById(div_id) != null){
      document.getElementById(div_id).style.visibility = div_visible;
    }else{ /* Element nicht vorhanden, d.h. keine Verarbeitung */ }
  }
  
  // Mauszeigerposition zur Darstellung der Inline Pop's zwischenspeichern
  function setPosition(event){ 
    // Browser prüfen - Internet Explorer
    if(navigator.appName == "Microsoft Internet Explorer"){ 
      // Fehler bei Scrollen von Dokumenten, da Dokumentposition abgeschnitteln.
      // Dimension nach Scrolling bestimmen.
      var b = (window.document.compatMode && window.document.compatMode == "CSS1Compat") ?  
               window.document.documentElement : window.document.body || null; 
      // Position inkl. Scrollparameter definieren
      iPosX = window.event.x + b.scrollLeft;
      iPosY = window.event.y + b.scrollTop;
    }else{
      iPosX = event.pageX;
      iPosY = event.pageY;
    }
  }