On nonregular ideals and z0-ideals in C(X)