function openNewWindow(url, w, h)
{
	// open a blank window
	w = (w==null) ? 500 : w;
	h = (h==null) ? 400 : h;
	var aWindow = window.open(url.replace(/&popup=[^&]*/,'')+'&popup=1', '_blank',
	'scrollbars=yes,menubar=yes,resizable=yes,toolbar=no,top=0,left=0,width='+w+',height='+h);
}

