function ValidateEmailAddress( email ) 
{
    // Define the structure of an email address
    var regex = /^[ ]*[A-Za-z0-9][A-Za-z0-9+\-\._]+\@[A-Za-z0-9][A-Za-z0-9\-\._]*[A-Za-z0-9]\.[A-Za-z0-9]{2,4}[ ]*$/

    // Return true if a valid email, false otherwise
    return email.match(regex) ? true : false;
}

