function confirmImageDelete(id) { 
  if (confirm("Are you sure you want to delete the Image?")) { 
    window.location = 'action.php?view=images&action=delete&id=' + id; 
    return true; 
  } else { 
    return false; 
  } 
}
function confirmPDFDelete(id) { 
  if (confirm("Are you sure you want to delete this PDF?")) { 
    window.location = 'action.php?view=pdfs&action=delete&id=' + id; 
    return true; 
  } else { 
    return false; 
  } 
}
function confirmFileDelete(id) { 
  if (confirm("Are you sure you want to delete this file?")) { 
    window.location = 'action.php?view=files&action=delete&id=' + id; 
    return true; 
  } else { 
    return false; 
  } 
}
function FileDownload(userFile,fileID) { 
    
    window.location = 'action.php?view=files&action=download&userFile=' + userFile + '&id=' + fileID; 
   
}