function pop_up(Dateiname,Fenstername,Fensterbreite,Fensterhoehe,Scrollleiste) 
  {
    var Formatierungen = "width=" + Fensterbreite + ",height=" + Fensterhoehe + ",screenX=125,screenY=25,locationbar=no,menubar=no,scrollbars=" + Scrollleiste + ",resizable=yes,status=yes";
  
    popUpFenster = window.open("",Fenstername,Formatierungen); 
	popUpFenster.focus();
	
  }
  
 function pop_up_center(Dateiname,Fenstername,Fensterbreite,Fensterhoehe,Scrollleiste) 
  {
  	popupLeft = (screen.width / 2) - (Fensterbreite / 2);
   	popupTop = (screen.height / 2) - (Fensterhoehe / 2);
    	var Formatierungen = "width=" + Fensterbreite + ",height=" + Fensterhoehe + ",left="+popupLeft+",top="+popupTop+",locationbar=no,menubar=no,scrollbars=" + Scrollleiste + ",resizable=yes,status=yes";
  
   	popUpFenster = window.open("",Fenstername,Formatierungen); 
	popUpFenster.focus();
	
  } 
  
 function changeFrame(URI,FrameName)
  {
  	Frame=eval("parent."+FrameName);
	Frame.location.href = URI;
  } 	   
  
  function pop_up_url(Dateiname,Fenstername,Fensterbreite,Fensterhoehe,Scrollleiste) 
  {
    var Formatierungen = "width=" + Fensterbreite + ",height=" + Fensterhoehe + ",screenX=125,screenY=25,locationbar=no,menubar=no,scrollbars=" + Scrollleiste + ",resizable=yes,status=yes";
  
    popUpFenster = window.open(Dateiname,Fenstername,Formatierungen); 
	popUpFenster.focus();
	
  }
  
  
function addtofav(){
	
	linkUrl = window.location.href;  
	linkTitle = document.getElementsByTagName('title')[0].text ;  

	linkUrl= linkUrl.replace(/www1/,"www");
	linkUrl= linkUrl.replace(/www2/,"www");

	if ((navigator.appName == "Microsoft Internet Explorer")&&(parseInt(navigator.appVersion) >= 4)) { 
		window.external.AddFavorite(linkUrl,linkTitle);
	   	return true;
	}
	else if (window.sidebar && window.sidebar.addPanel) { 
		window.sidebar.addPanel(linkTitle, linkUrl, '' );
	   	return true;
	}
	else {
		alert('Please hit [ctrl-d] to bookmark this page');
		return false;
	}	
} 

 function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
   var obj = document.layers ? document.layers[szDivID] :
   document.getElementById ?  document.getElementById(szDivID).style : document.all[szDivID].style;
   if(obj.visibility == "visible")  {
      obj.visibility = "hidden";
   }
   else if(obj.visibility == "show") {
      obj.visibility = "hide";
   }
   else {
      obj.visibility = document.layers ? (iState ? "show" : "hide") :  (iState ? "visible" : "hidden");
   }
}
