// The following functions are used in the Discussion View
function ShowDiscussionViewContextMenu(s, e, treeList, ctxMenu)
{
    if (e.objectKey.substring(0,2) == 'GH')
	{
		return;
	}
	
	treeList.GetNodeValues(e.objectKey, "WorkspaceURL; ListName; ListItemID", ASPxClientTreeListValuesCallback);

	ctxMenu.Show(e.htmlEvent);
}

function ASPxClientTreeListValuesCallback(result)
{
	document.getElementById('WAContextMenuData').value = result;
}

function DiscussionViewNextPage(pageIndexID)
{
	var pageIndex = document.getElementById(pageIndexID);
	pageIndex.value = parseInt(pageIndex.value) + 1;
}

function DiscussionViewPreviousPage(pageIndexID)
{
	var pageIndex = document.getElementById(pageIndexID);
	pageIndex.value = pageIndex.value - 1;
}

