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 (LeadingZeros32142 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32142(secs) { if (secs < 0) { document.getElementById("cntdwns32142").innerHTML = FinishMessages32142; return; } DisplayStrs32142 = DisplayFormats32142.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32142 = DisplayStrs32142.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32142 = DisplayStrs32142.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32142 = DisplayStrs32142.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32142").innerHTML = DisplayStrs32142; if (CountActives32142) //alert(SetTimeOutPeriods32142); setTimeout("CountBacks32142(" + (secs+CountSteppers32142) + ")", SetTimeOutPeriods32142); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32142)=="undefined") BackColors32142 = ""; if (typeof(ForeColors32142)=="undefined") ForeColors32142= "white"; if (typeof(TargetDates32142)=="undefined") TargetDates32142 = "04/30/2025 10:00:00 PM"; if (typeof(DisplayFormats32142)=="undefined") DisplayFormats32142 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32142)=="undefined") CountActives32142 = true; if (typeof(FinishMessages32142)=="undefined") FinishMessages32142 = ""; if (typeof(CountSteppers32142)!="number") CountSteppers32142 = -1; if (typeof(LeadingZeros32142)=="undefined") LeadingZeros32142 = true; CountSteppers32142 = Math.ceil(CountSteppers32142); if (CountSteppers32142 == 0) CountActives32142 = false; var SetTimeOutPeriods32142 = (Math.abs(CountSteppers32142)-1)*1000 + 990; puti(BackColors32142, ForeColors32142); var dthens32142 = new Date(TargetDates32142); var dnows32142 = new Date("05/10/2025 12:09:23 AM"); if(CountSteppers32142>0) ddiffs32142 = new Date(dnows32142-dthens32142); else ddiffs32142 = new Date(dthens32142-dnows32142); gsecss32142 = Math.floor(ddiffs32142.valueOf()/1000); CountBacks32142(gsecss32142);