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 (LeadingZeros34198 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34198(secs) { if (secs < 0) { document.getElementById("cntdwns34198").innerHTML = FinishMessages34198; return; } DisplayStrs34198 = DisplayFormats34198.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34198 = DisplayStrs34198.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34198 = DisplayStrs34198.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34198 = DisplayStrs34198.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34198").innerHTML = DisplayStrs34198; if (CountActives34198) //alert(SetTimeOutPeriods34198); setTimeout("CountBacks34198(" + (secs+CountSteppers34198) + ")", SetTimeOutPeriods34198); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34198)=="undefined") BackColors34198 = ""; if (typeof(ForeColors34198)=="undefined") ForeColors34198= "white"; if (typeof(TargetDates34198)=="undefined") TargetDates34198 = "09/12/2026 10:00:00 PM"; if (typeof(DisplayFormats34198)=="undefined") DisplayFormats34198 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34198)=="undefined") CountActives34198 = true; if (typeof(FinishMessages34198)=="undefined") FinishMessages34198 = ""; if (typeof(CountSteppers34198)!="number") CountSteppers34198 = -1; if (typeof(LeadingZeros34198)=="undefined") LeadingZeros34198 = true; CountSteppers34198 = Math.ceil(CountSteppers34198); if (CountSteppers34198 == 0) CountActives34198 = false; var SetTimeOutPeriods34198 = (Math.abs(CountSteppers34198)-1)*1000 + 990; puti(BackColors34198, ForeColors34198); var dthens34198 = new Date(TargetDates34198); var dnows34198 = new Date("09/09/2026 2:07:10 AM"); if(CountSteppers34198>0) ddiffs34198 = new Date(dnows34198-dthens34198); else ddiffs34198 = new Date(dthens34198-dnows34198); gsecss34198 = Math.floor(ddiffs34198.valueOf()/1000); CountBacks34198(gsecss34198);