function postBlogComment(id,bid,comments){
		var name = $('#name').val();
		var comment = $('#comment').val();
		
		$.ajax({
			type: "POST",
			url: "../postBlogComment.php",
			data: "testname="+name+"&testcom="+comment+"&post=comment"+bid+"&blog"+id,
			beforeSend: function() {
				$('#postBlogForm'+bid).css('display', 'none');
			},
			error: function(XMLHttpRequest, textStatus, errorThrown){
			//here goes the error handler codes
			},
			success: function(data) {
			},
			complete: function(){
				
			var currentTime = new Date();
			var month = (currentTime.getMonth() < 9 ? '0' : '') + (currentTime.getMonth() + 1);
			var day = currentTime.getDate();
			var year = currentTime.getFullYear();
			var time = (currentTime.getHours() < 10 ? '0' : '') + currentTime.getHours()+":"+currentTime.getMinutes();
					
			$('#comments'+bid).html(comments);
			$('#newName'+bid).html(name);
			$('#newTime'+bid).html(year+"-"+month+"-"+day+" "+time);
			$('#newComment'+bid).html(comment);
			$('#newCommentBox'+bid).fadeIn(1000).css('display', 'block');
			if (comments != 1){
				$('#lastComment'+bid).css('margin-bottom', '10px');
				$.scrollTo('#lastComment'+bid, 500 );
			}
			$('#feedback'+bid).html(data);
			}
		});
}
