function wechselGrafik(element,grafik) {
	document.getElementById(element).src=grafik;
}

function effektNavi(obj, klasse){
  	if (document.all || document.getElementById) {
		document.getElementById(obj).className = klasse;
	}
}

function chgInput(obj, farbe){
	 if (document.all || document.getElementById) {
	     obj.style.borderColor=farbe;
	}
}


function OeffneFenster(url, name, breite, hoehe, scroll) {
	if(!breite) { breite = 610; }
	if(!hoehe) { hoehe = 450; }
	if(!scroll) { scroll = 0; }
	breite = breite + 0;
	hoehe = hoehe + 0;
	var oBrowser = new BrowserProps();//
	var iWidth = oBrowser.ScreenAvailWidth;
	var iHeight = oBrowser.ScreenAvailHeight;
	var iLeft = (iWidth-breite)/2;
	var iTop = (iHeight-hoehe)/2;
	if (iLeft<0) iLeft = 0;
	if (iTop<0) iTop = 0;
	var win = window.open(url, name, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+scroll+",resizable=0,dependent=yes,hotkeys=no,width="+breite+",height="+hoehe+",screenX=" + iLeft + ",screenY=" + iTop + ",left=" + iLeft + ",top=" + iTop);
	win.focus();
}

function BrowserProps() {
	if (navigator.userAgent.indexOf("Opera")>-1) {
		this.ScreenAvailWidth = top.window.innerWidth;
		this.ScreenAvailHeight = top.window.innerHeight;
	} else {
		this.ScreenAvailWidth = screen.availWidth;
		this.ScreenAvailHeight = screen.availHeight;
	}
}
