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 (LeadingZeros31692 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31692(secs) { if (secs < 0) { document.getElementById("cntdwns31692").innerHTML = FinishMessages31692; return; } DisplayStrs31692 = DisplayFormats31692.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31692 = DisplayStrs31692.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31692 = DisplayStrs31692.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31692 = DisplayStrs31692.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31692").innerHTML = DisplayStrs31692; if (CountActives31692) //alert(SetTimeOutPeriods31692); setTimeout("CountBacks31692(" + (secs+CountSteppers31692) + ")", SetTimeOutPeriods31692); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31692)=="undefined") BackColors31692 = ""; if (typeof(ForeColors31692)=="undefined") ForeColors31692= "white"; if (typeof(TargetDates31692)=="undefined") TargetDates31692 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31692)=="undefined") DisplayFormats31692 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31692)=="undefined") CountActives31692 = true; if (typeof(FinishMessages31692)=="undefined") FinishMessages31692 = ""; if (typeof(CountSteppers31692)!="number") CountSteppers31692 = -1; if (typeof(LeadingZeros31692)=="undefined") LeadingZeros31692 = true; CountSteppers31692 = Math.ceil(CountSteppers31692); if (CountSteppers31692 == 0) CountActives31692 = false; var SetTimeOutPeriods31692 = (Math.abs(CountSteppers31692)-1)*1000 + 990; puti(BackColors31692, ForeColors31692); var dthens31692 = new Date(TargetDates31692); var dnows31692 = new Date("02/22/2025 9:29:47 PM"); if(CountSteppers31692>0) ddiffs31692 = new Date(dnows31692-dthens31692); else ddiffs31692 = new Date(dthens31692-dnows31692); gsecss31692 = Math.floor(ddiffs31692.valueOf()/1000); CountBacks31692(gsecss31692);