Hi,

I use this small script to auto change the shift (or crew) that is on duty on the front of a website. This is in the header:

Code:
<script language="JavaScript">
	var days;
	var difference;
	var shift;
	ADay = new Date("March,2 2003");
	today = new Date();
	difference = today-ADay;
	days = Math.floor(difference/(1000*60*60*24));
	diff = days % 3;
	if(diff==0)
		shift=" 'B' ";
	else if(diff==1)
		shift=" 'C' ";
	else shift=" 'A' ";
	</script>
<script language="javascript" type="text/javascript">
<!--
var mon = new Array("January","February","March","April","May","June","July","August","September","October","November","December"); 
var day = new Date; 
var yr = day.getYear();

if(yr < 2000) 
{
	yr = yr + 1900; 
}

var sho = "<p> " + mon[day.getMonth()] + "&nbsp;" + day.getDate() + ",&nbsp;" + yr + "</b></p>"; // change formatting as required
//-->
</script>
and this is at the point in the site:

Code:
<script language="JavaScript">
	var days;
	var difference;
	var shift;
	ADay = new Date("March,2 2003");
	today = new Date();
	difference = today-ADay;
	days = Math.floor(difference/(1000*60*60*24));
	diff = days % 3;
	if(diff==0)
		shift=" 'B' ";
	else if(diff==1)
		shift=" 'C' ";
	else shift=" 'A' ";
	</script>
the script changes the crew (or makes the shift change time) at midnight. how can i change that to the actual time that the shift changes ?

here is the site (script is over on the left side): http://www.jvfd.org

thanks