function newWin(page,winName,w,h,scrollb,resize) { 
var win=null; 
centerWidth = (screen.width) ? (screen.width-w)/2 : 0; 
centerHeight = (screen.height) ? (screen.height-h)/2 : 0; 
config = 
'height='+h+',width='+w+',top='+centerHeight+',left='+centerWidth+',scrollbars='+scrollb+',resizable='+resize+'' 
win = window.open(page,winName,config); 
} 

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl  +',scrollbars='+scroll+',no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
