function formular(FNAME) {
          // Öffnet ein Formular mit den Geometriedaten der Kontaktfomulardatenbank
          HOST = window.location.host;
          URL = 'http://' + HOST + '/forms.nsf/showform?Openagent&form=' + FNAME;
          window.open(URL,'INTER','top=20,left=' + (screen.width / 2) + ',width=10,height=10');
         }

function formular_direkt(FNAME,POP) {
           // Öffnet ein Formular mit angegebenen Geometriedaten aus der Kontaktformulardatenbank
           HOST = window.location.host;
           if (HOST == 'intraintegra') { PROT = 'HTTP';  }
           else                        { PROT = 'HTTPS'; }
           URL = PROT + '://' + HOST + '/forms.nsf/showform?Openagent&form=' + FNAME + '&action=show';
           if (POP == '') { window.location.href = URL; }
           else           { window.open(URL,'',POP);    }
         }


function fenster(FURL,POP) {
	   // Öffnet ein beliebiges Dokument.
           // Bei der Angabe von "POP"-Parametern, erscheint das
           // Dokument in einem separatem POP-UP-Fenster.
           // Aufruf: <A HREF="javascript:fenster('Dokumentenpfad','POP-Parameter')">...</A>

           HOST = window.location.host;
           URL = 'http://' + HOST + FURL;
           if (POP == '') { window.location.href = URL; }
           else           { window.open(URL,'Aussenstellen',POP);    }
         }

function dynFenster(fhoehe,fbreite,FURL,parameter,ssl,fenster) {
	    
	     // Öffnet ein beliebiges Dokument.								
            //  fhoehe,fbreite: Höhe,Breite des neuen Fensters in Pixeln 				
           //   FURL: relativer Pfad zum Dokument
	  //    parameter: sonstige Parameter, z.B. "scrollbars=no"
         //	ssl: Wenn als Paramter ssl=yes , wird dynamisch (je nach Server) eine SSL-Verbindung aufgebaut
	//	     ansonsten findet eine normale http-Verbindung statt.   
       //     	Aufruf: <A HREF="javascript:fenster('fhoehe','fbreite','FURL','parameter','yes' | 'no')">...</a>

	   var HOST = window.location.host;
           if (ssl =='yes') {
	   if (HOST == 'internet-intern.inter.de') {var PROT = 'HTTP';  }
           else                        {var PROT = 'HTTPS'; }
	   var URL = PROT + '://' + HOST + FURL;
	   }
	   else {var URL = 'http' + '://' + HOST + FURL;}
           
	   /* if (navigator.appName == 'Microsoft Internet Explorer') 
	      {breite = document.body.offsetWidth-fbreite-25+153;}
	   else  { breite = window.innerWidth-30-fbreite+153;} */
	   var links = screen.width-25-fbreite;
	   window.open(URL,'',"width=" + fbreite + ",height=" + fhoehe + ",left=" + links + ",top=20," + parameter);    
	  
	  if (fenster=='close') {self.focus();window.close();}        

 }
