function oeffnefenster (url) {
 fenster = window.open(url, "fenster1", "width=790,height=auto,status=yes,scrollbars=yes,resizable=yes");
 fenster.focus();
}

var NewWindow = null;
function popup( file, w, h )
{
	if( NewWindow != null ) NewWindow.close();
	NewWindow=window.open( file,'newWin', 'width=' + w + ',height=' + h +',left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=Yes,fullscreen=No');
	NewWindow.focus();
}	

function show_hide(element)
{
	
	if(document.getElementById(element).style.display == 'none') {
		document.getElementById(element).style.display = 'block';
	}else{
	document.getElementById(element).style.display = 'none';
	}
	//document.getElementById(element).style.visibility = 'visible';
}

function runJavaScripts() {
	
	
/*	if(document.getElementById("nav1_6") != null) {

		var element = "nav2_22";
		
		var nav2_start = document.getElementById("navi2_start");
 
		nav2_start.style.width = 2+"px";
		
		alert(nav2_start.offsetWidth);
		
		
		
		
		if(window.getComputedStyle) {
			Farbe= window.getComputedStyle(document.getElementById(element),"").getPropertyValue("background-color");
		} else if(document.getElementById(element).currentStyle) {
			Farbe= document.getElementById(element).currentStyle.backgroundColor;
		} else if(document.ids) {
			Farbe= document.layers[element].bgColor;            
		} else if(document.all) {
			Farbe=   document.all.element.style.backgroundColor; 
		}

		
		if(document.getElementById("farbbalken_top_navi3") != null) {
		  document.getElementById("farbbalken_top_navi3").style.backgroundColor=Farbe;  
		}		 
		else if(document.ids) {
			if(document.layers["farbbalken_top_navi3"] != null)
			  document.layers["farbbalken_top_navi3"].bgColor=Farbe;
		}		 
		else if(document.all) {
			if(document.all["farbbalken_top_navi3"] != null)
			  document.all["farbbalken_top_navi3"].style.backgroundColor=Farbe;
		}	
		
		
	
	} //end TOP
		*/
}
