// check for a validly formatted email address
function checkEmail(testval) {
	if (testval.indexOf('\@') < 1 || testval.indexOf('.') == -1 ||
		testval.lastIndexOf('.') < testval.indexOf('\@') + 2 || testval.lastIndexOf('.') >= testval.length - 2)
	{
		return false;
	}
	return true;
}