alertdocument writer