  $(function() {
    $('.error').hide();
    $(".proceed").click(function() {
      // validate and process form here

      $('.error').hide();
  	  var name = $("input#name").val();
  		if (name == "Name:") {
        $("label#name_error").show();
        $("input#name").focus();
        return false;
      }
  		var email = $("input#email").val();
  		if (email == "Email:") {
        $("label#email_error").show();
        $("input#email").focus();
        return false;
      }
	  var name = $("input#name").val();
  var email = $("input#email").val();
	  var dataString = 'name='+ name + '&email=' + email;
  //alert (dataString);return false;
  $.ajax({
    type: "POST",
    url: "/contact/process.php",
    data: dataString,
    success: function() {
      $('#start').html("<div id='message'></div>");
      $('#message').html("<h2>Contact Form Submitted!</h2>")
      .append("<p>We will be in touch soon.</p>")
      .hide()
      .fadeIn(1500, function() {
        $('#message').append("<img id='checkmark' src='/img/check.jpg' align='right' />");
      });
    }
  });
  return false;
  
  });
      });
