/*///////////////////////////////////////////////////////////////////////Part of the code from the book Building Findable Websites: Web Standards, SEO, and Beyondby Aarron Walter (aarron@buildingfindablewebsites.com)http://buildingfindablewebsites.comDistrbuted under Creative Commons licensehttp://creativecommons.org/licenses/by-sa/3.0/us////////////////////////////////////////////////////////////////////////*/// Load Events ListenersEvent.observe(window, 'load', init, false);function init(){	Event.observe('signup','submit',storeAddress);}// AJAX call sending sign up info to store-address.phpfunction storeAddress(event) {	// Update user interface	$('response').innerHTML = 'Saving your info...';	// Prepare query string and send AJAX request	// NOTE: You'll need to define what info your list will accept in your MailChimp account in 	// Lists > click the desired list > list settings > Merge tags for personalization 	var pars = 'ajax=true&email=' + escape($F('email')) + '&fname=' + escape($F('fname')) + '&lname=' + escape($F('lname')) + '&address=' + escape($F('address')) + '&city=' + escape($F('city')) + '&state=' + escape($F('state')) + '&zip=' + escape($F('zip'));	var myAjax = new Ajax.Updater('response', 'inc/store-address.php', {method: 'get', parameters: pars});	Event.stop(event); // Stop form from submitting when JS is enabled}