// JavaScript Document


function validateThis(dataform)
{ //This is the name of the function

	var errString = "";

	if (frmContact.name.value == "")
	{ //This checks to make sure the field is not empty
		errString += "Please fill in Name.\n";
	}
	
	if (frmContact.email.value == "")
	{ //This checks to make sure the field is not empty
		errString += "Please fill in Email.\n";
	}
	
	if (errString != "")
	{
		alert("--------------------------\n" + errString + "\n--------------------------\n");
	   return false; //This prevents the form from being submitted
	}
	else
	{
		return true;
	}
}
