/**
 * selects all elements with the given name
 */
function selectAll(sname)
{
	
	boxes = document.getElementsByName(sname);
	for(i=0; i<boxes.length; i++) {
		boxes[i].checked = true;
	}
	
}


function openHallplan(url)
{
	w = 660;
   h = 600;
   features = "width="+w+",height="+h;
   features += ",left=0,top=0,screenX=0,screenY=0,toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes";
   fenster = window.open(url, "hallplan", features);
   fenster.focus();
}



function shCategoryTree(id)
{	
	if (document.getElementById(id).style.display=='none') showtree(id);
	else hidetree(id);
}

function showtree(id) {
	// ok. laut css speci, ist tr ein table-row und kein block
	// der ie kommt damit aber nicht klar - dort nehmen wir weiter block
	if (document.all) b = "block"; else b = "table-row";
	document.getElementById(id).style.display = b;
}

function hidetree(id) {
	document.getElementById(id).style.display = "none";
}