// pop up window
function popupwindow(fileloc, winname, winheight, winwidth, winscroll, winmenu, wintool, winlocation, winsize, winstatus, winfull) {
  //variables format = filename, window name, window width, window height
  //true (1) or false (0) values = scrollbars, menubar, toolbar, url box, resizable, status bar, fullscreen
  windowbits = "height=" + winheight + ",width=" + winwidth + ",scrollbars=" + winscroll + ",menubar=" + winmenu + ",toolbar=" + wintool + ",location=" + winlocation + ",resizable=" + winsize + ",status=" + winstatus + ",fullscreen=" + winfull + ",channelmode=0,dependent=0,directories=0"
  var newwindow = window.open(fileloc,winname,windowbits)
  newwindow.focus()
}
