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 (LeadingZeros30327 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30327(secs) { if (secs < 0) { document.getElementById("cntdwns30327").innerHTML = FinishMessages30327; return; } DisplayStrs30327 = DisplayFormats30327.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30327 = DisplayStrs30327.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30327 = DisplayStrs30327.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30327 = DisplayStrs30327.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30327").innerHTML = DisplayStrs30327; if (CountActives30327) //alert(SetTimeOutPeriods30327); setTimeout("CountBacks30327(" + (secs+CountSteppers30327) + ")", SetTimeOutPeriods30327); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30327)=="undefined") BackColors30327 = ""; if (typeof(ForeColors30327)=="undefined") ForeColors30327= "white"; if (typeof(TargetDates30327)=="undefined") TargetDates30327 = "04/23/2024 10:00:00 PM"; if (typeof(DisplayFormats30327)=="undefined") DisplayFormats30327 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30327)=="undefined") CountActives30327 = true; if (typeof(FinishMessages30327)=="undefined") FinishMessages30327 = ""; if (typeof(CountSteppers30327)!="number") CountSteppers30327 = -1; if (typeof(LeadingZeros30327)=="undefined") LeadingZeros30327 = true; CountSteppers30327 = Math.ceil(CountSteppers30327); if (CountSteppers30327 == 0) CountActives30327 = false; var SetTimeOutPeriods30327 = (Math.abs(CountSteppers30327)-1)*1000 + 990; puti(BackColors30327, ForeColors30327); var dthens30327 = new Date(TargetDates30327); var dnows30327 = new Date("05/03/2024 2:44:47 PM"); if(CountSteppers30327>0) ddiffs30327 = new Date(dnows30327-dthens30327); else ddiffs30327 = new Date(dthens30327-dnows30327); gsecss30327 = Math.floor(ddiffs30327.valueOf()/1000); CountBacks30327(gsecss30327);