checking document type
document numbering