function popWindow(coverDiv,topCoverDiv,loading_innerHTML)
{
	this.coverElem = coverDiv;
	this.topCoverElem = topCoverDiv;
	this.loading_innerHTML = loading_innerHTML;
	
	this.setup = function ()
	{
		this.topCoverElem.innerHTML = this.loading_innerHTML;
	}
	
	this.open = function (urlWindow)
	{
		this.coverElem.style.height = document.body.scrollHeight + 'px';
		this.coverElem.style.display = 'block';
		this.topCoverElem.style.display = 'block';
		this.topCoverElem.style.top = 80 +"px";
		this.topCoverElem.style.left = document.body.offsetWidth/2 - this.topCoverElem.offsetWidth/2 + "px";
		
		basicAjax(urlWindow, this.topCoverElem);
	}  
	
	this.windowResize = function()
	{
		this.topCoverElem.style.left = document.body.scrollWidth/2 - this.topCoverElem.scrollWidth/2 + "px";
	}
	
	this.close = function()
	{
		this.coverElem.style.display = 'none';
		this.topCoverElem.style.display = 'none';
		
		this.setup();
	}
}
