function PopUpWindow( url, w, h)
{
	var handle, left, top
	
	// calulate the where to put the window to make it centred
	left = (screen.width - w) / 2;
	top = (screen.height - h) / 2;

	
	// assign handle
	handle = window.open( url, "", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,copyhistory=0,width=" +w +",height=" +h +",left=" +left +",top=" +top);
	
	// open the actual doc window
//	handle.document.open();
	
	// make this window the current active window
	if( parseInt(navigator.appVersion) >= 4)
		handle.window.focus();
}

