function formCheck(theform) {
	var missingfields = ""
	var bmissing = false
	if (theform.name.value == "") {
		missingfields = "  Name\n"
		bmissing = true
	}
	if (theform.addr1.value == "") {
		missingfields += "  Address Line 1\n"
		bmissing = true
	}
	if (theform.town.value == "") {
		missingfields += "  Post Town\n"
		bmissing = true
	}
	if (theform.postcode.value == "") {
		missingfields += "  Postcode\n"
		bmissing = true
	}
	if (bmissing) {
		alert("The following fields must be completed before continuing:\n\n" + missingfields)
		return false
	}
	if (!theform.conf.checked) {
		alert("Please check the box to indicate that you are willing for us to keep your details on the VOLGnet database")
		theform.conf.focus()
		return false
	}

	if ((theform.email.value.indexOf("@") == "-1"  || theform.email.value.indexOf(".") == "-1") && theform.email.value != "")  {
       	theform.email.focus()
     	alert("The email address specified is not in a valid format")
      	return false
	}
	else {
		return true
	}
}
		