Edit ermdoc