/* Window sizing functions */

function myHeight() {
  var windowHeight = 0;

  if( typeof( window.innerHeight ) == 'number' ) {

    //Non-IE
    windowHeight = window.innerHeight;

  } else {

    if( document.documentElement &&
         document.documentElement.clientHeight ) {

      //IE 6+ in 'standards compliant mode'
      myHeight = document.documentElement.clientHeight;

    } else {

      if( document.body && document.body.clientHeight ) {

        //IE 4 compatible
        windowHeight = document.body.clientHeight;
      }
    }
  }
  return windowHeight;
}

function ieResize() {

  // window.alert( 'Height = ' + myHeight ());

  document.all.textarea.style.height = myHeight() - 200;

}

/* function ieResize2() {

  // window.alert( 'Height = ' + myHeight() );

 var halfHeight = myHeight();
  
  halfHeight = halfHeight / 2;
  window.alert( 'halfHeight = ' + halfHeight );

  document.all.textarea.style.height = halfHeight ;
  
  document.all.comarea.style.height = halfHeight ;
} */