function popup(strURL, blnReturn)
{
	if (blnReturn)
		return window.open(strURL, target='_blank', "directories=no,location=no,toolbar=no,resizable=yes,status=yes");
	else
		window.open(strURL, target='_blank', "directories=no,location=no,toolbar=no,resizable=yes,status=yes");
}



function setSize(thisWidth, thisHeight)
{
	if (window.frameElement != null)
	{
		window.frameElement.height = getHeight() + 10;
	}
	else
	{
		window.resizeTo(thisWidth, thisHeight);
	}
}


function getHeight()
{
	var thisBottom = 0;
	var tResults = document.getElementById('tblResults');	

	if (tResults != null)
	{
		if (isNav())
		{
		  thisBottom = tResults.offsetHeight;
		}
		else
		{
		  // we use bounding rect because table height cannot be retrieved programmatically unless height set through a style
		  // this ONLY works in IE5.5+
		  thisBottom = tResults.getBoundingClientRect().bottom;
		}
	}
	else
	{
		thisBottom = document.body.offsetHeight;
	}


	return thisBottom;
}

