Run script between certain time

Run script between certain time

Hi.

I want to run a script at a certain time.
The page is on a big screen all day and the page is up on the screen all the time.
Between 7:00 and 17:00 I want the page to update, but I don't want the page to update outside the time.
Here is the script:
<script>
     $(document).ready(function() {
         $("#news").load("news.php");
       var refreshId = setInterval(function() {
          $("#news").load('news.php');
       }, 20000);
    });
    </script>

Can anyone help me with this or point me in the right direction?