function getScreenSize(type) {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth-2;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }

  if(type=='width')
    return myWidth;
  else
    return myHeight;  
}

function resizeDiv(id, size) {
  var divid = document.getElementById(id);
  var height = getScreenSize('height');

  if (size == 'total')
  	divid.style.height = height+"px";
  else
  	divid.style.height = (height-size) +"px";

	
  var width = getScreenSize('width');

  if (id == 'content')
	divid.style.width=(width-156)+"px";
  else
	divid.style.width=(width-150)+"px";

}


