
	  
	$(document).ready(function(){
		$("#ajax-contact-form").submit(function(){

		var str = $("#ajax-contact-form").serialize();

						   $.ajax({
						   type: "POST",
						   url: "mail-contact.php",
						   data: str,
						   success: function(msg){
						    
		$("#contact-form-note").ajaxComplete(function(event, request, settings){
		$("#contact-form-note").show();
		if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
		{
			result = '<span class="notification_ok">Thank you for contacting Thought for Today. We will respond to you as soon as possible (usually within 24 hours).</span>';
			$("#fields3").hide();
		}
		else
		{
			alert(msg);
			//result = msg;	
		}

		$(this).html(result);

		});

		}
						 });

		return false;

		});

	});