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 (LeadingZeros33845 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33845(secs) { if (secs < 0) { document.getElementById("cntdwns33845").innerHTML = FinishMessages33845; return; } DisplayStrs33845 = DisplayFormats33845.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33845 = DisplayStrs33845.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33845 = DisplayStrs33845.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33845 = DisplayStrs33845.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33845").innerHTML = DisplayStrs33845; if (CountActives33845) //alert(SetTimeOutPeriods33845); setTimeout("CountBacks33845(" + (secs+CountSteppers33845) + ")", SetTimeOutPeriods33845); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33845)=="undefined") BackColors33845 = ""; if (typeof(ForeColors33845)=="undefined") ForeColors33845= "white"; if (typeof(TargetDates33845)=="undefined") TargetDates33845 = "10/04/2026 10:00:00 PM"; if (typeof(DisplayFormats33845)=="undefined") DisplayFormats33845 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33845)=="undefined") CountActives33845 = true; if (typeof(FinishMessages33845)=="undefined") FinishMessages33845 = ""; if (typeof(CountSteppers33845)!="number") CountSteppers33845 = -1; if (typeof(LeadingZeros33845)=="undefined") LeadingZeros33845 = true; CountSteppers33845 = Math.ceil(CountSteppers33845); if (CountSteppers33845 == 0) CountActives33845 = false; var SetTimeOutPeriods33845 = (Math.abs(CountSteppers33845)-1)*1000 + 990; puti(BackColors33845, ForeColors33845); var dthens33845 = new Date(TargetDates33845); var dnows33845 = new Date("10/01/2026 10:47:42 PM"); if(CountSteppers33845>0) ddiffs33845 = new Date(dnows33845-dthens33845); else ddiffs33845 = new Date(dthens33845-dnows33845); gsecss33845 = Math.floor(ddiffs33845.valueOf()/1000); CountBacks33845(gsecss33845);