jQuery(document).ready(function(){
	jQuery('.comment_action_link').each(function(){
		jQuery(this).click(function(){
			if(confirm('are you sure?'))
			{
				jQuery.ajax({
					type: 'GET',
					url: '/article/delComment',
					data: 'id='+this.rel,
					success: function(msg)
					{
						if(msg=='no'){
							alert('Sorry Fail');
						}else{
							jQuery('.comment_action_link[rel=\''+msg+'\']').parent().hide();
							alert('Comment successfully deleted!');
						}
					},
					error: function(){
						alert('error');
					}
				});
				return false;
			}else{
				return false;
			}
		});
	});
});
