<!--

/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com

<a href="http://wsabstract.com" onclick="NewWindow(this.href,'name','400','400','yes');return false">Website Abstraction</a>
where the two numbers (400) denote the dimensions of the window, and the "yes", whether this window will be scrollable or not
(value of "no" disables scrolling).

It is possible to configure the popup window beyond simply its dimensions and resizability, so as to contain default
window features such as the Tool or Directory bar. To do so, concat one or more of the below to the end of
variable "settings", inside code of Step 1:

directories
location
menubar
resizable
status
toolbar
For example, to give the window a location bar, variable "settings" should look like this:

settings =
'height='+h+',width='+w+',top='+TopPosition+',
left='+LeftPosition+',scrollbars='+scroll+',resizable, location'

*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
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='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

//-->