var win = null;

function openPopup (url, breite, hoehe, doscroll, menu) {
	if (win != null && !win.closed) win.window.close();
	
	var windowLeft = (screen.width-breite)/2;
	var windowTop = (screen.height-hoehe)/2;
	
	menu = (menu) ? 'yes' : 'no'; 
	fe = "resizable=no,toolbar="+menu+",scrollbars="+doscroll+",status=0,top="+windowTop+",left="+windowLeft+",";
	fe+= "directories=0,menubar=0,location=0,width="+breite+",height="+hoehe;
	win = window.open(url,"popup",fe);
	win.focus();
}
function setComment(id) {
	winComment = window.open('./inc/commentNew.php?id='+id, '', 'width=300,height=450,scrollbars=no');
	winComment.focus();	
}

function clickKatType(katTyp) {
	var elm = document.getElementById("katTyp" + katTyp);
	
	if (elm.style.display == 'none') {
    	// elm.style.display = 'none';
    	elm.style.display = '';
    } else {
    	elm.style.display = 'none';
    }
}