/*///////////////////////////////////////////////////////////////////////
Ported to jquery from prototype by Joel Lisenby (joel.lisenby@gmail.com)
http://joellisenby.com

original prototype code by Aarron Walter (aarron@buildingfindablewebsites.com)
http://buildingfindablewebsites.com

Distrbuted under Creative Commons license
http://creativecommons.org/licenses/by-sa/3.0/us/
///////////////////////////////////////////////////////////////////////*/

jQuery(document).ready(function() {
	jQuery('#signup').submit(function() {
		// update user interface
var mymsg = '<span style="color:#FFFF00">Adding email address...</span>';
		jQuery('#response').html(mymsg);
		
		// Prepare query string and send AJAX request
		jQuery.ajax({
			url: '/wp-content/themes/gymstars/inc/store-address.php',
			data: 'ajax=true&email=' + escape(jQuery('#email').val()) + '&firstname=' + escape(jQuery('#firstname').val()) + '&lastname=' + escape(jQuery('#lastname').val()),
			success: function(msg) {
mymsg = '<span style="color:#FFFF00">' + msg + '</span>';
				jQuery('#response').html(mymsg);
			}
		});
	
		return false;
	});
});
