// To use:

getWindowDimensions_1 = function()
{
 var windowWidth = 0;
 var windowHeight = 0;

 if ( (document.documentElement) && (document.documentElement.clientWidth) )
  windowWidth = document.documentElement.clientWidth;
 else if ( (document.body) && (document.body.clientWidth) )
  windowWidth = document.body.clientWidth;
 else if ( (document.body) && (document.body.offsetWidth) )
  windowWidth = document.body.offsetWidth;
 else if ( window.innerWidth )
  windowWidth = window.innerWidth - 18;

 if ( (document.documentElement) && (document.documentElement.clientHeight) )
  windowHeight = document.documentElement.clientHeight;
 else if ( (document.body) && (document.body.clientHeight) )
  windowHeight = document.body.clientHeight;
 else if ( (document.body) && (document.body.offsetHeight) )
  windowHeight = document.body.offsetHeight;
 else if ( window.innerHeight )
  windowHeight = window.innerHeight - 18;

 return { width: windowWidth, height: windowHeight };
}

function getDim_1 (id) {
	document.getElementById(id).style.height="auto";
	// match box models
	if (document.all) {
		gh = document.getElementById(id).offsetHeight+10;
		gw = document.getElementById(id).offsetWidth+10;
		} else {
			gh = document.getElementById(id).offsetHeight;
			gw = document.getElementById(id).offsetWidth;
			}
 	return { width: gw, height: gh };
}

function getHeight_1 () {
	var h1 = getWindowDimensions_1();
	var h2 = getDim_1("pom");
	if ((h1.height-195)>h2.height) {
		height = (h1.height-195);
		} else {
			height = h2.height;
			}
	return height;
}
