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 (LeadingZeros32415 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32415(secs) { if (secs < 0) { document.getElementById("cntdwns32415").innerHTML = FinishMessages32415; return; } DisplayStrs32415 = DisplayFormats32415.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32415 = DisplayStrs32415.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32415 = DisplayStrs32415.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32415 = DisplayStrs32415.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32415").innerHTML = DisplayStrs32415; if (CountActives32415) //alert(SetTimeOutPeriods32415); setTimeout("CountBacks32415(" + (secs+CountSteppers32415) + ")", SetTimeOutPeriods32415); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32415)=="undefined") BackColors32415 = ""; if (typeof(ForeColors32415)=="undefined") ForeColors32415= "white"; if (typeof(TargetDates32415)=="undefined") TargetDates32415 = "06/28/2025 10:00:00 PM"; if (typeof(DisplayFormats32415)=="undefined") DisplayFormats32415 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32415)=="undefined") CountActives32415 = true; if (typeof(FinishMessages32415)=="undefined") FinishMessages32415 = ""; if (typeof(CountSteppers32415)!="number") CountSteppers32415 = -1; if (typeof(LeadingZeros32415)=="undefined") LeadingZeros32415 = true; CountSteppers32415 = Math.ceil(CountSteppers32415); if (CountSteppers32415 == 0) CountActives32415 = false; var SetTimeOutPeriods32415 = (Math.abs(CountSteppers32415)-1)*1000 + 990; puti(BackColors32415, ForeColors32415); var dthens32415 = new Date(TargetDates32415); var dnows32415 = new Date("06/26/2025 7:10:50 AM"); if(CountSteppers32415>0) ddiffs32415 = new Date(dnows32415-dthens32415); else ddiffs32415 = new Date(dthens32415-dnows32415); gsecss32415 = Math.floor(ddiffs32415.valueOf()/1000); CountBacks32415(gsecss32415);