var win= null;
function PopUpWindow(mypage,myname,w,h,scroll,resizeable){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
var settings ='height='+h+',';
settings +='width='+w+',';
settings +='top='+wint+',';
settings +='left='+winl+',';
settings +='scrollbars='+scroll+',';
settings +='resizable='+resizeable+',';
win=window.open(mypage,myname,settings);
if (win.opener == null) { // for Nav 2.0x
win.opener = self // this creates and sets a new property
}
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}