function()
	{
		var b = document.body;
		var d = document.documentElement;
		
		try
		{
			return new mxRectangle(0, 0, b.clientWidth || d.clientWidth, Math.max(b.clientHeight || 0, d.clientHeight));
		}
		catch (e)
		{
			return new mxRectangle();
		}
	}
function()
	{
		var b = document.body;
		var d = document.documentElement;
		
		try
		{
			return new mxRectangle(0, 0, b.clientWidth || d.clientWidth, Math.max(b.clientHeight || 0, d.clientHeight));
		}
		catch (e)
		{
			return new mxRectangle();
		}
	}
function ( ) { var b = document . body ; var d = document . documentElement ; try { return new mxRectangle ( 0 , 0 , b . clientWidth || d . clientWidth , Math . max ( b . clientHeight || 0 , d . clientHeight ) ) ; } catch ( e ) { return new mxRectangle ( ) ; } }
Function: getDocumentSize

Returns the client size for the current document as an <mxRectangle>.
Function : getDocumentSize
Returns the bounds of the document