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 (LeadingZeros32132 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32132(secs) { if (secs < 0) { document.getElementById("cntdwns32132").innerHTML = FinishMessages32132; return; } DisplayStrs32132 = DisplayFormats32132.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32132 = DisplayStrs32132.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32132 = DisplayStrs32132.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32132 = DisplayStrs32132.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32132").innerHTML = DisplayStrs32132; if (CountActives32132) //alert(SetTimeOutPeriods32132); setTimeout("CountBacks32132(" + (secs+CountSteppers32132) + ")", SetTimeOutPeriods32132); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32132)=="undefined") BackColors32132 = ""; if (typeof(ForeColors32132)=="undefined") ForeColors32132= "white"; if (typeof(TargetDates32132)=="undefined") TargetDates32132 = "04/24/2025 10:00:00 PM"; if (typeof(DisplayFormats32132)=="undefined") DisplayFormats32132 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32132)=="undefined") CountActives32132 = true; if (typeof(FinishMessages32132)=="undefined") FinishMessages32132 = ""; if (typeof(CountSteppers32132)!="number") CountSteppers32132 = -1; if (typeof(LeadingZeros32132)=="undefined") LeadingZeros32132 = true; CountSteppers32132 = Math.ceil(CountSteppers32132); if (CountSteppers32132 == 0) CountActives32132 = false; var SetTimeOutPeriods32132 = (Math.abs(CountSteppers32132)-1)*1000 + 990; puti(BackColors32132, ForeColors32132); var dthens32132 = new Date(TargetDates32132); var dnows32132 = new Date("04/22/2025 5:18:21 PM"); if(CountSteppers32132>0) ddiffs32132 = new Date(dnows32132-dthens32132); else ddiffs32132 = new Date(dthens32132-dnows32132); gsecss32132 = Math.floor(ddiffs32132.valueOf()/1000); CountBacks32132(gsecss32132);