function ScrollDiv(WhichElement)
{

	try
	{
		document.getElementById(WhichElement).scrollTop = 0
	}
	
	catch(e)
	{}

}



function ScrollToTop(ViewerID)
{

	window.scroll(0,0)
	
	document.getElementById(ViewerID).scrollTop = 0

}



Permalink_Section = ""
Permalink_Topic = ""

function CreatePermalink(Section,Topic)
{

	if (Section != null)
	{Permalink_Section = Section}
	
	if (Topic != null)
	{Permalink_Topic = Topic}
	
	if (Permalink_Section != "" && Permalink_Topic != "")
	{
		top.location = "/" + Permalink_Section.toLowerCase() + "/" + Permalink_Topic.toLowerCase() + "/topic.aspx"
	}
	
	else
	{
		top.location = location.pathname
	}
	
}