function chkContactForm() {
	// check if name field is blank
	if(document.contact.name.value=="") {
		alert("Please enter your name.");
		document.contact.name.focus();
		return(false);
	}	
	// check if email field is blank
	if(document.contact.email.value=="") {
		alert("Please enter your email address.");
		document.contact.email.focus();
		return(false);
	}	
	// check if email field has '@' or '.'
	var emailText=document.contact.email.value
	var chk1="@"
	var chk2="."
	if(emailText.indexOf(chk1)<0 || emailText.indexOf(chk2)<0) {
		alert("Your email address is not valid." + "\n" + "(must include an \"@\" and a \".\")");
		document.contact.email.focus();
		return(false);
	}	
	// check if message field is blank
	if(document.contact.message.value=="") {
		alert("Please enter a message.");
		document.contact.message.focus();
		return(false);
	}
document.all["contact"].submit();
return true;   	
}

function chkStoryForm() {
	// check if name field is blank
	if(document.story.name.value=="") {
		alert("Please enter your name.");
		document.story.name.focus();
		return(false);
	}	
	// check if email field is blank
	if(document.story.email.value=="") {
		alert("Please enter your email address.");
		document.story.email.focus();
		return(false);
	}	
	// check if email field has '@' or '.'
	var emailText=document.story.email.value
	var chk1="@"
	var chk2="."
	if(emailText.indexOf(chk1)<0 || emailText.indexOf(chk2)<0) {
		alert("Your email address is not valid." + "\n" + "(must include an \"@\" and a \".\")");
		document.story.email.focus();
		return(false);
	}	
	// check if location field is blank
	if(document.story.location.value=="") {
		alert("Please enter the Sweetwaters location that you frequent.");
		document.story.location.focus();
		return(false);
	}
	// check if message field is blank
	if(document.story.message.value=="") {
		alert("Please enter your SweetStory.");
		document.story.message.focus();
		return(false);
	}
document.all["story"].submit();
return true;   	
}

function chkClubForm() {
	// check if name field is blank
	if(document.join.name.value=="") {
		alert("Please enter your name.");
		document.join.name.focus();
		return(false);
	}	
	// check if city field is blank
	if(document.join.city.value=="") {
		alert("Please enter your city.");
		document.join.city.focus();
		return(false);
	}
	// check if email field is blank
	if(document.join.email.value=="") {
		alert("Please enter your email address.");
		document.join.email.focus();
		return(false);
	}	
	// check if email field has '@' or '.'
	var emailText=document.join.email.value
	var chk1="@"
	var chk2="."
	if(emailText.indexOf(chk1)<0 || emailText.indexOf(chk2)<0) {
		alert("Your email address is not valid." + "\n" + "(must include an \"@\" and a \".\")");
		document.join.email.focus();
		return(false);
	}	
document.all["join"].submit();
return true;   	
}

function chkSuggestForm() {
	// check if name field is blank
	if(document.suggest.name.value=="") {
		alert("Please enter your name.");
		document.suggest.name.focus();
		return(false);
	}	
	// check if email field is blank
	if(document.suggest.email.value=="") {
		alert("Please enter your email address.");
		document.suggest.email.focus();
		return(false);
	}	
	// check if email field has '@' or '.'
	var emailText=document.suggest.email.value
	var chk1="@"
	var chk2="."
	if(emailText.indexOf(chk1)<0 || emailText.indexOf(chk2)<0) {
		alert("Your email address is not valid." + "\n" + "(must include an \"@\" and a \".\")");
		document.suggest.email.focus();
		return(false);
	}	
	// check if location field is blank
	if(document.suggest.location.value=="") {
		alert("Please enter the Sweetwaters location that you frequent.");
		document.suggest.location.focus();
		return(false);
	}
	if (document.suggest.perWeek.value=="" && document.suggest.perMonth.value=="" && document.suggest.perYear.value=="" && document.suggest.other.value=="")  {
		alert("Please let us know how often you visit Sweetwaters.");
		document.suggest.perWeek.focus();
		return(false);
	}
	if (!document.suggest.rateAtmosphere[0].checked && !document.suggest.rateAtmosphere[1].checked && !document.suggest.rateAtmosphere[2].checked) {
		alert("Please rate the atmosphere at Sweetwaters.");
		return(false);
	}
	if (!document.suggest.rateProducts[0].checked && !document.suggest.rateProducts[1].checked && !document.suggest.rateProducts[2].checked) {
		alert("Please rate the products at Sweetwaters.");
		return(false);
	}
	if (!document.suggest.rateService[0].checked && !document.suggest.rateService[1].checked && !document.suggest.rateService[2].checked) {
		alert("Please rate the service at Sweetwaters.");
		return(false);
	}	
	
	// check if message field is blank
	if(document.suggest.message.value=="") {
		alert("Please enter your suggestions.");
		document.suggest.message.focus();
		return(false);
	}
document.all["suggest"].submit();
return true;   	
}