// JavaScript Document

var Today = new Date();

function tick(){
         //Today.setSeconds(Today.getSeconds() + 1)
		 
		 document.getElementById('clock').innerHTML = 'The current date and time at Assurance Insurance Agency is: ' + Today.toLocaleString();
         
         //document.getElementById('clock').innerHTML = Today.toLocaleString() + ' CST';
         
         //var nextday = new Date(Today.getFullYear(), Today.getMonth(), Today.getDay(), Today.getHours(), Today.getMinutes(), Today.getSeconds(), Today.getMilliseconds());
      
		 //nextday.setDate(Today.getDate() + 1);
         
	 var nextday = new Date(Today.getFullYear(), Today.getMonth(), Today.getDate() + 1);
         while(nextday.getDay() == 0 || nextday.getDay() == 6){
	         nextday.setDate(nextday.getDate() + 1);
         }
         
          
	if( ( ( (Today.getHours() >= 8 && Today.getMinutes() >= 30) || (Today.getHours() > 8  && Today.getHours() <= 12) ) || ( (Today.getHours() >= 13) && (Today.getHours() <= 17) ) ) && (Today.getDay() > 0 && Today.getDay() < 6) ){
	     document.getElementById('stat').innerHTML = '<b><font size=4 color=green><blink>Our office is currently open!</blink></font></b><br/><br/>If our office is closed, please fill out the form above and you will recieve a call the next business day (' + nextday.toLocaleDateString() + ') before 9 AM CST.';
	} else if ((Today.getHours() == 13) && (Today.getDay() > 0 && Today.getDay() < 6)){
	     document.getElementById('stat').innerHTML = '<b><font size=4 color=red>Sorry, our office is currently closed for Lunch.</font></b><br/><br/>If our office is closed, please fill out the form above and you will recieve a call the next business day (' + nextday.toLocaleDateString() + ') before 9 AM CST.';
	} else {
	     document.getElementById('stat').innerHTML = '<b><font color=red>Sorry, our office is currently closed.</font></b><br>If our office is closed, please fill out the form above and you will recieve a call the next business day (' + nextday.toLocaleDateString() + ') before 9 AM CST.';
	}

         //Recursive call, keeps the clock ticking.
         setTimeout('tick();', 1000);
}
<!-- ########## start header --><Script language=javascript>
function getQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  }
}