function getHTTPObject(){

    if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");

    else if (window.XMLHttpRequest) return new XMLHttpRequest();

    else {

	alert("Your browser does not support AJAX.");

    return null;
    }
}

function doWork(i,o,f){

    httpObject = getHTTPObject();

    if (httpObject != null) {

	httpObject.open('POST', f, true);
	httpObject.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	httpObject.setRequestHeader( "If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT" );

	httpObject.onreadystatechange = function() {
    	    if (httpObject.readyState == 4) {
		document.getElementById(o).innerHTML = httpObject.responseText;
    	    }
	}

        httpObject.send('w='+escape(document.getElementById(i).value));
    }
}

function reSize() {
  var myWidth = 0, myHeight = 0;
  var divHeight = document.getElementById('extContent').offsetHeight;
  if( typeof( window.innerHeight ) == 'number' ) {
    //Non-IE
    myHeight = 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
	
	//set height
    myHeight = document.body.clientHeight;
  }
  if ( divHeight < myHeight ) {
  document.getElementById('leftTop').style.height = myHeight + "px";
  document.getElementById('leftTop').style.height = myHeight + "px";
} else {
	document.getElementById('rightTop').style.height = divHeight + "px";
	document.getElementById('rightTop').style.height = divHeight + "px";
}
}
var httpObject = null;

