The Document.save function writes the contents of the Document object to a file specified by the string expression document_filename.
Return Value
The function returns a logical value of 1 (true) if the file was saved, 0 (false) if there was an error writing the file, and default if the Document object was empty.