function editorForum(forumid,parentid) {
	var popupWindow = window.open('popup_f_editor.asp?fid='+forumid+'&parentid='+parentid,'forumeditorPopup','height=100, width=500, resizable=no, scrollbars=yes');
}

function moveForum(fid,ordensnummer,retning,mn1,mn2,mn3,sid) {
	document.location.href = "forum_move.asp?fid="+fid+"&ordensnummer="+ordensnummer+"&retning="+retning+"&mn1="+mn1+"&mn2="+mn2+"&mn3="+mn3+"&sid="+sid;
}

function deleteForum(fid,mn1,mn2,mn3,sid) {
	if (confirm("Dette vel slette forummet og alle indlæg!")) {
	document.location.href = "forum_delete.asp?fid="+fid+"&mn1="+mn1+"&mn2="+mn2+"&mn3="+mn3+"&sid="+sid;	
	}
}

function editorForumPost(pid,topid,fid,isthreadstart,parentid,threadid,qparent) {
	var popupWindow = window.open('popup_fp_editor.asp?pid='+pid+'&fid='+fid+'&topid='+topid+'&isthreadstart='+isthreadstart+'&parentid='+parentid+'&threadid='+threadid+'&qparent='+qparent,'forumeditorPopup','height=100, width=500, resizable=no, scrollbars=yes');
}

function deleteForumPost(pid,isthreadstart,mn1,mn2,mn3,sid,fid,tid) {
	if (isthreadstart == "ja") {
		if (confirm("Dette vil slette hele denne tråd!")) {
			document.location.href = "forum_post_delete.asp?pid="+pid+"&isthreadstart="+isthreadstart+"&fid="+fid+"&tid="+tid+"&mn1="+mn1+"&mn2="+mn2+"&mn3="+mn3+"&sid="+sid;
		}
	} else {
		if (confirm("Dette vil slette indlægget!")) {
			document.location.href = "forum_post_delete.asp?pid="+pid+"&isthreadstart="+isthreadstart+"&fid="+fid+"&tid="+tid+"&mn1="+mn1+"&mn2="+mn2+"&mn3="+mn3+"&sid="+sid;
		}
	}	
}

function forumAlert() {
	alert("For at benytte forummet skal du først oprette en brugerprofil og/eller logge ind!");
}