function showIt(showID) 
{ 
	document.getElementById(showID).style.display = ''; 
} 

function hideIt(hideID)
{
	document.getElementById(hideID).style.display = 'none'; 
}
		
function showHideIt(theID)
{ 
	if( document.getElementById(theID).style.display=='none' )
	{ 
		document.getElementById(theID).style.display = ''; 
	}
	else
	{ 
		document.getElementById(theID).style.display = 'none'; 
	} 
}

/** Opens up a SENS item by unique id */
function viewSENSItem(id)
{
	if (!id || id=="" || id=="null")
		alert("The detail of this item can't be viewed (No ID)");
	var sw = window.open('../../findata/sens/_pu_shownewsitem.jsp?id='+id,'news'+id,'width=760,height=500,scrollbars,resizable');
	sw.focus();
}

/** 
 * Open a pop-up window with SENS that corresponds to the selected company.
*/
function viewSENSPopup(company)
{
	var u = '../../listedcompanies/announcements/_pu_admin_viewsens.jsp';
	if (company) u += ('?alphaCode=' + company);
	var w = window.open(u,'sensQuickView','width=280,height=550,resizable,scrollbars');
	w.focus();
}