function ValidatePassword(a) {
    var b = trimAll(a.email.value);
    if (isWhitespace(b)) {
        alert("Please enter your e-mail address.");
        a.email.focus();
        return false
    } else if (!isEmail(b)) {
        alert("Please enter your e-mail address in the correct format.");
        a.email.focus();
        return false
    } else if (!isCharsInBag(b, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@._-")) {
        alert("Your e-mail address contains invalid characters.");
        a.email.focus();
        return false
    }
    return true
}
