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 (LeadingZeros32523 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32523(secs) { if (secs < 0) { document.getElementById("cntdwns32523").innerHTML = FinishMessages32523; return; } DisplayStrs32523 = DisplayFormats32523.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32523 = DisplayStrs32523.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32523 = DisplayStrs32523.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32523 = DisplayStrs32523.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32523").innerHTML = DisplayStrs32523; if (CountActives32523) //alert(SetTimeOutPeriods32523); setTimeout("CountBacks32523(" + (secs+CountSteppers32523) + ")", SetTimeOutPeriods32523); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32523)=="undefined") BackColors32523 = ""; if (typeof(ForeColors32523)=="undefined") ForeColors32523= "white"; if (typeof(TargetDates32523)=="undefined") TargetDates32523 = "08/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32523)=="undefined") DisplayFormats32523 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32523)=="undefined") CountActives32523 = true; if (typeof(FinishMessages32523)=="undefined") FinishMessages32523 = ""; if (typeof(CountSteppers32523)!="number") CountSteppers32523 = -1; if (typeof(LeadingZeros32523)=="undefined") LeadingZeros32523 = true; CountSteppers32523 = Math.ceil(CountSteppers32523); if (CountSteppers32523 == 0) CountActives32523 = false; var SetTimeOutPeriods32523 = (Math.abs(CountSteppers32523)-1)*1000 + 990; puti(BackColors32523, ForeColors32523); var dthens32523 = new Date(TargetDates32523); var dnows32523 = new Date("08/15/2025 3:55:56 PM"); if(CountSteppers32523>0) ddiffs32523 = new Date(dnows32523-dthens32523); else ddiffs32523 = new Date(dthens32523-dnows32523); gsecss32523 = Math.floor(ddiffs32523.valueOf()/1000); CountBacks32523(gsecss32523);