function checkFillContent(value)
{
	if (value == '') {
		alert("Fill text field");
		return false;
	}
	return true;
}

function changeCommentNode(id)
{
	if ($('comment_child_' + id).style.display == 'none') {
		openSubComments(id);
	} else {
		closeSubComments(id);
	}
}

function openSubComments(id)
{
	if ($('comment_child_' + id).innerHTML == '') {
		xajax_run('xcomments','showSubComments', id);
		$('comment_child_' + id).style.display = 'block';
	} else {
		$('comment_child_' + id).style.display = 'block';
	}
	$('comment_img_' + id).src = "/images/xcomments/minus.gif";
}

function closeSubComments(id)
{
	$('comment_child_' + id).style.display = 'none'; 
    $('comment_img_' + id).src = "/images/xcomments/plus.gif";
}