<!-- Script for pop up windows -->
function newWindowL(wpdViewLocation) {

  leftPos=0
  if(screen) {
    leftPos = (screen.width-640)/2
  }

  topPos=0
  if(screen) {
    topPos = (screen.height-470)/2
  }

  var win=wpdViewLocation
  wpdwin = open(win, "wpdview", "left="+leftPos+",top="+topPos+",titlebar=0,directories=0,menubar=0,scrollbars=0,resizable=0,status=0,height=470,width=640,innerHeight=470,innerWidth=640")
}

function resizeWindowL(wpdViewLocation) {
  var win=wpdViewLocation
  resizeTo(650,551);
  open(win, "wpdview")
}

function newWindowP(wpdViewLocation) {

  leftPosP=0
  if(screen) {
    leftPosP = (screen.width-640)/2
  }

  topPosP=0
  if(screen) {
    topPosP = (screen.height-670)/2
  }

  var win=wpdViewLocation
  wpdwin = open(win, "wpdview", "left="+leftPosP+",top="+topPosP+",titlebar=0,directories=0,menubar=0,scrollbars=0,resizable=0,status=1,height=670,width=640,innerHeight=670,innerWidth=640")
}

function resizeWindowP(wpdViewLocation) {
  var win=wpdViewLocation
  resizeTo(650,746);
  open(win, "wpdview")
}


