﻿function ChkEmail(str) {
    var pattern = /^[\w-_.]*[\w-_.]@[\w].+[\w]+[\w]$/i;
    return pattern.test(str);
}