/* registrationCount.js */
/* Counts down the days until registration is done, displays number of days */
/* Creation date: 7/14/03 */


<!-- Hide from old browsers

	var registCntMsg = "Summer Season Registration is starting soon!"
	var curDay = new Date()
	var tMonth = curDay.getMonth()

	function RegistDays() 
	{
		switch (tMonth) 
		{
			case 3: case 4:
			   var tRegist = new Date("May 17, 2004")
			   var curRegist = tRegist.getTime()-curDay.getTime()

			   if (curRegist > 0) 
			   {
					curRegist = Math.ceil(curRegist / (1000 * 60 * 60 * 24))
					registCntMsg = "Registration Begins In "+curRegist+" Days!"
			   }
		break
		}

	return registCntMsg
   }
   
   
   function RegistYthDays() 
	{
		switch (tMonth) 
		{
			case 3: case 4:
			   var tRegist = new Date("May 2, 2004")
			   var curRegist = tRegist.getTime()-curDay.getTime()

			   if (curRegist > 0) 
			   {
					curRegist = Math.ceil(curRegist / (1000 * 60 * 60 * 24))
					registCntMsg = "Registration Ends In "+curRegist+" Days!"
			   }
		break
		}

	return registCntMsg
   }

//-->

/* Implement as below...

<script LANGUAGE="JAVASCRIPT">
<!-- Hide from old browsers
	var registCntMsg = RegistDays()
	document.write("<H3><CENTER>"+registCntMsg+"</CENTER></H3>")
//-->
</script>

OR, alternately, to say Roller Hockey Registration Ends in X Days! do it this way...

<span class="blue">Roller Hockey </span>
	<script LANGUAGE="JAVASCRIPT">
	<!-- Hide from old browsers
		var registCntMsg = RegistDays()
		document.write("<span class=\"blue\">"+registCntMsg+"</span>")
	//-->
	</script>
*/
