//JavaScript Document
function NewsPopup(PopupURL, PopupTitle)
{
   if (! window.focus)return true;

   var href;
   if (typeof(PopupURL) == 'string')
      href=PopupURL;
   else
      href=PopupURL.href;

   window.open(href, PopupTitle, 'width=497,height=300,scrollbars=yes');
   return false;

}
function resizeIframe(iframe) 
{
    // This function resizes an IFrame object
    // to fit its content.
    // The IFrame tag must have a unique ID attribute.
    var nHeight;
	if (navigator.appName != 'Microsoft Internet Explorer')
	{
		//Non IE
		nHeight = iframe.contentDocument.body.offsetHeight;	
	}
	else
	{
		nHeight = document.frames[iframe.id].document.body.scrollHeight;
	}
    if (nHeight < 20)
    {
        nHeight = 0;
    }
    iframe.height = nHeight;
}
