Changing the paging script to accept user-inputted start and end dates