function newWindow(mypage,myname,w,h,features)
{
	var settings;
	if(screen.width)
	{
		w = Math.min(screen.width, w);
		h = Math.min(screen.height, h);
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;

		settings = 'height=' + h + ',';
		settings += 'width=' + w + ',';
		settings += 'top=' + wint + ',';
		settings += 'left=' + winl + ',';
	}
	else
	{
		settings = 'height=' + h + ',';
		settings += 'width=' + w + ',';
	}
	settings += features;
	win = window.open(mypage,myname,settings);
	win.window.focus();
}

if (window != top) top.location.href = location.href;