function submitSignup() {
	if (document.emailform.email.value == '' || document.emailform.email.value == 'Your Email Address' || document.emailform.zip.value == '' || document.emailform.zip.value == 'Zip Code'){
		alert("Please enter an email address and zip code");
	}else{
		ColdFusion.Ajax.submitForm('emailform', '/ajaxAction.cfm', signupSuccess,signupError);
	}	
}

function signupSuccess(text) {
	thankstext = "<p>Thank you for your interest in the campaign!</p>";
	//document.getElementById('emailformblock').innerHTML = thankstext;
	document.getElementById('emailformblock').innerHTML = thankstext;
	//alert(text);
}

function signupError(code,msg) {
	errortext = "<p>There was a problem submitting your address. Please try again soon.</p>";
	document.getElementById('emailformblock').innerHTML = errortext;
}
