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 (LeadingZeros32492 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32492(secs) { if (secs < 0) { document.getElementById("cntdwns32492").innerHTML = FinishMessages32492; return; } DisplayStrs32492 = DisplayFormats32492.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32492 = DisplayStrs32492.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32492 = DisplayStrs32492.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32492 = DisplayStrs32492.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32492").innerHTML = DisplayStrs32492; if (CountActives32492) //alert(SetTimeOutPeriods32492); setTimeout("CountBacks32492(" + (secs+CountSteppers32492) + ")", SetTimeOutPeriods32492); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32492)=="undefined") BackColors32492 = ""; if (typeof(ForeColors32492)=="undefined") ForeColors32492= "white"; if (typeof(TargetDates32492)=="undefined") TargetDates32492 = "06/24/2025 10:00:00 PM"; if (typeof(DisplayFormats32492)=="undefined") DisplayFormats32492 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32492)=="undefined") CountActives32492 = true; if (typeof(FinishMessages32492)=="undefined") FinishMessages32492 = ""; if (typeof(CountSteppers32492)!="number") CountSteppers32492 = -1; if (typeof(LeadingZeros32492)=="undefined") LeadingZeros32492 = true; CountSteppers32492 = Math.ceil(CountSteppers32492); if (CountSteppers32492 == 0) CountActives32492 = false; var SetTimeOutPeriods32492 = (Math.abs(CountSteppers32492)-1)*1000 + 990; puti(BackColors32492, ForeColors32492); var dthens32492 = new Date(TargetDates32492); var dnows32492 = new Date("06/21/2025 1:09:08 PM"); if(CountSteppers32492>0) ddiffs32492 = new Date(dnows32492-dthens32492); else ddiffs32492 = new Date(dthens32492-dnows32492); gsecss32492 = Math.floor(ddiffs32492.valueOf()/1000); CountBacks32492(gsecss32492);