function submitForm(sID)
{

	if ( (obj = document.getElementById(sID)) )
	{
		if ( obj.submit )
		{
			obj.submit();
		}
	}

	return false;

}

function toggleCommentForm()
{
	commentForm = document.getElementById("CommentFormToggle");
	if (!commentForm) return false;
	if (commentForm.style.display == "none")
		commentForm.style.display = "block";
	else
		commentForm.style.display = "none";
}

function makeComment(mNum,mNum2)
{
	toggleCommentForm();
	if (rud = document.getElementById("reply_uid_comment"))
		rud.value = mNum;
	if (tud = document.getElementById("toplevel_uid_comment"))
		tud.value = mNum2;
	return false;
}

function displayCommentForm()
{
	if (document.location.hash.substring(1)!='typeYourComment') return false;
	toggleCommentForm();
	return false;
}


window.onload = displayCommentForm;