$(document).ready(function()
{
   var refreshId = setInterval(function()
   {
     $('#timeval').load('/headquerry.php');
   }, 5000);

});
