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 (LeadingZeros33899 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33899(secs) { if (secs < 0) { document.getElementById("cntdwns33899").innerHTML = FinishMessages33899; return; } DisplayStrs33899 = DisplayFormats33899.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33899 = DisplayStrs33899.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33899 = DisplayStrs33899.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33899 = DisplayStrs33899.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33899").innerHTML = DisplayStrs33899; if (CountActives33899) //alert(SetTimeOutPeriods33899); setTimeout("CountBacks33899(" + (secs+CountSteppers33899) + ")", SetTimeOutPeriods33899); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33899)=="undefined") BackColors33899 = ""; if (typeof(ForeColors33899)=="undefined") ForeColors33899= "white"; if (typeof(TargetDates33899)=="undefined") TargetDates33899 = "05/06/2026 10:00:00 PM"; if (typeof(DisplayFormats33899)=="undefined") DisplayFormats33899 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33899)=="undefined") CountActives33899 = true; if (typeof(FinishMessages33899)=="undefined") FinishMessages33899 = ""; if (typeof(CountSteppers33899)!="number") CountSteppers33899 = -1; if (typeof(LeadingZeros33899)=="undefined") LeadingZeros33899 = true; CountSteppers33899 = Math.ceil(CountSteppers33899); if (CountSteppers33899 == 0) CountActives33899 = false; var SetTimeOutPeriods33899 = (Math.abs(CountSteppers33899)-1)*1000 + 990; puti(BackColors33899, ForeColors33899); var dthens33899 = new Date(TargetDates33899); var dnows33899 = new Date("05/04/2026 10:26:50 PM"); if(CountSteppers33899>0) ddiffs33899 = new Date(dnows33899-dthens33899); else ddiffs33899 = new Date(dthens33899-dnows33899); gsecss33899 = Math.floor(ddiffs33899.valueOf()/1000); CountBacks33899(gsecss33899);