
/**
 * Is a valid email address.
 */
function isEmail(str) {
	return /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/.test(str);
}

