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 (LeadingZeros34326 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34326(secs) { if (secs < 0) { document.getElementById("cntdwns34326").innerHTML = FinishMessages34326; return; } DisplayStrs34326 = DisplayFormats34326.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34326 = DisplayStrs34326.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34326 = DisplayStrs34326.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34326 = DisplayStrs34326.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34326").innerHTML = DisplayStrs34326; if (CountActives34326) //alert(SetTimeOutPeriods34326); setTimeout("CountBacks34326(" + (secs+CountSteppers34326) + ")", SetTimeOutPeriods34326); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34326)=="undefined") BackColors34326 = ""; if (typeof(ForeColors34326)=="undefined") ForeColors34326= "white"; if (typeof(TargetDates34326)=="undefined") TargetDates34326 = "10/28/2026 9:00:00 PM"; if (typeof(DisplayFormats34326)=="undefined") DisplayFormats34326 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34326)=="undefined") CountActives34326 = true; if (typeof(FinishMessages34326)=="undefined") FinishMessages34326 = ""; if (typeof(CountSteppers34326)!="number") CountSteppers34326 = -1; if (typeof(LeadingZeros34326)=="undefined") LeadingZeros34326 = true; CountSteppers34326 = Math.ceil(CountSteppers34326); if (CountSteppers34326 == 0) CountActives34326 = false; var SetTimeOutPeriods34326 = (Math.abs(CountSteppers34326)-1)*1000 + 990; puti(BackColors34326, ForeColors34326); var dthens34326 = new Date(TargetDates34326); var dnows34326 = new Date("10/26/2026 8:38:01 PM"); if(CountSteppers34326>0) ddiffs34326 = new Date(dnows34326-dthens34326); else ddiffs34326 = new Date(dthens34326-dnows34326); gsecss34326 = Math.floor(ddiffs34326.valueOf()/1000); CountBacks34326(gsecss34326);