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 (LeadingZeros33021 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33021(secs) { if (secs < 0) { document.getElementById("cntdwns33021").innerHTML = FinishMessages33021; return; } DisplayStrs33021 = DisplayFormats33021.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33021 = DisplayStrs33021.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33021 = DisplayStrs33021.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33021 = DisplayStrs33021.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33021").innerHTML = DisplayStrs33021; if (CountActives33021) //alert(SetTimeOutPeriods33021); setTimeout("CountBacks33021(" + (secs+CountSteppers33021) + ")", SetTimeOutPeriods33021); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33021)=="undefined") BackColors33021 = ""; if (typeof(ForeColors33021)=="undefined") ForeColors33021= "white"; if (typeof(TargetDates33021)=="undefined") TargetDates33021 = "11/05/2025 10:00:00 PM"; if (typeof(DisplayFormats33021)=="undefined") DisplayFormats33021 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33021)=="undefined") CountActives33021 = true; if (typeof(FinishMessages33021)=="undefined") FinishMessages33021 = ""; if (typeof(CountSteppers33021)!="number") CountSteppers33021 = -1; if (typeof(LeadingZeros33021)=="undefined") LeadingZeros33021 = true; CountSteppers33021 = Math.ceil(CountSteppers33021); if (CountSteppers33021 == 0) CountActives33021 = false; var SetTimeOutPeriods33021 = (Math.abs(CountSteppers33021)-1)*1000 + 990; puti(BackColors33021, ForeColors33021); var dthens33021 = new Date(TargetDates33021); var dnows33021 = new Date("11/03/2025 6:02:39 PM"); if(CountSteppers33021>0) ddiffs33021 = new Date(dnows33021-dthens33021); else ddiffs33021 = new Date(dthens33021-dnows33021); gsecss33021 = Math.floor(ddiffs33021.valueOf()/1000); CountBacks33021(gsecss33021);