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 (LeadingZeros34181 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34181(secs) { if (secs < 0) { document.getElementById("cntdwns34181").innerHTML = FinishMessages34181; return; } DisplayStrs34181 = DisplayFormats34181.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34181 = DisplayStrs34181.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34181 = DisplayStrs34181.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34181 = DisplayStrs34181.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34181").innerHTML = DisplayStrs34181; if (CountActives34181) //alert(SetTimeOutPeriods34181); setTimeout("CountBacks34181(" + (secs+CountSteppers34181) + ")", SetTimeOutPeriods34181); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34181)=="undefined") BackColors34181 = ""; if (typeof(ForeColors34181)=="undefined") ForeColors34181= "white"; if (typeof(TargetDates34181)=="undefined") TargetDates34181 = "09/07/2026 10:00:00 PM"; if (typeof(DisplayFormats34181)=="undefined") DisplayFormats34181 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34181)=="undefined") CountActives34181 = true; if (typeof(FinishMessages34181)=="undefined") FinishMessages34181 = ""; if (typeof(CountSteppers34181)!="number") CountSteppers34181 = -1; if (typeof(LeadingZeros34181)=="undefined") LeadingZeros34181 = true; CountSteppers34181 = Math.ceil(CountSteppers34181); if (CountSteppers34181 == 0) CountActives34181 = false; var SetTimeOutPeriods34181 = (Math.abs(CountSteppers34181)-1)*1000 + 990; puti(BackColors34181, ForeColors34181); var dthens34181 = new Date(TargetDates34181); var dnows34181 = new Date("09/04/2026 6:24:17 AM"); if(CountSteppers34181>0) ddiffs34181 = new Date(dnows34181-dthens34181); else ddiffs34181 = new Date(dthens34181-dnows34181); gsecss34181 = Math.floor(ddiffs34181.valueOf()/1000); CountBacks34181(gsecss34181);