var clearedInputList = new Array();

function clearInputBox(elementID)
{
	var clearInput = true;

	for(var i = 0; i < clearedInputList.length; i ++)
	{
		if(clearedInputList[i] == elementID)
			clearInput = false;
	}

	if(clearInput)
	{
		document.getElementById(elementID).value = '';
		clearedInputList[clearedInputList.length] = elementID;
	}
}

function blockCommentLinks()
{
	$('.comment-link').each( function () {
		
		$(this).bind('click', function (){
								showComments($(this));
								return false;
							}
					 );
	});
}

function showComments(clicker)
{
	var href = clicker.attr('href');
	
	if(href.indexOf('#') != -1)
	{
		$(href).toggle('fast');
	}
}