function validateContact() {
	
	var answered = false;
	var multiAnswer = 0;
	
	//customer information
	if (document.SurveyForm.name.value == '') {
		alert('Name is a required field.');
		document.SurveyForm.name.focus();
		return false;
	}
	if (document.SurveyForm.email.value == '') {
		alert('E-mail is a required field.');
		document.SurveyForm.email.focus();
		return false;
	}
	if (document.SurveyForm.email.value != ''){
		if (checkEmail(document.SurveyForm.email)){
		alert('The E-mail Address you entered is invalid.');
		document.SurveyForm.email.focus();
		return false;
		}
	}
	if (document.SurveyForm.comments.value == '') {
		alert('Comments is a required field.');
		document.SurveyForm.comments.focus();
		return false;
	}
}

function checkAlpha(field) {
	string = field.value;
	var Chars = "0123456789";

    for (var i = 0; i < string.length; i++) {
       if (Chars.indexOf(string.charAt(i)) == -1){
			return true;          
       }
    }
    return false;
}
function checkEmail(field) {
	string = field.value;
 	if (string.indexOf(' ')==-1 
      	&& 0<string.indexOf('@')
      	&& string.indexOf('@')+1 < string.length){
			return false;
	}
 	return true;
}
