Some hyperelliptic function identities that occur in the chiral Potts model