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 (LeadingZeros31933 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31933(secs) { if (secs < 0) { document.getElementById("cntdwns31933").innerHTML = FinishMessages31933; return; } DisplayStrs31933 = DisplayFormats31933.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31933 = DisplayStrs31933.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31933 = DisplayStrs31933.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31933 = DisplayStrs31933.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31933").innerHTML = DisplayStrs31933; if (CountActives31933) //alert(SetTimeOutPeriods31933); setTimeout("CountBacks31933(" + (secs+CountSteppers31933) + ")", SetTimeOutPeriods31933); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31933)=="undefined") BackColors31933 = ""; if (typeof(ForeColors31933)=="undefined") ForeColors31933= "white"; if (typeof(TargetDates31933)=="undefined") TargetDates31933 = "03/02/2025 10:00:00 PM"; if (typeof(DisplayFormats31933)=="undefined") DisplayFormats31933 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31933)=="undefined") CountActives31933 = true; if (typeof(FinishMessages31933)=="undefined") FinishMessages31933 = ""; if (typeof(CountSteppers31933)!="number") CountSteppers31933 = -1; if (typeof(LeadingZeros31933)=="undefined") LeadingZeros31933 = true; CountSteppers31933 = Math.ceil(CountSteppers31933); if (CountSteppers31933 == 0) CountActives31933 = false; var SetTimeOutPeriods31933 = (Math.abs(CountSteppers31933)-1)*1000 + 990; puti(BackColors31933, ForeColors31933); var dthens31933 = new Date(TargetDates31933); var dnows31933 = new Date("02/28/2025 11:01:38 AM"); if(CountSteppers31933>0) ddiffs31933 = new Date(dnows31933-dthens31933); else ddiffs31933 = new Date(dthens31933-dnows31933); gsecss31933 = Math.floor(ddiffs31933.valueOf()/1000); CountBacks31933(gsecss31933);