﻿function fenster_hoehe () 
{
	  if (window.innerHeight) 
	  {
	  	  //window.alert("window:"+window.innerHeight);
	  	  return window.innerHeight;
	  } 
	  else if (document.body && document.body.offsetHeight) 
	  {
		 //window.alert("offset:"+document.body.offsetHeight);
	    return document.body.offsetHeight;
	  }
	  else if (document.documentElement.clientHeight) 
	  {
		//window.alert("client:"+document.body.offsetHeight);
	    return document.documentElement.clientHeight;
	  }
	  else 
	  {
	    return 0;
	  }
}
function fenster_breite () 
{
	  if (window.innerWidth) 
	  {
	  	  // Netscape
	  	  //window.alert("window:"+window.innerWidth);
	  	  return window.innerWidth;
	  } 
	  else if (document.body && document.body.offsetWidth) 
	  {
		 // IE 
		 //window.alert("offset:"+document.body.offsetWidth);
	    return document.body.offsetWidth;
	  }
	  else if (document.documentElement.clientWidth) 
	  {
		// IE je nach Modus
		//window.alert("client:"+document.body.clientHeight);
	    return document.documentElement.clientWidth;
	  }
	  else 
	  {
	    return 0;
	  }
}

