
function openNewsWinHtml(target)
{
	var width=600;
	var height=450;
	var properties = "status=no,toolbar=no,location=no,menubar=no,directories=no,resizable=no,scrollbars=yes,width=" + width + ",height=" + height + winCenter(width,height);
	openWin('news/' + target,properties);
}

function openNewsWinPdf(target)
{
	var width=600;
	var height=450;
	var properties = "status=no,toolbar=no,location=no,menubar=no,directories=no,resizable=yes,scrollbars=yes,width=" + width + ",height=" + height + winCenter(width,height);
	openWin('news/' + target,properties);
}

function openWin(target,properties)
{
	try
	{
		var win = window.open(target,'_blank',properties);
		if (parseInt(navigator.appVersion) >= 4) 
			win.window.focus(); 
		return win;
	}
	catch(ex)
	{}
}

var cascade = 0;
function winCenter(width,height)
{
	try
	{
		var left = Math.floor( (screen.width - width) / 2) + cascade;
		var top = Math.floor( (screen.height - height) / 2) + cascade;
		retval = ",top=" + top + ",left=" + left;
	}
	catch(ex)
	{}

	if(cascade < 50)
		cascade += 10;
	else
		cascade = 0;

	return retval;
}