function NewWindow(mypage, myname, w, h, props) {

	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+','+props
	win = window.open(mypage, myname, winprops)
	
	if (parseInt(navigator.appVersion) >= 4) { 
		win.window.focus(); 
	}
	
}

function center_page() {
	
	iWidth 	= document.body.clientWidth;
	iHeight = document.body.clientHeight;
	
	if (iWidth == 0) {
		iWidth = 200;
	}
	
	if (iHeight == 0) {
		iHeight = 200;
	}
	
	iWidth 	= screen.width - iWidth;
	iHeight = screen.height - iHeight;
	
	window.moveTo(iWidth / 2, iHeight / 2);
	self.focus();
	
}

function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}