function smallWindow(myurl,iheight,iwidth) {
	var iMyWidth;
	var iMyHeight;
	var newWindow;
	if (!win2 || win2.closed){
		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 + ",scrollbars=yes, locationbar=yes, status=yes");
		win2.focus();
	}else{
    	win2.focus()
	}
}
