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 (LeadingZeros32287 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32287(secs) { if (secs < 0) { document.getElementById("cntdwns32287").innerHTML = FinishMessages32287; return; } DisplayStrs32287 = DisplayFormats32287.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32287 = DisplayStrs32287.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32287 = DisplayStrs32287.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32287 = DisplayStrs32287.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32287").innerHTML = DisplayStrs32287; if (CountActives32287) //alert(SetTimeOutPeriods32287); setTimeout("CountBacks32287(" + (secs+CountSteppers32287) + ")", SetTimeOutPeriods32287); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32287)=="undefined") BackColors32287 = ""; if (typeof(ForeColors32287)=="undefined") ForeColors32287= "white"; if (typeof(TargetDates32287)=="undefined") TargetDates32287 = "07/06/2025 10:00:00 PM"; if (typeof(DisplayFormats32287)=="undefined") DisplayFormats32287 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32287)=="undefined") CountActives32287 = true; if (typeof(FinishMessages32287)=="undefined") FinishMessages32287 = ""; if (typeof(CountSteppers32287)!="number") CountSteppers32287 = -1; if (typeof(LeadingZeros32287)=="undefined") LeadingZeros32287 = true; CountSteppers32287 = Math.ceil(CountSteppers32287); if (CountSteppers32287 == 0) CountActives32287 = false; var SetTimeOutPeriods32287 = (Math.abs(CountSteppers32287)-1)*1000 + 990; puti(BackColors32287, ForeColors32287); var dthens32287 = new Date(TargetDates32287); var dnows32287 = new Date("07/04/2025 7:53:48 AM"); if(CountSteppers32287>0) ddiffs32287 = new Date(dnows32287-dthens32287); else ddiffs32287 = new Date(dthens32287-dnows32287); gsecss32287 = Math.floor(ddiffs32287.valueOf()/1000); CountBacks32287(gsecss32287);