//Check to see that the fields are filled out properly
function textcheck() {
	//Check fields to make sure there is information in them
	var error;
	var atsymbol;
	var periodsymbol;
	
	if(document.form.name.value == "") {
		alert("You must enter your name.\n");
		error = true;
	}
	if(document.form.email.value == "") {
		alert("You must enter an e-mail address.\n");
		error = true;
	}
	if(document.form.description.value == "") {
		alert("You must describe the issue.\n");
		error = true;
	}
	
	//Validate e-mail address
	if(document.form.email.value != "") {
		atsymbol = document.form.email.value.indexOf("@");
		periodsymbol = document.form.email.value.indexOf(".");
		if (atsymbol < 1 || periodsymbol < 1) {
			alert("You did not enter a valid email address.\n");
			error = true;
		}
	}
	
	if(error == false) {
		return false;
	} else {
		return true;
	}
}