
function showEdit() {
	document.getElementById("newentry").style.display="none";
	document.getElementById("edit").style.display="block";
}

function oeffnefenster (url) {
	fenster = window.open(url, "_blank", "width=780,height=580,status=yes,scrollbars=yes,resizable=yes");
	fenster.focus();
	return false;
}
 		
function deleteArticle(id,cat,page) {
	if (confirm("Artikel wirklich entfernen?"))
		window.location.href="index.php?cat="+cat+"&page="+page+"&delete="+id;
}
	
function hideArticle(id,cat,page) {
	window.location.href="index.php?cat="+cat+"&page="+page+"&hide="+id;
}
		
function showArticle(id,cat,page) {
	window.location.href="index.php?cat="+cat+"&page="+page+"&show="+id;
}

function deleteComment(id) {
	if (confirm("Kommentar wirklich entfernen?")) {
		document.forms[1].deletecomment.value=id;
		document.forms[1].submit();
	}
}

