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 (LeadingZeros32534 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32534(secs) { if (secs < 0) { document.getElementById("cntdwns32534").innerHTML = FinishMessages32534; return; } DisplayStrs32534 = DisplayFormats32534.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32534 = DisplayStrs32534.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32534 = DisplayStrs32534.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32534 = DisplayStrs32534.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32534").innerHTML = DisplayStrs32534; if (CountActives32534) //alert(SetTimeOutPeriods32534); setTimeout("CountBacks32534(" + (secs+CountSteppers32534) + ")", SetTimeOutPeriods32534); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32534)=="undefined") BackColors32534 = ""; if (typeof(ForeColors32534)=="undefined") ForeColors32534= "white"; if (typeof(TargetDates32534)=="undefined") TargetDates32534 = "07/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32534)=="undefined") DisplayFormats32534 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32534)=="undefined") CountActives32534 = true; if (typeof(FinishMessages32534)=="undefined") FinishMessages32534 = ""; if (typeof(CountSteppers32534)!="number") CountSteppers32534 = -1; if (typeof(LeadingZeros32534)=="undefined") LeadingZeros32534 = true; CountSteppers32534 = Math.ceil(CountSteppers32534); if (CountSteppers32534 == 0) CountActives32534 = false; var SetTimeOutPeriods32534 = (Math.abs(CountSteppers32534)-1)*1000 + 990; puti(BackColors32534, ForeColors32534); var dthens32534 = new Date(TargetDates32534); var dnows32534 = new Date("07/11/2025 7:20:44 PM"); if(CountSteppers32534>0) ddiffs32534 = new Date(dnows32534-dthens32534); else ddiffs32534 = new Date(dthens32534-dnows32534); gsecss32534 = Math.floor(ddiffs32534.valueOf()/1000); CountBacks32534(gsecss32534);