An image forming apparatus includes an image forming section to which a
replaceable part is detachably attached and a switching section for
switching an operation mode of the image forming section between an
approved part mode corresponding to a case wherein an approved part is
attached as the replaceable part and a unapproved part mode corresponding
to a case wherein a part other than the approved part is attached.