// Hides the Report Comments Layer
function hideComments()
{
	layerComments.style.visibility = 'hidden';
	layerHide.style.visibility = 'hidden';
	layerShow.style.visibility = 'visible';
	layerReport.style.height = '522px';

	screenRes = checkRes();
	if (screenRes == 800)
	{
		layerReport.style.height = "355";
		layerComments.style.height = "90";
		layerComments.style.top = "315";
		layerReport.style.width = "99%";
//		layerTicker.style.width = "100%";
	}
}

// Shows the Report Comments Layer
function showComments()
{
	layerComments.style.visibility = 'visible';
	layerHide.style.visibility = 'visible';
	layerShow.style.visibility = 'hidden';
	layerReport.style.height = '325px';
	
	screenRes = checkRes();
	if (screenRes == 800)
	{
		layerReport.style.height = "240";
		layerComments.style.height = "90";
		layerComments.style.top = "315";
		layerReport.style.width = "99%";
//		layerTicker.style.width = "100%";
	}
}

// Return Screen Resolution
function checkRes()
{
//	alert(screen.height + "x" + screen.width);
	if (screen.height > 600 && screen.width > 800)
	{
		res = 1024;
	}
	else
	{
		res = 800;
	}
	return res;
}

// Display windows that do not record in History
var openPopup = new Array();
var indexPopup = 0
function popup(sURL,sName,sWidth,sHeight,sLeft,sTop)
{
	openPopup[indexPopup] = window.open(sURL,sName,"location=no scrollbars=yes status=no height="+sHeight+" width="+sWidth+" left="+sLeft+" top="+sTop+" resizable=no",true);
	indexPopup++;
}

// Close Window
function closeWindow()
{
	self.close();
}

// This function is only supported by IE5+
function printWindow()
{
	window.print();
}

