function submitCForm() {
if ((nameval()) && (emailval()) && (commentval()))
		return true;
else
	return false;
}

function nameval() {
	var str = document.contact.name.value;
	if (str == "") {
		alert("\nThe Name field is empty.\n\nPlease enter your name.")
		document.contact.name.focus();
		return false;
	}
	for (var i = 0; i < str.length; i++) 
	{
		var ch = str.substring(i, i + 1);
		if (((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch)) && ch != ' ') 
		{
			alert("\nThe Name field only accepts letters and spaces.\n\nPlease enter your name again.");
			document.contact.name.select();
			document.contact.name.focus();
			return false;
		}
	}
	return true;
}

function emailval()
{
	var str=document.contact.email.value
		
		if (str == "")
        {
			alert("\nThe E-mail Address field is empty.\n\nPlease enter your e-mail address.")
			document.contact.email.focus()
			return false;
        }
        else if (document.contact.email.value.indexOf ('@',0) == -1 || 
				 document.contact.email.value.indexOf ('.',0) == -1)
		{
			alert("\nThe E-mail Address field requires a \"@\" and \".\".\n\nPlease enter your e-mail address again.")
			document.contact.email.focus();
			document.contact.email.select();
			return false;
		}
	else
	return true;
}

function commentval() {
	var str = document.contact.comment.value;
	if (str == "") {
		alert("\nThe Comments field is empty.\n\nPlease enter your comments.")
		document.contact.comment.focus();
		return false;
	}
	return true;
}