// JScript source code
function validEmailAddress(strEmail)
{
	var intPos;
	
	// length >= 5 characters
	if (strEmail.length < 5)
	{
		return false;
	}
	
	// an @ must be present (and only once)
	intPos = strEmail.indexOf("@")
	if (intPos == -1)
	{
		return false;
	}
	else
	{
		// a . after the @
		if (strEmail.indexOf(".", intPos) == -1)
			return false;
		else
			return true
	}
}
