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 (LeadingZeros30237 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30237(secs) { if (secs < 0) { document.getElementById("cntdwns30237").innerHTML = FinishMessages30237; return; } DisplayStrs30237 = DisplayFormats30237.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30237 = DisplayStrs30237.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30237 = DisplayStrs30237.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30237 = DisplayStrs30237.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30237").innerHTML = DisplayStrs30237; if (CountActives30237) //alert(SetTimeOutPeriods30237); setTimeout("CountBacks30237(" + (secs+CountSteppers30237) + ")", SetTimeOutPeriods30237); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30237)=="undefined") BackColors30237 = ""; if (typeof(ForeColors30237)=="undefined") ForeColors30237= "white"; if (typeof(TargetDates30237)=="undefined") TargetDates30237 = "04/28/2024 10:00:00 PM"; if (typeof(DisplayFormats30237)=="undefined") DisplayFormats30237 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30237)=="undefined") CountActives30237 = true; if (typeof(FinishMessages30237)=="undefined") FinishMessages30237 = ""; if (typeof(CountSteppers30237)!="number") CountSteppers30237 = -1; if (typeof(LeadingZeros30237)=="undefined") LeadingZeros30237 = true; CountSteppers30237 = Math.ceil(CountSteppers30237); if (CountSteppers30237 == 0) CountActives30237 = false; var SetTimeOutPeriods30237 = (Math.abs(CountSteppers30237)-1)*1000 + 990; puti(BackColors30237, ForeColors30237); var dthens30237 = new Date(TargetDates30237); var dnows30237 = new Date("05/04/2024 7:12:04 PM"); if(CountSteppers30237>0) ddiffs30237 = new Date(dnows30237-dthens30237); else ddiffs30237 = new Date(dthens30237-dnows30237); gsecss30237 = Math.floor(ddiffs30237.valueOf()/1000); CountBacks30237(gsecss30237);