function diashow(divid, textid, bildid, bildtitle, bildname) {

	if(document.getElementById(bildid)) document.getElementById(divid).removeChild(document.getElementById(bildid));
	var img = document.createElement("img");
	img.src = bildname;
	img.id = bildid;
	img.alt = bildtitle;
	img.title= bildtitle;
	img.border='0';
	img.style.width = "300";
	img.style.height = "213";
	document.getElementById(divid).appendChild(img);
	document.getElementById(textid).innerHTML = bildtitle;	
}

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 chgBg(obj,color){
  if (document.all || document.getElementById)
     obj.style.backgroundColor=color;
   else if (document.layers)
    obj.bgColor=color;
}



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;
	}
}
