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 (LeadingZeros34271 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34271(secs) { if (secs < 0) { document.getElementById("cntdwns34271").innerHTML = FinishMessages34271; return; } DisplayStrs34271 = DisplayFormats34271.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34271 = DisplayStrs34271.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34271 = DisplayStrs34271.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34271 = DisplayStrs34271.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34271").innerHTML = DisplayStrs34271; if (CountActives34271) //alert(SetTimeOutPeriods34271); setTimeout("CountBacks34271(" + (secs+CountSteppers34271) + ")", SetTimeOutPeriods34271); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34271)=="undefined") BackColors34271 = ""; if (typeof(ForeColors34271)=="undefined") ForeColors34271= "white"; if (typeof(TargetDates34271)=="undefined") TargetDates34271 = "10/06/2026 8:00:00 AM"; if (typeof(DisplayFormats34271)=="undefined") DisplayFormats34271 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34271)=="undefined") CountActives34271 = true; if (typeof(FinishMessages34271)=="undefined") FinishMessages34271 = ""; if (typeof(CountSteppers34271)!="number") CountSteppers34271 = -1; if (typeof(LeadingZeros34271)=="undefined") LeadingZeros34271 = true; CountSteppers34271 = Math.ceil(CountSteppers34271); if (CountSteppers34271 == 0) CountActives34271 = false; var SetTimeOutPeriods34271 = (Math.abs(CountSteppers34271)-1)*1000 + 990; puti(BackColors34271, ForeColors34271); var dthens34271 = new Date(TargetDates34271); var dnows34271 = new Date("10/04/2026 10:15:06 PM"); if(CountSteppers34271>0) ddiffs34271 = new Date(dnows34271-dthens34271); else ddiffs34271 = new Date(dthens34271-dnows34271); gsecss34271 = Math.floor(ddiffs34271.valueOf()/1000); CountBacks34271(gsecss34271);