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 (LeadingZeros32237 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32237(secs) { if (secs < 0) { document.getElementById("cntdwns32237").innerHTML = FinishMessages32237; return; } DisplayStrs32237 = DisplayFormats32237.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32237 = DisplayStrs32237.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32237 = DisplayStrs32237.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32237 = DisplayStrs32237.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32237").innerHTML = DisplayStrs32237; if (CountActives32237) //alert(SetTimeOutPeriods32237); setTimeout("CountBacks32237(" + (secs+CountSteppers32237) + ")", SetTimeOutPeriods32237); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32237)=="undefined") BackColors32237 = ""; if (typeof(ForeColors32237)=="undefined") ForeColors32237= "white"; if (typeof(TargetDates32237)=="undefined") TargetDates32237 = "05/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32237)=="undefined") DisplayFormats32237 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32237)=="undefined") CountActives32237 = true; if (typeof(FinishMessages32237)=="undefined") FinishMessages32237 = ""; if (typeof(CountSteppers32237)!="number") CountSteppers32237 = -1; if (typeof(LeadingZeros32237)=="undefined") LeadingZeros32237 = true; CountSteppers32237 = Math.ceil(CountSteppers32237); if (CountSteppers32237 == 0) CountActives32237 = false; var SetTimeOutPeriods32237 = (Math.abs(CountSteppers32237)-1)*1000 + 990; puti(BackColors32237, ForeColors32237); var dthens32237 = new Date(TargetDates32237); var dnows32237 = new Date("05/10/2025 1:47:02 PM"); if(CountSteppers32237>0) ddiffs32237 = new Date(dnows32237-dthens32237); else ddiffs32237 = new Date(dthens32237-dnows32237); gsecss32237 = Math.floor(ddiffs32237.valueOf()/1000); CountBacks32237(gsecss32237);