function calcage(secs, num1, num2, addDay, seconds) { if (addDay == 1){ s = ((Math.floor(secs/num1))).toString(); } else{ s = ((Math.floor(secs/num1))%num2).toString(); } if (LeadingZeros32009 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32009(secs) { if (secs < 0) { document.getElementById("cntdwns32009").innerHTML = FinishMessages32009; return; } DisplayStrs32009 = DisplayFormats32009.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32009 = DisplayStrs32009.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32009 = DisplayStrs32009.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32009 = DisplayStrs32009.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32009").innerHTML = DisplayStrs32009; if (CountActives32009) //alert(SetTimeOutPeriods32009); setTimeout("CountBacks32009(" + (secs+CountSteppers32009) + ")", SetTimeOutPeriods32009); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32009)=="undefined") BackColors32009 = ""; if (typeof(ForeColors32009)=="undefined") ForeColors32009= "white"; if (typeof(TargetDates32009)=="undefined") TargetDates32009 = "04/22/2025 11:00:00 PM"; if (typeof(DisplayFormats32009)=="undefined") DisplayFormats32009 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32009)=="undefined") CountActives32009 = true; if (typeof(FinishMessages32009)=="undefined") FinishMessages32009 = ""; if (typeof(CountSteppers32009)!="number") CountSteppers32009 = -1; if (typeof(LeadingZeros32009)=="undefined") LeadingZeros32009 = true; CountSteppers32009 = Math.ceil(CountSteppers32009); if (CountSteppers32009 == 0) CountActives32009 = false; var SetTimeOutPeriods32009 = (Math.abs(CountSteppers32009)-1)*1000 + 990; puti(BackColors32009, ForeColors32009); var dthens32009 = new Date(TargetDates32009); var dnows32009 = new Date("04/19/2025 2:52:04 PM"); if(CountSteppers32009>0) ddiffs32009 = new Date(dnows32009-dthens32009); else ddiffs32009 = new Date(dthens32009-dnows32009); gsecss32009 = Math.floor(ddiffs32009.valueOf()/1000); CountBacks32009(gsecss32009);