// JavaScript Document
// Sammlung der JS-Funktionen für Admin Bereich
//
// Letzte Änderung: 04.11.2003; ssc

function setStatus(text) {
	window.defaultStatus=text;
}

function showHideLayers(ids,action) {
	id = ids.split ("|");
	for (var test in id) {
		if (id[test] != "") {
			if (action == "show") {
				var element = document.getElementById(id[test]);
				element.style.visibility='visible';
			}
			if (action == "hide") {
				var element = document.getElementById(id[test]);
				element.style.visibility='hidden';
			}
		}
	}
}

function change_bgcolor(id,color) {
	var test = document.getElementById(id);
//	alert(color);
	if (color == "over") {
		test.style.backgroundColor ='#999999'
	}
	if (color == "out") {
		test.style.backgroundColor ='#005596'
	}
}


function openWindow(linkZiel,WindowName,Parameter) {
	win = window.open("showPic.php?name="+linkZiel,WindowName,Parameter);
}

function fensteranzeigen(linkziel){
	win = window.open(linkziel,'PopUp','top=100,left=200,width=400,height=300,scrollbars=yes,resizeable=yes');
}