    $("#emailForm").validate();
 $(function() {
  $('.error').hide();
  $(".button").click(function() {
		// validate and process form
		// first hide any error messages
		var email = $("input#email").val();
		if (email == "") {
      return false;
    }
		
		var dataString = '&email=' + email;
		//alert (dataString);return false;
		$.ajax({
      type: "POST",
      url: "post.php",
      data: dataString,
      success: function() {
        $('#formContainer').html("<div id='message'></div>");
        $('#message').html("<h3>Thank you for signing up!</h3>")
        .append("<p>We will be in touch soon.</p>")
        .hide()
        .fadeIn(1500, function() {
          $('#message').append("<img id='checkmark' src='images/check.gif' />");
        });
      }
     });
    return false;
	});
});
