window.onload=function(){  flashFix();};

function FensterOeffnenComments (Adresse) {
  MeinFenster = window.open(Adresse, "fünftfenster", "width=500,height=500,left=50,top=50,scrollbars=yes");
  MeinFenster.focus();
}

var maxlang=60;
function zaehle(feld){
	var countNodes = new Array(window.document.zeige.shouttxt);
	var rest = maxlang;
	for(var i =0; i < countNodes.length; i++){
		rest -= countNodes[i].value.length;
	}
	if (rest < 0){
		feld.value = feld.value.substring(0, feld.value.length + rest);
		rest = 0;
	}
	document.zeige.anzeigen2.value = rest;
}



IE4 = (document.all) ? 1 : 0;
NS6 = (document.getElementById) ? 1 : 0;

function set_Layer(layername){

	theImage = layername;

	if (document.images[theImage].src.match('mid2'))
	{
		document.images[theImage].src = 'media/images/mumble/list_tree_mid3.png';
	}
	else if (document.images[theImage].src.match('mid3'))
	{
		document.images[theImage].src = 'media/images/mumble/list_tree_mid2.png';
	}
	else if (document.images[theImage].src.match('end2'))
	{
		document.images[theImage].src = 'media/images/mumble/list_tree_end3.png';
	}
	else if (document.images[theImage].src.match('end3'))
	{
		document.images[theImage].src = 'media/images/mumble/list_tree_end2.png';
	}

	theLayer = layername;
	if(IE4) {
		theStatus = document.all(theLayer).style.display;
		if (theStatus == 'none') {
			document.all(theLayer).style.display = "inline"; }
		else {
			document.all(theLayer).style.display = "none";} }
	if(NS6) {
		theStatus = document.getElementById(theLayer).style.display;
		if (theStatus == 'none') {
			document.getElementById(theLayer).style.display = "inline"; }
		else {
			document.getElementById(theLayer).style.display = "none"; } } }

