OnError()
	Error function - error occurs -997 
OnEndDocument()
	Document end 
