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 (LeadingZeros34223 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34223(secs) { if (secs < 0) { document.getElementById("cntdwns34223").innerHTML = FinishMessages34223; return; } DisplayStrs34223 = DisplayFormats34223.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34223 = DisplayStrs34223.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34223 = DisplayStrs34223.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34223 = DisplayStrs34223.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34223").innerHTML = DisplayStrs34223; if (CountActives34223) //alert(SetTimeOutPeriods34223); setTimeout("CountBacks34223(" + (secs+CountSteppers34223) + ")", SetTimeOutPeriods34223); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34223)=="undefined") BackColors34223 = ""; if (typeof(ForeColors34223)=="undefined") ForeColors34223= "white"; if (typeof(TargetDates34223)=="undefined") TargetDates34223 = "11/13/2026 12:00:00 PM"; if (typeof(DisplayFormats34223)=="undefined") DisplayFormats34223 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34223)=="undefined") CountActives34223 = true; if (typeof(FinishMessages34223)=="undefined") FinishMessages34223 = ""; if (typeof(CountSteppers34223)!="number") CountSteppers34223 = -1; if (typeof(LeadingZeros34223)=="undefined") LeadingZeros34223 = true; CountSteppers34223 = Math.ceil(CountSteppers34223); if (CountSteppers34223 == 0) CountActives34223 = false; var SetTimeOutPeriods34223 = (Math.abs(CountSteppers34223)-1)*1000 + 990; puti(BackColors34223, ForeColors34223); var dthens34223 = new Date(TargetDates34223); var dnows34223 = new Date("11/11/2026 4:05:28 AM"); if(CountSteppers34223>0) ddiffs34223 = new Date(dnows34223-dthens34223); else ddiffs34223 = new Date(dthens34223-dnows34223); gsecss34223 = Math.floor(ddiffs34223.valueOf()/1000); CountBacks34223(gsecss34223);