function get_center_xy(width, height)
{
	wleft = Math.round((parseInt(screen.width) - width) / 2);
	wtop = Math.round((parseInt(screen.height) - height) / 2);

	return new Array(wleft, wtop + document.body.scrollTop); // x, y
}

function new_wnd_center(url, wnd_name, width, height)
{
	wnd_xy = get_center_xy(width, height);
	window.open(url, wnd_name, "resizable=yes,toolbar=no,scrollbars=no,status=yes,location=0,width="+width+",height="+height+",left="+wnd_xy[0]+",top="+wnd_xy[1]);
	//alert(wnd_xy[0] + ':' + wnd_xy[1]);

	return;
}