	// form code           
   
	$(document).ready(function(){
	$("form").submit(function(){

	var str = $("form").serialize();

   $.ajax({
   type: "POST",
   url: "contact.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
	{
	result = '<div class="notification_ok"><p>Your message has been sent. Thank you!</p><p>Please reload this page<br>if you would like to send<br>another message using <br>the Contact Us form.</p></div>';
	$("#fields").hide();
	}
	else
	{
	result = msg;
	}

	$(this).html(result);

	});

	}

	});

	return false;

	});

	});