$(function() {
	$('#btn_feedback').click(function() {
		$.ajax({
			type: 'get',
			url: '/bg/feedback.php',
			cache: false,
			data: { 
				'act': 'send', 
				'username': $('#fb_username').val(), 
				'email': $('#fb_email').val(), 
				'message': $('#fb_message').val() 
			},
			dataType: 'json',
			success: function(json) {
				if (json.result == 0) {
					window.location.reload();
				} else {
					$.showError(json.errors);
				}
			}
		});
	});
});