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 (LeadingZeros32532 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32532(secs) { if (secs < 0) { document.getElementById("cntdwns32532").innerHTML = FinishMessages32532; return; } DisplayStrs32532 = DisplayFormats32532.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32532 = DisplayStrs32532.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32532 = DisplayStrs32532.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32532 = DisplayStrs32532.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32532").innerHTML = DisplayStrs32532; if (CountActives32532) //alert(SetTimeOutPeriods32532); setTimeout("CountBacks32532(" + (secs+CountSteppers32532) + ")", SetTimeOutPeriods32532); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32532)=="undefined") BackColors32532 = ""; if (typeof(ForeColors32532)=="undefined") ForeColors32532= "white"; if (typeof(TargetDates32532)=="undefined") TargetDates32532 = "07/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32532)=="undefined") DisplayFormats32532 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32532)=="undefined") CountActives32532 = true; if (typeof(FinishMessages32532)=="undefined") FinishMessages32532 = ""; if (typeof(CountSteppers32532)!="number") CountSteppers32532 = -1; if (typeof(LeadingZeros32532)=="undefined") LeadingZeros32532 = true; CountSteppers32532 = Math.ceil(CountSteppers32532); if (CountSteppers32532 == 0) CountActives32532 = false; var SetTimeOutPeriods32532 = (Math.abs(CountSteppers32532)-1)*1000 + 990; puti(BackColors32532, ForeColors32532); var dthens32532 = new Date(TargetDates32532); var dnows32532 = new Date("07/01/2025 9:01:51 PM"); if(CountSteppers32532>0) ddiffs32532 = new Date(dnows32532-dthens32532); else ddiffs32532 = new Date(dthens32532-dnows32532); gsecss32532 = Math.floor(ddiffs32532.valueOf()/1000); CountBacks32532(gsecss32532);