  $(function() {
    $('.error').hide();
    $(".button").click(function() {
      // validate and process form here
      $('.error').hide();
  	  var name = $("input#name").val();
  		if (name == "") {
        $("label#name_error").show();
		$("input#name").focus();
        return false;
      }
	  var name = $("input#name").val();
  		if (name == "Shivam Pandey") {
        $("label#name_error").show();
		$("input#name").focus();
        return false;
      }
	  var name = $("input#name").val();
  		if (name == "SHIVAM PANDEY") {
        $("label#name_error").show();
		$("input#name").focus();
        return false;
      }
  		var email = $("input#email").val();
  		if (email == "") {
        $("label#email_error").show();
		$("input#email").focus();
        return false;
      }
	  var phone = $("input#phone").val();  
	  var subject = $("input#subject").val(); 
	  var additional = $("textarea#message").val(); 
	   var dataString = 'name='+ name + '&email=' + email + '&phone=' + phone + '&subject=' + subject + '&additional=' + additional;
  $.ajax({
    type: "POST",
    url: "../contact-us/process.php",
    data: dataString,
    success: function() {
      $('#form').html("<div id='message'></div>");
      $('#message').html("<h3>Contact Form Submitted!</h3>")
      .append("<p>We will be in touch soon.</p>")
      .hide()
      .fadeIn(1500, function() {
        $('#message').append("<img id='checkmark' src='../img/contact/check.png' />");
      });
    }
  });
  return false;
  
    });
  });
