	
	
	function blog_postComment(blog_id)
	{
		Core.sendRemoteRequest('/blog/comment', {
				blog_id: blog_id,
				name:    $('comment_name').value,
				url:     $('comment_url').value,
				body:    $('comment_body').value
			},
			function(response)
			{
				if(!response || response.error == true)
				{
					if(response && response.message) {
						alert(response.message);
					}
					else {
						alert('Something broke! Please try again later.');
					}
					
					return false;
				}
				
				var tmpl = $('comment_template').innerHTML;
				tmpl = tmpl.replace('[USER]', response.name_link);
				tmpl = tmpl.replace('[DATE]', response.post_date);
				tmpl = tmpl.replace('[TIME]', response.post_time);
				tmpl = tmpl.replace('[BODY]', response.body);
				
				if($('comments_empty'))
					$('comments_empty').hide();
				
				new Insertion.Bottom($('comments_list'), tmpl);
				
				$('comment_name').value = 
				$('comment_url').value = 
				$('comment_body').value = '';
			},
			function() { alert('A general failure occurred. Please try again later.'); }
		);
		
		return false;
	}
	

