function ff_validate_page(element, action)
{
    error = ff_validation(ff_currentpage);
    if (error != '') {
        alert(error);
        ff_validationFocus('');
    } else
        alert('All inputs are valid.');
} // ff_validate_page