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 (LeadingZeros34015 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34015(secs) { if (secs < 0) { document.getElementById("cntdwns34015").innerHTML = FinishMessages34015; return; } DisplayStrs34015 = DisplayFormats34015.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34015 = DisplayStrs34015.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34015 = DisplayStrs34015.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34015 = DisplayStrs34015.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34015").innerHTML = DisplayStrs34015; if (CountActives34015) //alert(SetTimeOutPeriods34015); setTimeout("CountBacks34015(" + (secs+CountSteppers34015) + ")", SetTimeOutPeriods34015); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34015)=="undefined") BackColors34015 = ""; if (typeof(ForeColors34015)=="undefined") ForeColors34015= "white"; if (typeof(TargetDates34015)=="undefined") TargetDates34015 = "07/24/2026 10:00:00 PM"; if (typeof(DisplayFormats34015)=="undefined") DisplayFormats34015 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34015)=="undefined") CountActives34015 = true; if (typeof(FinishMessages34015)=="undefined") FinishMessages34015 = ""; if (typeof(CountSteppers34015)!="number") CountSteppers34015 = -1; if (typeof(LeadingZeros34015)=="undefined") LeadingZeros34015 = true; CountSteppers34015 = Math.ceil(CountSteppers34015); if (CountSteppers34015 == 0) CountActives34015 = false; var SetTimeOutPeriods34015 = (Math.abs(CountSteppers34015)-1)*1000 + 990; puti(BackColors34015, ForeColors34015); var dthens34015 = new Date(TargetDates34015); var dnows34015 = new Date("07/21/2026 12:55:41 PM"); if(CountSteppers34015>0) ddiffs34015 = new Date(dnows34015-dthens34015); else ddiffs34015 = new Date(dthens34015-dnows34015); gsecss34015 = Math.floor(ddiffs34015.valueOf()/1000); CountBacks34015(gsecss34015);