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 (LeadingZeros32524 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32524(secs) { if (secs < 0) { document.getElementById("cntdwns32524").innerHTML = FinishMessages32524; return; } DisplayStrs32524 = DisplayFormats32524.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32524 = DisplayStrs32524.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32524 = DisplayStrs32524.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32524 = DisplayStrs32524.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32524").innerHTML = DisplayStrs32524; if (CountActives32524) //alert(SetTimeOutPeriods32524); setTimeout("CountBacks32524(" + (secs+CountSteppers32524) + ")", SetTimeOutPeriods32524); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32524)=="undefined") BackColors32524 = ""; if (typeof(ForeColors32524)=="undefined") ForeColors32524= "white"; if (typeof(TargetDates32524)=="undefined") TargetDates32524 = "07/05/2025 10:00:00 PM"; if (typeof(DisplayFormats32524)=="undefined") DisplayFormats32524 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32524)=="undefined") CountActives32524 = true; if (typeof(FinishMessages32524)=="undefined") FinishMessages32524 = ""; if (typeof(CountSteppers32524)!="number") CountSteppers32524 = -1; if (typeof(LeadingZeros32524)=="undefined") LeadingZeros32524 = true; CountSteppers32524 = Math.ceil(CountSteppers32524); if (CountSteppers32524 == 0) CountActives32524 = false; var SetTimeOutPeriods32524 = (Math.abs(CountSteppers32524)-1)*1000 + 990; puti(BackColors32524, ForeColors32524); var dthens32524 = new Date(TargetDates32524); var dnows32524 = new Date("07/02/2025 12:59:25 PM"); if(CountSteppers32524>0) ddiffs32524 = new Date(dnows32524-dthens32524); else ddiffs32524 = new Date(dthens32524-dnows32524); gsecss32524 = Math.floor(ddiffs32524.valueOf()/1000); CountBacks32524(gsecss32524);