function openDialogWin(urlP,winName,w,h){
  isNetscape=navigator.appName.indexOf('Netscape')>=0;
  isExplorer=navigator.appName.indexOf('Explorer')>=0;
  positionCode='';
  sw  = screen.width;
  sh  = screen.height;
  wbx = Math.round(sw/2-w/2)-10;
  wby = Math.round(sh/2-h/2)-10;
  if(isExplorer) positionCode='left='+wbx+',top='+wby+',';
  if(isNetscape) positionCode='screenX='+wbx+',screenY='+wby+',';
  newWindow=window.open(urlP,winName,'width='+w+',height='+h+','+positionCode+'toolbar=0,scrollbars=1,resizable=0');
  newWindow.focus();
}

