function contentSize(){
  var contentHeight, divHeight = 0, myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    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;
  }
  divHeight = document.getElementById('textarea').clientHeight
  contentHeight = divHeight+111
  if (contentHeight < myHeight){
  footerHeight = myHeight-14
  document.getElementById('container').style.height=myHeight+'px';
  document.getElementById('footer').style.top=footerHeight+'px';
  //window.alert( '< Div Height = ' +  contentHeight + ' myHeight = ' + myHeight);
  }else{
  footerHeight = contentHeight-14
  containerHeight = contentHeight
  document.getElementById('container').style.height=containerHeight+'px';
  document.getElementById('footer').style.top=footerHeight+'px';
  //ol_offsety=-150;
  
  }
  //window.alert( '>Height = ' +  contentHeight + ' myHeight = ' + myHeight);
  document.cookie='myHeight='+myHeight;
  document.cookie='divHeight='+divHeight;
}
//window.onresize = function() {
//			contentSize();
//		}