     function Print(SESSID)
	 {
	  var PrintURL = "./print.php?PHPSESSID="+SESSID;
	  Print = window.open(PrintURL,"Print",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=no,width=650,height=600');
      Print.moveTo(0,0);
	  Print.resizeTo(650,600);
	  Print.focus();
	  Print.location = PrintURL;
	  Print.focus();	  
	 }
 
     function UserProfile(UserID, PHPSESSID)
	 {
	  var ProfilURL = "./popup.php?PHPSESSID="+PHPSESSID+'&mod=userprofil&user='+UserID;
	  Profil = window.open(ProfilURL,"Profil",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=no,width=700,height=500');
      Profil.moveTo(0,0);
	  Profil.resizeTo(700,500);
	  Profil.focus();
	  Profil.location = ProfilURL;
	  Profil.focus();	  
	 }
	 
     function SeiteSenden(Query)
	 {
	  var popupURL = "./popup.php?modul=sendsite&"+Query;
	  POPUP = window.open(popupURL,"POPUP",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=no,width=400,height=300');
      POPUP.moveTo(0,0);
	  POPUP.resizeTo(400,300);
	  POPUP.focus();
	  POPUP.location = popupURL;
	  POPUP.focus();	  
	 }
	 
	 function ShowFileInfo(Query)
	 {
	  var popupURL = "./popup.php?modul=fileinfo&"+Query;
	  POPUP = window.open(popupURL,"POPUP",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=no,width=400,height=300');
      POPUP.moveTo(0,0);
	  POPUP.resizeTo(400,300);
	  POPUP.focus();
	  POPUP.location = popupURL;
	  POPUP.focus();
	 }	
	 
	 function ShowHelp(Query)
	 {
	  var popupURL = "./popup.php?modul=filehelp&"+Query;
	  POPUP = window.open(popupURL,"POPUP",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=no,width=400,height=300');
      POPUP.moveTo(0,0);
	  POPUP.resizeTo(400,300);
	  POPUP.focus();
	  POPUP.location = popupURL;
	  POPUP.focus();
	 }	
	 
	 function ShowWindow(Link, width, height)
	 {
	  var popupURL = Link;
	  POPUP = window.open(popupURL,"POPUP",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=no,width=450,height=450');
      POPUP.moveTo(0,0);
	  POPUP.resizeTo(width,height);
	  POPUP.focus();
	  POPUP.location = popupURL;
	  POPUP.focus();
	 }	
	   
	 function ShowBild(PHPSESSID,Bild)
	 {
	  var popupURL = "./gallerie_data/index.php?PHPSESSID="+PHPSESSID+"&Bild="+Bild;
	  POPUP = window.open(popupURL,"POPUP",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=no,width=400,height=300');
      POPUP.moveTo(0,0);
	  POPUP.resizeTo(400,300);
	  POPUP.focus();
	  POPUP.location = popupURL;
	  POPUP.focus();
	 }
	 
	 function Kommentar(PHPSESSID,KID)
	 {
	  var KommURL = "./kommentar.php?PHPSESSID="+PHPSESSID+"&KID="+KID;
	  Kommentar = window.open(KommURL,"Kommentar",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=no,width=650,height=600');
      Kommentar.moveTo(0,0);
	  Kommentar.resizeTo(650,600);
	  Kommentar.focus();
	  Kommentar.location = KommURL;
	  Kommentar.focus();	  
	 }
	 
	 function ShowLocator(Locator)
	 {
	  karte = window.open("about:blank","karte",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=no,width=450,height=450');
      karte.location = "http://www.funkportal24.de/gmaps/locview.php?LocEg="+Locator ;
	  karte.moveTo(0,0);
	  karte.focus(); 
	 }
	 
	 function LocSearch()
	 {
	  karte = window.open("about:blank","locsearch",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=no,width=600,height=600');
      karte.location = "http://www.funkportal24.de/gmaps/locsearch.php";
	  karte.moveTo(0,0);
	  karte.focus(); 
	 }
	
	 
	 
	 function bbc_highlight(something, mode)
	 {
	  something.style.backgroundImage = "url(" + "./gif/bbc_tasten/"+ (mode ? "taste_onhg.gif)" : "taste_offhg.gif)");
	 }
	
	 function storeCaret(text)
     {
	  // Only bother if it will be useful.
	  if (typeof(text.createTextRange) != 'undefined')
	  text.caretPos = document.selection.createRange().duplicate();
     }
	
	 function surroundText(text1, text2, textarea)
     {
	  // Can a text range be created?
	  if (typeof(textarea.caretPos) != "undefined" && textarea.createTextRange)
	  {
		var caretPos = textarea.caretPos;

		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text1 + caretPos.text + text2 + ' ' : text1 + caretPos.text + text2;
		caretPos.select();
	  }
	  // Mozilla text range wrap.
	  else if (typeof(textarea.selectionStart) != "undefined")
	  {
		var begin = textarea.value.substr(0, textarea.selectionStart);
		var selection = textarea.value.substr(textarea.selectionStart, textarea.selectionEnd - textarea.selectionStart);
		var end = textarea.value.substr(textarea.selectionEnd);

		textarea.value = begin + text1 + selection + text2 + end;

		if (textarea.setSelectionRange)
		{
			var newCursorPos = textarea.selectionEnd + text1.length + text2.length;
			textarea.focus();
			textarea.setSelectionRange(newCursorPos, newCursorPos);
		}
	  }
	  // Just put them on the end, then.
	  else
	  {
		textarea.value += text1 + text2;
		textarea.focus(textarea.value.length - 1);
	  }
     }
	 
	 function lon()
	 {
	  DIALOG.showModal('load_container'); 
	  return true;
	 }
