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 (LeadingZeros30463 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30463(secs) { if (secs < 0) { document.getElementById("cntdwns30463").innerHTML = FinishMessages30463; return; } DisplayStrs30463 = DisplayFormats30463.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30463 = DisplayStrs30463.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30463 = DisplayStrs30463.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30463 = DisplayStrs30463.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30463").innerHTML = DisplayStrs30463; if (CountActives30463) //alert(SetTimeOutPeriods30463); setTimeout("CountBacks30463(" + (secs+CountSteppers30463) + ")", SetTimeOutPeriods30463); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30463)=="undefined") BackColors30463 = ""; if (typeof(ForeColors30463)=="undefined") ForeColors30463= "white"; if (typeof(TargetDates30463)=="undefined") TargetDates30463 = "04/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30463)=="undefined") DisplayFormats30463 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30463)=="undefined") CountActives30463 = true; if (typeof(FinishMessages30463)=="undefined") FinishMessages30463 = ""; if (typeof(CountSteppers30463)!="number") CountSteppers30463 = -1; if (typeof(LeadingZeros30463)=="undefined") LeadingZeros30463 = true; CountSteppers30463 = Math.ceil(CountSteppers30463); if (CountSteppers30463 == 0) CountActives30463 = false; var SetTimeOutPeriods30463 = (Math.abs(CountSteppers30463)-1)*1000 + 990; puti(BackColors30463, ForeColors30463); var dthens30463 = new Date(TargetDates30463); var dnows30463 = new Date("05/10/2024 12:27:40 PM"); if(CountSteppers30463>0) ddiffs30463 = new Date(dnows30463-dthens30463); else ddiffs30463 = new Date(dthens30463-dnows30463); gsecss30463 = Math.floor(ddiffs30463.valueOf()/1000); CountBacks30463(gsecss30463);