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 (LeadingZeros32098 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32098(secs) { if (secs < 0) { document.getElementById("cntdwns32098").innerHTML = FinishMessages32098; return; } DisplayStrs32098 = DisplayFormats32098.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32098 = DisplayStrs32098.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32098 = DisplayStrs32098.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32098 = DisplayStrs32098.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32098").innerHTML = DisplayStrs32098; if (CountActives32098) //alert(SetTimeOutPeriods32098); setTimeout("CountBacks32098(" + (secs+CountSteppers32098) + ")", SetTimeOutPeriods32098); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32098)=="undefined") BackColors32098 = ""; if (typeof(ForeColors32098)=="undefined") ForeColors32098= "white"; if (typeof(TargetDates32098)=="undefined") TargetDates32098 = "04/19/2025 10:00:00 PM"; if (typeof(DisplayFormats32098)=="undefined") DisplayFormats32098 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32098)=="undefined") CountActives32098 = true; if (typeof(FinishMessages32098)=="undefined") FinishMessages32098 = ""; if (typeof(CountSteppers32098)!="number") CountSteppers32098 = -1; if (typeof(LeadingZeros32098)=="undefined") LeadingZeros32098 = true; CountSteppers32098 = Math.ceil(CountSteppers32098); if (CountSteppers32098 == 0) CountActives32098 = false; var SetTimeOutPeriods32098 = (Math.abs(CountSteppers32098)-1)*1000 + 990; puti(BackColors32098, ForeColors32098); var dthens32098 = new Date(TargetDates32098); var dnows32098 = new Date("04/19/2025 2:08:36 AM"); if(CountSteppers32098>0) ddiffs32098 = new Date(dnows32098-dthens32098); else ddiffs32098 = new Date(dthens32098-dnows32098); gsecss32098 = Math.floor(ddiffs32098.valueOf()/1000); CountBacks32098(gsecss32098);