function contentresize() {
  //var browserHeight = 0;
  var content = document.getElementById("content");
  var format_table = document.getElementById("format_table");
  //var tableHeight = document.getElementById("format_table").clientHeight;
  
  if( typeof( window.innerHeight ) == 'number' ) {
    //Non-IE
    browserHeight = window.innerHeight;
  } else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
    //IE 6+ in 'standards compliant mode'
    browserHeight = document.documentElement.clientHeight;
  } else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
    //IE 4 compatible
    browserHeight = document.body.clientHeight;
  }
  
	format_tableHeight = format_table.offsetHeight;
	contentHeight = content.offsetHeight;
	
	//window.alert('browserHeight = ' + browserHeight + ' tableHeight = ' + format_tableHeight + ' contentHeight = ' + contentHeight);
	
	var restHeight = format_tableHeight - contentHeight;
	var minContentHeight = 424;
	
	if (contentHeight >= minContentHeight) {
		content.style.height = browserHeight - restHeight - 36;
	}
	else {
		content.style.height = minContentHeight;
	}
}

/*

<script language="JavaScript1.2">
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
</script>

*/