Two ideals of an algebra closely related to its Frattini ideal