/******************************************************************* 
* File    : popwin.js
* Created : 10/01/2001 
* Author  : Darrell Shannon 
* Purpose : Pop up a new window, with parameters, from a href.
* History 
* Date         Version        Description 
* 10-01-2001	1.0		First version.
* 10-11-2001	1.1		Added win.focus() when to prevent previously opened
*                               iterations from getting lost behind other windows.
* 10-28-2001	1.2		Added size variable to control resize window yes or no.
***********************************************************************/ 

var win = null;
function NewWindow(mypage,myname,w,h,scroll,size){
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='+size+''
win = window.open(mypage,myname,settings)
win.focus()
}


