
function GetScrollHeight()
{
	var doc = window.document;
	document.write( -doc.body.scrollHeight	 );
};

//Высота страницы( включая скролл )
function getDocumentHeight() {



			/*var h = document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;

			document.write(h);		
			*/
			 var height1=0, height2=0, height3=0, height4=0, maxHeight=0;
			 var doc = window.document;



			  if (doc.height) maxHeight = doc.height;
  if (doc.body) {
	if (doc.body.scrollHeight) height1 = doc.body.scrollHeight;
	if (doc.body.offsetHeight) height2 = doc.body.offsetHeight;
  }
  if (doc.documentElement) {
	height3 = doc.documentElement.scrollHeight;
	height4 = doc.documentElement.clientHeight;
  }
   //maxHeight = Math.max(Math.max(Math.max(height1, height2), Math.max(height3, height4)),maxHeight);
   
   maxHeight  = height3 + height4;


//document.write( "<div style="z-index:0; position: absolute; left: 10; top: 0; height:" + maxHeight + ";>");	
document.write( maxHeight );	
 
};





