function blank(link, width, height, scrollbars)
{
  scrollwidth = scrollbars? 16: 0;
  window.open(link, '', 'width='+(width+scrollwidth)+', height='+height+', left='+(screen.width-width-scrollwidth)/2+', top='+(screen.height-50-height)/2+', titlebar=no, menubar=no, toolbar=no, location=no, status=no, scrollbars='+(scrollbars? 'yes': 'no')+', resizable=yes');
}

function file(name)
{
  blank('/files?name='+name, 640+16, 640+16, false);
}

function flash_fix(id)
{
  if(document.getElementById)
  {
    element = document.getElementById(id);
    element.outerHTML = element.outerHTML;
  }
}
