function ff_validemail(element, message)
{
    var check =
    /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
    if (!check.test(element.value)){
        if (message=='') message = element.name+" is no valid email address.\n";
        ff_validationFocus(element.name);
        return message;
    } // if
    return '';
} // ff_validemail