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 (LeadingZeros32476 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32476(secs) { if (secs < 0) { document.getElementById("cntdwns32476").innerHTML = FinishMessages32476; return; } DisplayStrs32476 = DisplayFormats32476.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32476 = DisplayStrs32476.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32476 = DisplayStrs32476.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32476 = DisplayStrs32476.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32476").innerHTML = DisplayStrs32476; if (CountActives32476) //alert(SetTimeOutPeriods32476); setTimeout("CountBacks32476(" + (secs+CountSteppers32476) + ")", SetTimeOutPeriods32476); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32476)=="undefined") BackColors32476 = ""; if (typeof(ForeColors32476)=="undefined") ForeColors32476= "white"; if (typeof(TargetDates32476)=="undefined") TargetDates32476 = "06/25/2025 10:00:00 PM"; if (typeof(DisplayFormats32476)=="undefined") DisplayFormats32476 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32476)=="undefined") CountActives32476 = true; if (typeof(FinishMessages32476)=="undefined") FinishMessages32476 = ""; if (typeof(CountSteppers32476)!="number") CountSteppers32476 = -1; if (typeof(LeadingZeros32476)=="undefined") LeadingZeros32476 = true; CountSteppers32476 = Math.ceil(CountSteppers32476); if (CountSteppers32476 == 0) CountActives32476 = false; var SetTimeOutPeriods32476 = (Math.abs(CountSteppers32476)-1)*1000 + 990; puti(BackColors32476, ForeColors32476); var dthens32476 = new Date(TargetDates32476); var dnows32476 = new Date("07/01/2025 11:51:45 PM"); if(CountSteppers32476>0) ddiffs32476 = new Date(dnows32476-dthens32476); else ddiffs32476 = new Date(dthens32476-dnows32476); gsecss32476 = Math.floor(ddiffs32476.valueOf()/1000); CountBacks32476(gsecss32476);