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 (LeadingZeros33256 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33256(secs) { if (secs < 0) { document.getElementById("cntdwns33256").innerHTML = FinishMessages33256; return; } DisplayStrs33256 = DisplayFormats33256.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33256 = DisplayStrs33256.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33256 = DisplayStrs33256.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33256 = DisplayStrs33256.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33256").innerHTML = DisplayStrs33256; if (CountActives33256) //alert(SetTimeOutPeriods33256); setTimeout("CountBacks33256(" + (secs+CountSteppers33256) + ")", SetTimeOutPeriods33256); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33256)=="undefined") BackColors33256 = ""; if (typeof(ForeColors33256)=="undefined") ForeColors33256= "white"; if (typeof(TargetDates33256)=="undefined") TargetDates33256 = "01/11/2026 10:00:00 PM"; if (typeof(DisplayFormats33256)=="undefined") DisplayFormats33256 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33256)=="undefined") CountActives33256 = true; if (typeof(FinishMessages33256)=="undefined") FinishMessages33256 = ""; if (typeof(CountSteppers33256)!="number") CountSteppers33256 = -1; if (typeof(LeadingZeros33256)=="undefined") LeadingZeros33256 = true; CountSteppers33256 = Math.ceil(CountSteppers33256); if (CountSteppers33256 == 0) CountActives33256 = false; var SetTimeOutPeriods33256 = (Math.abs(CountSteppers33256)-1)*1000 + 990; puti(BackColors33256, ForeColors33256); var dthens33256 = new Date(TargetDates33256); var dnows33256 = new Date("01/09/2026 8:26:57 AM"); if(CountSteppers33256>0) ddiffs33256 = new Date(dnows33256-dthens33256); else ddiffs33256 = new Date(dthens33256-dnows33256); gsecss33256 = Math.floor(ddiffs33256.valueOf()/1000); CountBacks33256(gsecss33256);