/* new_win1.js
Last Modified: 02/11/2009-KO
	Increased screen width to 900 and height to 560 to implement
	use when desired via webdatmb to open in a large separate but
	centered window on top of current window.  First use will be
	for In/Out Board with Home button changed to Close Window.
	Will also allow keeping the In/Out Board available on Task
	Bar by returning to Main Page, if desired.  NOTE that In/Out
	Board does NOT use.  Instead using topLocation which creates
	a full-sized window.  The presized separate centered window
	remains an option that is best suited for presenting HTML or
	text that is intended to be reviewed and closed.  KO-04/12/2009.
Prev Modified: 01/21/2009-KO
	Increased screen width to 850
Prev Modified: 04/01/2007-KO
Created on: 07/30/2006-KO
Used to open a new page or document in a separate window.  Assuming
the document being called is HTML and has onBlur=self.close(); in
the <body> tag, the window will be automatically closed anytime the
mouse is clicked outside the new window.  If this is not the case, the
window will have to be closed by user.

The logic automatically centers the new window on the page and is set
to use screen size of (700x300).  It is intended for popup of info
for user in a temporary smaller separate window.

Changed screen size to 780x500 on 04/01/2007-KO.

Found in testing that the onBlur in <body> tag results in any attempt
at scrolling closing the window.   Likewise any for clicking on any
link.  Also the case that for links the new partial windows carries
forward to page called.

As a result, this will be useful only for information screens and not
for pages with links.  If a page that will require scrolling is the
target, that page should not have the onBlur in <body> tag and we may
want to include option to close window at top and/or bottom with
<a href="javascript:self.close();">Close Window</a> to do so.

Will look into hidden tables for links.

// Author: Eric King Url: http://redrival.com/eak/index.shtml
// This script is free to use as long as this info is left in
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
*/

<!-- Begin
var win = null;
var w = 900;
var h = 560;
function NewWindow(mypage,myname){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable=no'
win = window.open(mypage,myname,settings)
}
//  End -->
