function newWin(width, height, url, title, bCentered, x, y, bScrollbars)
{
	
	//if(bScrollbars) scroll = 'yes';
	//else scroll = 'yes';

	//var scroll = 
		

	var strX = x.toString();
	var strY = y.toString();

	if (bCentered)
	{
		strY = (screen.availHeight/2 - height/2).toString();
		strX = (screen.availWidth/2 - width/2).toString();
	}
	
	var options = "width=" + width + 
		", height=" + height + 
		", left=" + strX + 
		", top=" + strY + 
		", screenX=" + strX + 
		", screenY=" + strY + 
		", toolbar=no,scrollbars=yes,menubar=no,resizable=yes,location=no,status=no";

	// + ((bScrollbars) ? "yes" : "no");



	var win = window.open(url, title, options);

	win.focus();
	return win;
}
