
function getXY(elementName,elementWidth,elementHeight)
{
	var docHeight = 0;
	var X = 0, Y = 0;
	var docWidth = (elementWidth / 2);

	if( typeof( window.pageYOffset ) == 'number' ) 
	{
		//Netscape compliant

		/** Get X and Y scroll position **/
		Y = window.pageYOffset;
		X = window.pageXOffset + (document.body.clientWidth / 2) - docWidth;

		/** Set the element size **/
		document.getElementById(elementName).style.height = parent.innerHeight - 50 + "px";
		//document.getElementById(elementName).style.width = parent.innerHeight - 50 + "px";

	} 
	else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) 
	{
		//IE6 standards compliant mode
		Y = document.documentElement.scrollTop;
		X = document.documentElement.scrollLeft + (document.body.clientWidth / 2) - docWidth;
	} 
	else if (document.all)
	{
		//IE6 standards compliant mode

		/** Get scroll position **/
		Y = document.body.scrollTop;
		X = document.body.scrollLeft + (document.body.clientWidth / 2) - docWidth;

		/** Set the element size **/
		//document.getElementById(elementName).style.height = self.screen.availHeight - 180 + "px";
		//document.getElementById(elementName).style.width = self.screen.availHeight - 180 + "px";
		
	} 
	else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) 
	{
		//DOM compliant
		Y = document.body.scrollTop;
		X = document.body.scrollLeft + (document.body.clientWidth / 2) - docWidth;
	}

	Y = Y + 10;

	/** turn on the element **/
	//document.getElementById(elementName).style.display = 'block';

	/** Position the element **/
	document.getElementById(elementName).style.top = Y + 'px';
	document.getElementById(elementName).style.left = X + 'px';
}
/**
* Creates an overlay that is the width and height of the screen
*
* DEV-DATE: 2007-10-12 JRM
**/
function showOverlay(elementID) {
	
	//
	if (document.body.scrollHeight >= self.screen.availHeight)
	{
		document.getElementById(elementID).style.height = document.body.scrollHeight + "px";
		//document.getElementById(elementID).style.width = document.body.scrollWidth + "px";
	}
	else
	{
		document.getElementById(elementID).style.height = self.screen.availHeight + "px";
		//document.getElementById(elementID).style.width = document.body.scrollWidth + "px";
	}
	
	document.getElementById(elementID).style.display='block';
}
function closeDisplay(messageId, overlayId)
{
	location.reload(true);
}
