// Requires JQuery
// Insert the following two lines before the closing </html> tag in your page to use this.
// <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.1.min.js"></script>
// <script type="text/javascript" src="newsletter.js"></script>
$(document).ready(function() {
	$('form#newsletterform').submit(function(e) {
		var form = this;
		$.post('newsletter.php', $(this).serialize(),
		function(data, textStatus, jqXHR) {
			$(form).find('input[type="text"]').first().val('Thank You');
		}
		);
	});
});

