function formatErrors(header, errors) {
	if (header == null) {header = "Error"}
	if (errors == null) {errors = ["Something wrong happened... I wish I could tell you more."]}
	if (typeof errors == "string") {errors = [errors]}
	error_msg = header + "<br /><ul>";
	errors = $(errors);
	errors.each(function(i, el) {
		error_msg += "<li>" + el + "</li>";
	})
	error_msg += "</ul>";
	return error_msg;
}
