function getBrowserHeight() {
 var pos = 0;
 if(window.innerHeight) {
  pos = window.innerHeight;
 } else if(document.documentElement.clientHeight) {
  pos = document.documentElement.clientHeight;
 } else if((document.body)&&(document.body.offsetHeight)) {
  pos = document.body.offsetHeight;
 }
 return pos;
}
function getBrowserWidth() {
 var pos = 0;
 if(window.innerWidth) {
  pos = window.innerWidth;
 } else if(document.documentElement.clientWidth) {
  pos = document.documentElement.clientWidth;
 } else if((document.body)&&(document.body.offsetWidth)) {
  pos = document.body.offsetWidth;
 }
 return pos;
}
document.getElementById("screen_test").src="cgi/sz.cgi?sw="+screen.width+"&sh="+screen.height+"&bw="+parseInt(getBrowserWidth())+"&bh="+parseInt(getBrowserHeight());