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 (LeadingZeros33090 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33090(secs) { if (secs < 0) { document.getElementById("cntdwns33090").innerHTML = FinishMessages33090; return; } DisplayStrs33090 = DisplayFormats33090.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33090 = DisplayStrs33090.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33090 = DisplayStrs33090.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33090 = DisplayStrs33090.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33090").innerHTML = DisplayStrs33090; if (CountActives33090) //alert(SetTimeOutPeriods33090); setTimeout("CountBacks33090(" + (secs+CountSteppers33090) + ")", SetTimeOutPeriods33090); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33090)=="undefined") BackColors33090 = ""; if (typeof(ForeColors33090)=="undefined") ForeColors33090= "white"; if (typeof(TargetDates33090)=="undefined") TargetDates33090 = "11/21/2025 10:00:00 PM"; if (typeof(DisplayFormats33090)=="undefined") DisplayFormats33090 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33090)=="undefined") CountActives33090 = true; if (typeof(FinishMessages33090)=="undefined") FinishMessages33090 = ""; if (typeof(CountSteppers33090)!="number") CountSteppers33090 = -1; if (typeof(LeadingZeros33090)=="undefined") LeadingZeros33090 = true; CountSteppers33090 = Math.ceil(CountSteppers33090); if (CountSteppers33090 == 0) CountActives33090 = false; var SetTimeOutPeriods33090 = (Math.abs(CountSteppers33090)-1)*1000 + 990; puti(BackColors33090, ForeColors33090); var dthens33090 = new Date(TargetDates33090); var dnows33090 = new Date("11/19/2025 2:49:28 AM"); if(CountSteppers33090>0) ddiffs33090 = new Date(dnows33090-dthens33090); else ddiffs33090 = new Date(dthens33090-dnows33090); gsecss33090 = Math.floor(ddiffs33090.valueOf()/1000); CountBacks33090(gsecss33090);