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 (LeadingZeros32333 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32333(secs) { if (secs < 0) { document.getElementById("cntdwns32333").innerHTML = FinishMessages32333; return; } DisplayStrs32333 = DisplayFormats32333.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32333 = DisplayStrs32333.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32333 = DisplayStrs32333.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32333 = DisplayStrs32333.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32333").innerHTML = DisplayStrs32333; if (CountActives32333) //alert(SetTimeOutPeriods32333); setTimeout("CountBacks32333(" + (secs+CountSteppers32333) + ")", SetTimeOutPeriods32333); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32333)=="undefined") BackColors32333 = ""; if (typeof(ForeColors32333)=="undefined") ForeColors32333= "white"; if (typeof(TargetDates32333)=="undefined") TargetDates32333 = "05/15/2025 10:00:00 PM"; if (typeof(DisplayFormats32333)=="undefined") DisplayFormats32333 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32333)=="undefined") CountActives32333 = true; if (typeof(FinishMessages32333)=="undefined") FinishMessages32333 = ""; if (typeof(CountSteppers32333)!="number") CountSteppers32333 = -1; if (typeof(LeadingZeros32333)=="undefined") LeadingZeros32333 = true; CountSteppers32333 = Math.ceil(CountSteppers32333); if (CountSteppers32333 == 0) CountActives32333 = false; var SetTimeOutPeriods32333 = (Math.abs(CountSteppers32333)-1)*1000 + 990; puti(BackColors32333, ForeColors32333); var dthens32333 = new Date(TargetDates32333); var dnows32333 = new Date("05/13/2025 12:00:18 PM"); if(CountSteppers32333>0) ddiffs32333 = new Date(dnows32333-dthens32333); else ddiffs32333 = new Date(dthens32333-dnows32333); gsecss32333 = Math.floor(ddiffs32333.valueOf()/1000); CountBacks32333(gsecss32333);