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 (LeadingZeros32329 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32329(secs) { if (secs < 0) { document.getElementById("cntdwns32329").innerHTML = FinishMessages32329; return; } DisplayStrs32329 = DisplayFormats32329.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32329 = DisplayStrs32329.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32329 = DisplayStrs32329.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32329 = DisplayStrs32329.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32329").innerHTML = DisplayStrs32329; if (CountActives32329) //alert(SetTimeOutPeriods32329); setTimeout("CountBacks32329(" + (secs+CountSteppers32329) + ")", SetTimeOutPeriods32329); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32329)=="undefined") BackColors32329 = ""; if (typeof(ForeColors32329)=="undefined") ForeColors32329= "white"; if (typeof(TargetDates32329)=="undefined") TargetDates32329 = "06/04/2025 10:00:00 PM"; if (typeof(DisplayFormats32329)=="undefined") DisplayFormats32329 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32329)=="undefined") CountActives32329 = true; if (typeof(FinishMessages32329)=="undefined") FinishMessages32329 = ""; if (typeof(CountSteppers32329)!="number") CountSteppers32329 = -1; if (typeof(LeadingZeros32329)=="undefined") LeadingZeros32329 = true; CountSteppers32329 = Math.ceil(CountSteppers32329); if (CountSteppers32329 == 0) CountActives32329 = false; var SetTimeOutPeriods32329 = (Math.abs(CountSteppers32329)-1)*1000 + 990; puti(BackColors32329, ForeColors32329); var dthens32329 = new Date(TargetDates32329); var dnows32329 = new Date("06/04/2025 11:55:26 AM"); if(CountSteppers32329>0) ddiffs32329 = new Date(dnows32329-dthens32329); else ddiffs32329 = new Date(dthens32329-dnows32329); gsecss32329 = Math.floor(ddiffs32329.valueOf()/1000); CountBacks32329(gsecss32329);