SamSep = new Object();
SamSep.WebUrl = 'http://' + window.location.host + '/';
SamSep.AjaxUrl = SamSep.WebUrl + 'ajax/';

// ********************************************************************************* //

$(document).ready(function() {
	$('#comment_form .submit').click(SamSep.AjaxComments);
});

// ********************************************************************************* //

SamSep.AjaxComments = function(event){
	Target = jQuery(event.target);
	jQuery('#comment_form .AjaxLoading').css('display','inline');
	
	
	jQuery('#comment_form').ajaxSubmit({
	success: function(Resp){
		jQuery('#discussion').append(Resp);
		jQuery('#comment_form textarea').val('');
		jQuery('#comment_form .AjaxLoading').css('display','none');
	}});
	
	return false;
};

