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 (LeadingZeros32357 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32357(secs) { if (secs < 0) { document.getElementById("cntdwns32357").innerHTML = FinishMessages32357; return; } DisplayStrs32357 = DisplayFormats32357.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32357 = DisplayStrs32357.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32357 = DisplayStrs32357.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32357 = DisplayStrs32357.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32357").innerHTML = DisplayStrs32357; if (CountActives32357) //alert(SetTimeOutPeriods32357); setTimeout("CountBacks32357(" + (secs+CountSteppers32357) + ")", SetTimeOutPeriods32357); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32357)=="undefined") BackColors32357 = ""; if (typeof(ForeColors32357)=="undefined") ForeColors32357= "white"; if (typeof(TargetDates32357)=="undefined") TargetDates32357 = "07/26/2025 10:00:00 PM"; if (typeof(DisplayFormats32357)=="undefined") DisplayFormats32357 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32357)=="undefined") CountActives32357 = true; if (typeof(FinishMessages32357)=="undefined") FinishMessages32357 = ""; if (typeof(CountSteppers32357)!="number") CountSteppers32357 = -1; if (typeof(LeadingZeros32357)=="undefined") LeadingZeros32357 = true; CountSteppers32357 = Math.ceil(CountSteppers32357); if (CountSteppers32357 == 0) CountActives32357 = false; var SetTimeOutPeriods32357 = (Math.abs(CountSteppers32357)-1)*1000 + 990; puti(BackColors32357, ForeColors32357); var dthens32357 = new Date(TargetDates32357); var dnows32357 = new Date("07/25/2025 9:05:21 PM"); if(CountSteppers32357>0) ddiffs32357 = new Date(dnows32357-dthens32357); else ddiffs32357 = new Date(dthens32357-dnows32357); gsecss32357 = Math.floor(ddiffs32357.valueOf()/1000); CountBacks32357(gsecss32357);