tinyMCE.init({
		mode : "textareas",
		theme : "advanced",
		plugins : "emotions,advimage,advlink,spellchecker",
		theme_advanced_buttons1_add_before : "emotions,spellchecker",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		spellchecker_languages : "+English=en"
		//spellchecker_languages : "+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv"
	});

function giftpopup()
{
	window.open("jdgiftpopup.php", "giftpopup", "width=200,height=104,scrollbars=no,toolbar=0,locationbar=0,statusbar=0");
}
function crownpopup()
{
	window.open("jdcrownpopup.php", "first300_crown", "width=250,height=310,scrollbars=no,toolbar=0,locationbar=0,statusbar=0");
}
function crownkickpopup()
{
	window.open("jdcrownkickedpopup.php", "kick_crown", "width=250,height=280,scrollbars=no,toolbar=0,locationbar=0,statusbar=0");
}
function sortby(sortby,clslistname)
{
	document.getElementById(clslistname+"_sortby").value=sortby;
	document.formtopic.clswadiscussion_hdnaction.value="sortby";
	document.formtopic.action="jdgeneraltopic.php";
	document.formtopic.submit();
}
function navigatepage(clslistname,pageno)
{
	document.getElementById(clslistname+"_currentpage").value=pageno;
	document.formtopic.submit();
	return;
}