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 (LeadingZeros32008 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32008(secs) { if (secs < 0) { document.getElementById("cntdwns32008").innerHTML = FinishMessages32008; return; } DisplayStrs32008 = DisplayFormats32008.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32008 = DisplayStrs32008.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32008 = DisplayStrs32008.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32008 = DisplayStrs32008.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32008").innerHTML = DisplayStrs32008; if (CountActives32008) //alert(SetTimeOutPeriods32008); setTimeout("CountBacks32008(" + (secs+CountSteppers32008) + ")", SetTimeOutPeriods32008); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32008)=="undefined") BackColors32008 = ""; if (typeof(ForeColors32008)=="undefined") ForeColors32008= "white"; if (typeof(TargetDates32008)=="undefined") TargetDates32008 = "03/28/2025 10:00:00 PM"; if (typeof(DisplayFormats32008)=="undefined") DisplayFormats32008 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32008)=="undefined") CountActives32008 = true; if (typeof(FinishMessages32008)=="undefined") FinishMessages32008 = ""; if (typeof(CountSteppers32008)!="number") CountSteppers32008 = -1; if (typeof(LeadingZeros32008)=="undefined") LeadingZeros32008 = true; CountSteppers32008 = Math.ceil(CountSteppers32008); if (CountSteppers32008 == 0) CountActives32008 = false; var SetTimeOutPeriods32008 = (Math.abs(CountSteppers32008)-1)*1000 + 990; puti(BackColors32008, ForeColors32008); var dthens32008 = new Date(TargetDates32008); var dnows32008 = new Date("03/29/2025 4:24:56 PM"); if(CountSteppers32008>0) ddiffs32008 = new Date(dnows32008-dthens32008); else ddiffs32008 = new Date(dthens32008-dnows32008); gsecss32008 = Math.floor(ddiffs32008.valueOf()/1000); CountBacks32008(gsecss32008);