// JavaScript Document

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;

// IE5 and other old browsers might allow a window that is
// partially offscreen or wider than the screen.
// (Newer browsers fix this for us)
if (LeftPosition < 0) {
LeftPosition = 0;
}
if (TopPosition < 0) {
TopPosition = 0;
}
											  
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable,toolbar=no,menubar=no'
win = window.open(mypage,myname,settings)
}
