
var xmlHttp = false;

function fixUp()
{
	var el = document.getElementById('abstractPop');
	
	if (el)
	{
		var width = 100;
		if (document.body.clientWidth && document.body.clientWidth > width)
		{ width = document.body.clientWidth;}
		if (document.body.offsetWidth && document.body.offsetWidth > width)
		{ width = document.body.offsetWidth;}
		if (document.body.scrollWidth && document.body.scrollWidth > width)
		{ width = document.body.scrollWidth;}
		el.style.width = width + "px";
		
		var height = 100;
		if (document.body.clientHeight && document.body.clientHeight > height)
		{ height = document.body.clientHeight; }
		if (document.body.offsetHeight && document.body.offsetHeight > height)
		{ height = document.body.offsetHeight; }
		if (document.body.scrollHeight && document.body.scrollHeight > height)
		{ height = document.body.scrollHeight; }
		if (document.documentElement.offsetHeight && document.documentElement.offsetHeight > height)
		{ height = document.documentElement.offsetHeight; }
		if (window.innerHeight && window.innerHeight > height)
		{ height = window.innerHeight; }
		el.style.height = height + "px";
	}
	var windowState = (function()
		{
		var readScroll = {scrollLeft:0,scrollTop:0};
		var readSize = {clientWidth:0,clientHeight:0};
		var readScrollX = 'scrollLeft';
		var readScrollY = 'scrollTop';
		var readWidth = 'clientWidth';
		var readHeight = 'clientHeight';
		function otherWindowTest(obj){
		if((document.compatMode)&&
		(document.compatMode == 'CSS1Compat')&&
		(document.documentElement)){
		return document.documentElement;
		}else if(document.body){
		return document.body;
		}else{
		return obj;
		}
		};
		if((typeof this.innerHeight == 'number')&&
		(typeof this.innerWidth == 'number')){
		readSize = this;
		readWidth = 'innerWidth';
		readHeight = 'innerHeight';
		}else{
		readSize = otherWindowTest(readSize);
		}
		if((typeof this.pageYOffset == 'number')&&
		(typeof this.pageXOffset == 'number')){
		readScroll = this;
		readScrollY = 'pageYOffset';
		readScrollX = 'pageXOffset';
		}else{
		readScroll = otherWindowTest(readScroll);
		}
		return {
		getScrollX:function(){
		return (readScroll[readScrollX]||0);
		},
		getScrollY:function(){
		return (readScroll[readScrollY]||0);
		},
		getWidth:function(){
		return (readSize[readWidth]||0);
		},
			getHeight:function()
			{return (readSize[readHeight]||0);}
		};
	})();
	var divHeight = 700;
	var viewPortWidth = windowState.getWidth();
	var viewPortHeight = windowState.getHeight();
	var horizontalScroll = windowState.getScrollX();
	var verticalScroll = windowState.getScrollY();
	var vPos = Math.round(verticalScroll+10);
	var el2 = document.getElementById('abstractLittle');
	el2.style.marginTop = vPos + "px";
}

function toggleVisForm(obj) 
{
	var el = document.getElementById(obj);	
	el.style.display = (el.style.display != 'none' ? 'none' : '' );
	fixUp();
	return false;
}
function init()
{
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	try 
	{
	  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	} 
	catch (e) 
	{
	  try 
	  {
	    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	  }
	  catch (e2) 
	  {
	    xmlHttp = false;
	  }
	}
	@end @*/

	if (!xmlHttp && typeof XMLHttpRequest!='undefined') 
	{
		try {
			xmlHttp = new XMLHttpRequest();
		} catch (e) {
			xmlHttp=false;
		}
	}
	if (!xmlHttp && window.createRequest) 
	{
		try {
			xmlHttp = window.createRequest();
		} catch (e) {
			xmlHttp=false;
		}
	}
}

function updatePage()
{
  if (xmlHttp.readyState == 4) 
  {
    var response = xmlHttp.responseText;
	document.getElementById("downloadTo").innerHTML = response;
  }
}

function go(url)
{
	if (!xmlHttp)
	{
		return true;
	}
	
	// Open a connection to the server and send our data
	xmlHttp.open("GET", url, true);
	xmlHttp.onreadystatechange = updatePage;
	xmlHttp.send(null);	
	return false;
}
init();