 total_page + ((total_page == 1) ? ' page':' pages');
			}
		}

		function clear_totals(){
			document.getElementById('total_size_counter').value = 0;
			document.getElementById('total_page_counter').value = 0;
			document.getElementById('total_size_display').value = 0;
			document.getElementById('total_page_display').value = 0;
  
			document.getElementById('view_button').disabled = true;
			document.getElementById('download_button').disabled = true;
		}

                function select_link_documents(){ /