I'm working on modifying a countdown script that i have downloaded.

Using Coldfusion, I pull a date from a database and add 3 minutes to it. The script is supposed to count down 3 minutes and stop. For some reason when the starttime in the script and the endtime in the script are different days, the countdown works, when they are the same day it doesn't display. Any ideas for a fix? I haven't done alot with javascript so i'm sure this is pretty basic, but I just can't seem to crack it.

Thanks for your help.

You can also see the page at
http://www.bstreetlounge.com/ffl/tsncountdownscript.cfm

Code:
<cfif isDefined("Draft")>
 <cfquery name="SetValue" datasource="#ffldsn#">
  Update ffl_prop
   set Propvalue = '#Dateformat(now(),"mm/dd/yyyy")# #Timeformat(now(),"HH:mm:ss")#'
  Where
   PropName = 'StartDraftTime' and leagueid = 5
 </cfquery>
</cfif>

<cfquery name="GetDraftTime" datasource="#ffldsn#">
 Select *
 from ffl_prop
 where leagueid = 5
</cfquery>
<!--- <cfdump var="#GetDraftTime#"> --->
<html>
<head>
 <title>Equipment Maintenance - Add</title>
<cfset NewDateVal = DateAdd('n',3,GetDraftTime.propvalue)>
<cfset YearVal = Year(NewDateVal)>
<cfset MonthVal = Month(NewDateVal)>
<cfset dayVal = Day(NewDateVal)>
<cfset minval = minute(NewDateVal)>
<cfset HourVal = Hour(NewDateVal)>
<!--- <cfdump var="#NewDateVal#">
 var yr=<cfoutput>#yearval#</cfoutput>;<Br>
var mo=<cfoutput>#Monthval#</cfoutput>;<br>
var da=<cfoutput>#dayval#</cfoutput>;<br>
var ho=<cfoutput>20</cfoutput>;<br>
var mi=<cfoutput>#minval#</cfoutput>;<br>  --->
<script>
var yr=2003;
var mo=8;
var da=19;
var ho=20;
var mi=1;
function countdown()
{
   var today = new Date();
   var todayy = today.getYear();
   if(todayy < 1000)
   {
	  todayy += 1900;
   }
   var todaym = today.getMonth();
   var todayd = today.getDate();
   var todayh = today.getHours();
   var todaymin = today.getMinutes();
   var todaysec = today.getSeconds();
   var todaystring = todaym+"/"+todayd+"/"+todayy+" "+todayh+":"+todaymin+":"+todaysec;
   futurestring = (mo-1)+"/"+da+"/"+yr+" "+ho+":"+mi+":"+"00";
   dd = Date.parse(futurestring)-Date.parse(todaystring);
   dday = Math.floor(dd/(60*60*1000*24)*1);
   dhour = Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1);
   dmin = Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1);
   dsec = Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1);
   if(document.getElementById)
   {
	  //if on day of occasion
	  if(todayy == yr && todaym == (mo-1) && todayd == da)
	  {
		 // need to handle this!!
		 return;
	  }
	  //else, if not yet
	  else
	  {
		 var countdownDiv = document.getElementById("countdown");
		 countdownDiv.innerHTML = "<font color=#990000><b>" + dday + "</b> days</font> <b> " + dhour + "</b> h <b>" + dmin + "</b> m <b>" + dsec + "</b> s "; 
		 setTimeout("countdown()",1000)
	  }
   }
}
if(document.getElementById)
{
   document.write("");
   document.write("<div id=countdown></div>");
   document.write("<br>");
   countdown();
}
else
{
   document.write("");
   document.write("");
   document.write("<br>");
}
</script>
</head>
<body onload="countdown();">
<form action="tsncountdownscript.cfm" method="post">
 <input type="submit" name="Draft" value="Submit">
</form>
</body>
</html>