function sendComment() {	
	$.ajax({
	  type: "POST",
	  url: '/ajax/comments.php',
	  data: "username="+$("#username").val()+"&comment="+$("#comment").val()+"&vid="+$("#videoid").val(),
	  success: function(res) { $('#Comments').html(res); }
	});
}
/////////////////////////////////////////////////////////////////////////////////
function Play(vid) { 	
	$.ajax({
	  type: "POST",
	  url: '/ajax/ajax_play.php',
	  data: "vid="+vid,
	  success: function(res) { $('#player').html(res); }
	});		
}	
/////////////////////////////////////////////////////////////////////////////////
function NewCommentCharCheck(value) { 
	$.ajax({
	  type: "POST",
	  url: '/ajax/dir.php',
	  data: "str="+value,
	  success: function(req) {
			if (req.length > 0) $('#comment').attr('dir', req);  
			else return;			
		}
	});	
}
