var popupWindow;

function newWindow(page, w,h)
{
	var toolbar	= 0;
	var menubar	= 0;
	var location	= 0;
	var status	= 0;
	var scrollbars	= 0;
	var resizable	= 0;
	var directories	= 0;
	
	width=w;
	height=h


	var x = (640 - width)/2;
	var y = (480 - height)/2;

	if (screen)
	{
		y = (screen.availHeight - height)/2;
		x = (screen.availWidth - width)/2;
	}

	var features =
        'width='	+ width +
        ',height='	+ height +
        ',screenX='	+ x +
        ',screenY='	+ y +
        ',left='	+ x +
        ',top='		+ y +
        ',directories='	+ directories +
        ',location='	+ location +
        ',menubar='	+ menubar +
        ',scrollbars='	+ scrollbars +
        ',status='	+ status +
        ',toolbar='	+ toolbar +
        ',resizable='	+ resizable;

	rs=new Date().getTime();
	popupWindow = window.open(page, 'pW'+rs, features);
}
