var survey = {
	init: function() {
		$("#survey form:first").submit(function(e) {
			$.post($(this).attr("action"), $(this).serialize(), function() {
				survey.getResults()
			});
			e.preventDefault();
		});
	},
	getResults: function() {
		$("#survey ul").load($("#survey form:first").attr("action") + " li");
	}
}

// $(document).ready(survey.init);
