I'm assuming you can still open the door, Sandy?
If it doesn't free up, and you need to replace it, there is usually a screw in the edge of the door, that holds the lock in place.
Taking the screw out allows you to slide the "eurolock" out. These eurolocks are a standard height, but vary in length. Ideally take it to an architectural ironmongers, or maybe a builders merchants. If you don't want to leave the door open, measure its length. Maybe even draw a diagram with measurements.