
function addVideoComment( rId ){
	$commentObj = $('#user-comment');
	$commentSizeObj = $('#video-comments-size');
	$addButtonObj = $('#user-comment-button');
	$addingCommentObj = $('#user-comment-adding');
	
	$addButtonObj.hide();
	$addingCommentObj.show();
	
	var comment = $commentObj.val();
	$commentObj.attr('value','');
	$.post("/members/videos/addVideoComment?async=true", { video: rId, comment:comment, type: "data" }, 
		function(data){
			switch(data){
				case 'A1':	showAccountsMod('register');
							break;
				case 'A2':	showAccountsMod('register');
							break;
				default:	$('#no-video-comments').hide();
							$('#video-comments').prepend( data );
							var currCount = parseInt($('#video-comments-size').text());
							var newCount = eval("currCount+1");
							$commentSizeObj.text(newCount+"");
						 	break;
			}
			$addButtonObj.show();
			$addingCommentObj.hide();
		}
	);			
}