// JavaScript Document
$(document).ready(function(){
	$("#e_btn_send").click( function() {
							 
		post_data = $('#e_form_elem').serialize();
		$("#e_error").text("Sending email").show("fast");
		$.post('/send_plot', post_data, function(data) {
			if (data=='done') {
				$("#e_form_elem").fadeOut("normal", function(){
					$("#thank_you").show("fast");
				});				
			} else {
				$("#e_error").text(data).show("fast"); 
			}
		});		
	});
	
});