function removeFriend(userId, friendId, question, successMessage) {
	if (confirm(question)) {
		$.ajax({
			type: 'POST',
			url: '/ajax/removefromfriend/',
			data: 'user_id=' + userId + '&friend_id=' + friendId,
			success: function() {
				var match = $("#pfbh").html().match(/\d+/);
				$("#pfbh").html($("#pfbh").html().replace(match, match-1));
				getProfileFriend(userId, 1);
				alert(successMessage);
			}
		});
	}
}
