function new_window(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+',noresizable'	
							
	if (typeof(win)!='undefined')
	{	
	  win.close();
	  win = window.open(mypage, myname, winprops);  			
	  win.creator = self;				  
	  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }	
    return win;
  }
  else
  {
    win = window.open(mypage, myname, winprops);  			
	  win.creator = self;				  
	  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }	
    return win;  
  }		         	  	  
}