Positivity in function algebras