function downloadFile(url) {

  // If URL has been provided change current document location to it
  if (url) {
    self.location.href=url;
  }
  return false;
}


