function checkId(id){
	test = false
	if (document.getElementById) test=document.getElementById(id); 
	else if (document.all) test=eval('document.all.'+id); 
	return test
}
function getHeight(id) { 
	var rt = 0
	if (checkId(id)){
		if (document.getElementById) rt=document.getElementById(id).offsetHeight; 
		else if (document.all) rt=eval('document.all.'+id+'.clientHeight'); 
	}
	return rt; 
} 
function setHeight(id,pxs) { 
	if (checkId(id)){
		if (document.getElementById) eval('document.getElementById(\''+id+'\').style.height=\''+pxs+'px\''); 
		else if (document.all) eval('document.all.'+id+'.style.height=\''+pxs+'px\''); 
	}
} 
function setTop(id,pxs) { 
	if (checkId(id)){
		if (document.getElementById) eval('document.getElementById(\''+id+'\').style.top=\''+pxs+'px\''); 
		else if (document.all) eval('document.all.'+id+'.style.top=\''+pxs+'px\''); 
	}
} // innerHeight



function get_space_available()
{
  var dim = new Array();
  if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
	dim[0] = window.innerWidth;
	dim[1]  = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	//IE 6+ in 'standards compliant mode'
	dim[0]  = document.documentElement.clientWidth;
	dim[1] = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	//IE 4 compatible
	dim[0]  = document.body.clientWidth;
	dim[1] = document.body.clientHeight;
  }
  return dim;
}