// checkform.js


function checkForm()
{
	if (document.forms["aquatankform"].name.value == "")
	{
		alert("The form was not submitted because of the following error.\nPlease correct this error and resubmit.\n\nThe Name field is required.");
	} else if (document.forms["aquatankform"].phone.value == "") {
		alert("The form was not submitted because of the following error.\nPlease correct this error and resubmit.\n\nThe Phone field is required.");
	} else if (document.forms["aquatankform"].email.value == "") {
		alert("The form was not submitted because of the following error.\nPlease correct this error and resubmit.\n\nThe Email field is required.");
    } else {
		document.forms["aquatankform"].submit();
	}
}