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 (LeadingZeros32543 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32543(secs) { if (secs < 0) { document.getElementById("cntdwns32543").innerHTML = FinishMessages32543; return; } DisplayStrs32543 = DisplayFormats32543.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32543 = DisplayStrs32543.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32543 = DisplayStrs32543.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32543 = DisplayStrs32543.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32543").innerHTML = DisplayStrs32543; if (CountActives32543) //alert(SetTimeOutPeriods32543); setTimeout("CountBacks32543(" + (secs+CountSteppers32543) + ")", SetTimeOutPeriods32543); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32543)=="undefined") BackColors32543 = ""; if (typeof(ForeColors32543)=="undefined") ForeColors32543= "white"; if (typeof(TargetDates32543)=="undefined") TargetDates32543 = "07/04/2025 10:00:00 PM"; if (typeof(DisplayFormats32543)=="undefined") DisplayFormats32543 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32543)=="undefined") CountActives32543 = true; if (typeof(FinishMessages32543)=="undefined") FinishMessages32543 = ""; if (typeof(CountSteppers32543)!="number") CountSteppers32543 = -1; if (typeof(LeadingZeros32543)=="undefined") LeadingZeros32543 = true; CountSteppers32543 = Math.ceil(CountSteppers32543); if (CountSteppers32543 == 0) CountActives32543 = false; var SetTimeOutPeriods32543 = (Math.abs(CountSteppers32543)-1)*1000 + 990; puti(BackColors32543, ForeColors32543); var dthens32543 = new Date(TargetDates32543); var dnows32543 = new Date("07/02/2025 12:49:45 PM"); if(CountSteppers32543>0) ddiffs32543 = new Date(dnows32543-dthens32543); else ddiffs32543 = new Date(dthens32543-dnows32543); gsecss32543 = Math.floor(ddiffs32543.valueOf()/1000); CountBacks32543(gsecss32543);