// JavaScript Document
function overDiv (idnr)
	{
	idnr.style.backgroundColor='#dadfe0';
	//idnr.style.backgroundColor='#4D87C7';	
	idnr.style.borderColor='#194485';	
	}
function outDiv (idnr)
	{
	idnr.style.backgroundColor='#FDFDFD';
	idnr.style.borderColor='#e8e8e8';		
	}		
function chgField(feld)
	{
		if ((feld.value == feld.id))
			{
			feld.value = '';
			}
	}
function rechgField(feld)
	{	
		if ((feld.value == ''))
			{
			feld.value = feld.id;		
			}
	}
	
	
function printPage() {
	window.print();	
}

function setMaxImg(n, max) {
	var e = document.getElementById(n + "-maxImg");
	var f = document.getElementById("alle-maxImg");	
	if (e==null) return;
	if (!max) {
		e.src="gifs/max.gif";
	} else {
		e.src="gifs/min.gif";
	}
}

//dies ist korrekt, wenn onload alle blocks unsichtbar sein sollen
function switchLayer(n) {
	var e = document.getElementById(n);
	if (e==null) return;
	if( e.style.display == "block" ) {
		e.style.display = "none";
		setMaxImg(n, false)
	} else {
		e.style.display = "block";
		setMaxImg(n, true)
	}
}
