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 (LeadingZeros31492 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31492(secs) { if (secs < 0) { document.getElementById("cntdwns31492").innerHTML = FinishMessages31492; return; } DisplayStrs31492 = DisplayFormats31492.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31492 = DisplayStrs31492.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31492 = DisplayStrs31492.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31492 = DisplayStrs31492.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31492").innerHTML = DisplayStrs31492; if (CountActives31492) //alert(SetTimeOutPeriods31492); setTimeout("CountBacks31492(" + (secs+CountSteppers31492) + ")", SetTimeOutPeriods31492); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31492)=="undefined") BackColors31492 = ""; if (typeof(ForeColors31492)=="undefined") ForeColors31492= "white"; if (typeof(TargetDates31492)=="undefined") TargetDates31492 = "02/25/2025 10:00:00 PM"; if (typeof(DisplayFormats31492)=="undefined") DisplayFormats31492 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31492)=="undefined") CountActives31492 = true; if (typeof(FinishMessages31492)=="undefined") FinishMessages31492 = ""; if (typeof(CountSteppers31492)!="number") CountSteppers31492 = -1; if (typeof(LeadingZeros31492)=="undefined") LeadingZeros31492 = true; CountSteppers31492 = Math.ceil(CountSteppers31492); if (CountSteppers31492 == 0) CountActives31492 = false; var SetTimeOutPeriods31492 = (Math.abs(CountSteppers31492)-1)*1000 + 990; puti(BackColors31492, ForeColors31492); var dthens31492 = new Date(TargetDates31492); var dnows31492 = new Date("02/22/2025 9:39:21 PM"); if(CountSteppers31492>0) ddiffs31492 = new Date(dnows31492-dthens31492); else ddiffs31492 = new Date(dthens31492-dnows31492); gsecss31492 = Math.floor(ddiffs31492.valueOf()/1000); CountBacks31492(gsecss31492);