$(document).ready(function() {

	$("#submitbutton").click(function() {
		  /*if ($("form input:first").val() == "correct") {
			$("span").text("Validated...").show();
			return true;
		  }
		  $("span").text("Not valid!").show().fadeOut(1000);
		  return false;*/
			var postname = document.getElementById('name').value;
			var postemail = document.getElementById('email').value;
			var postsubject = document.getElementById('subject').value;
			var message = document.getElementById('message').value;
			var url="/contact/includes/emailsuccess.php?name="+postname+"&email="+postemail+"&subject="+postsubject+"&message="+message;
		
			$("#change").load(url);
    });
    
});