JFactory::getDocument

Get a document object.

Returns the global object, only creating it if it doesn't already exist.