function popupWindow(myurl,iheight,iwidth) {
	var iMyWidth;
	var iMyHeight;
	var newWindow;
	iMyWidth = (window.screen.width/2) - ((iwidth/2) + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - ((iheight/2) + 50); //half the screen height minus half the new window height (plus title and status bars).
	var win2 = window.open(myurl,"Window2","height="+ iheight +",width="+ iwidth +",left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes");
	win2.focus();
}
