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 (LeadingZeros33789 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33789(secs) { if (secs < 0) { document.getElementById("cntdwns33789").innerHTML = FinishMessages33789; return; } DisplayStrs33789 = DisplayFormats33789.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33789 = DisplayStrs33789.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33789 = DisplayStrs33789.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33789 = DisplayStrs33789.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33789").innerHTML = DisplayStrs33789; if (CountActives33789) //alert(SetTimeOutPeriods33789); setTimeout("CountBacks33789(" + (secs+CountSteppers33789) + ")", SetTimeOutPeriods33789); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33789)=="undefined") BackColors33789 = ""; if (typeof(ForeColors33789)=="undefined") ForeColors33789= "white"; if (typeof(TargetDates33789)=="undefined") TargetDates33789 = "04/05/2026 10:00:00 PM"; if (typeof(DisplayFormats33789)=="undefined") DisplayFormats33789 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33789)=="undefined") CountActives33789 = true; if (typeof(FinishMessages33789)=="undefined") FinishMessages33789 = ""; if (typeof(CountSteppers33789)!="number") CountSteppers33789 = -1; if (typeof(LeadingZeros33789)=="undefined") LeadingZeros33789 = true; CountSteppers33789 = Math.ceil(CountSteppers33789); if (CountSteppers33789 == 0) CountActives33789 = false; var SetTimeOutPeriods33789 = (Math.abs(CountSteppers33789)-1)*1000 + 990; puti(BackColors33789, ForeColors33789); var dthens33789 = new Date(TargetDates33789); var dnows33789 = new Date("04/02/2026 2:31:49 AM"); if(CountSteppers33789>0) ddiffs33789 = new Date(dnows33789-dthens33789); else ddiffs33789 = new Date(dthens33789-dnows33789); gsecss33789 = Math.floor(ddiffs33789.valueOf()/1000); CountBacks33789(gsecss33789);