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

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

						   $.ajax({
						   type: "POST",
						   url: "forms/send_newsletter.php",
						   data: str,
						   success: function(msg){
						    
		$("#form_thanks").ajaxComplete(function(event, request, settings){
		$("#form_thanks").show();
		if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
		{
		result = '<span class="notification_ok">Sent Successfully! Thank you!</span>';
		$("#fields").hide();
		}
		else
		{
			result = msg;	
			
		}

		$(this).html(result);

		});

		}
						 });

		return false;

		});

	});
