// contact.js

function validateForm( theForm ) {

	var error = "";

	if( theForm.name.value == "" )
		error += "- Name Field Empty.\n";

	if( theForm.name.value.substring( 0, 1 ) == " " )
		error += "- Invalid Name.\n";

	if( theForm.email.value == "" )
		error += "- Email Field Empty.\n";

	if( theForm.email.value.substring( 0, 1 ) == " " )
		error += "- Invalid Email Address.\n";

	if( error != "" ) {
		error = "You must correct the following problems:\n" + error;
		alert( error );
		return false;
	} // error

} // validateForm
