// JavaScript Document

function PlusVote(iCommentId)
{
	// set hidden fields
	document.getElementById("comment_id").value = iCommentId;
	document.getElementById("comment_command").value = "plus_vote";
	
	// submit form
	document.form_comments.submit();
}

function MinusVote(iCommentId)
{
	// set hidden fields
	document.getElementById("comment_id").value = iCommentId;
	document.getElementById("comment_command").value = "minus_vote";
	
	// submit form
	document.form_comments.submit();
}

function SendComment()
{
	if (document.getElementById("comment_text").value != "")
	{
		document.getElementById("comment_command").value = "send_comment";
	
		// submit form
		document.form_comments.submit();
	}
}

