function openWindow(file) {
  leftVal = (screen.width-500) / 2;
  topVal = (screen.height-700) / 2;
  newWindow = window.open(file, 'WinName', 'width=515,height=520,left='+leftVal+',top='+topVal);
}
