$(document).ready(function(){
$("#contact-form").submit(function(){
var str = $(this).serialize();
   $.ajax({
   type: "POST",
   url: "contactSent.php",
   data: str,
   success: function(msg){
$("#note").ajaxComplete(function(event, request, settings){
if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
{
	$("#error").slideUp();
	$('#fields').slideUp(function(){
$("#note").html(result);
	}
		);
result = '<div class="notification_ok">Your Contact Request Has Been Sent.</br> Thank You!</div>';

}
else
{
result = msg;
$("#error").html(result);
}

});
}
 });
return false;
});
});

