
/*************************
Site wide functions
*************************/


function OpenWindowRapporter(control,title,width,height)
{
    var elTitle = document.getElementById('windowBoxTitle-hsOrig');
    if (elTitle == null)
      elTitle = document.getElementById('windowBoxTitle');
    var elTable = document.getElementById('WindowContentIFrameTable-hsOrig');
    if (elTable == null)
      elTable = document.getElementById('WindowContentIFrameTable');
    
    elTitle.innerHTML = title;
    elTable.style.width = width + 'px';
    return hs.htmlExpand(control, { 
			contentId: 'WindowContentIFrame', 
			objectType: 'iframe', 
			objectWidth: width, 
			objectHeight: height, 
			objectLoadTime: 'after'} );
}
function OpenAlert(control,text)
{
    var el = document.getElementById('alertBoxContent-hsOrig');
    if (el == null)
      el = document.getElementById('alertBoxContent');
    el.innerHTML = text;
    return hs.htmlExpand(control, 
      	{ contentId: 'WindowAlertIFrame' } );
}
function addStatus(message)
{
if(window.onload)
	{
		window.status = message;
		return true;
	}
}
