function download() {
	var url = $("#download").attr("href");
	var email = $("#email-input").val();
	if (!url || !email)
		return;
	$.post(url, { email: email }, function(data) {
		if (data.result=="1") {
			$("#email").hide();
			$("#email-response").show();
		} else {
			$("#email-error").show();
		}
	}, "json");
}