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 (LeadingZeros30603 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30603(secs) { if (secs < 0) { document.getElementById("cntdwns30603").innerHTML = FinishMessages30603; return; } DisplayStrs30603 = DisplayFormats30603.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30603 = DisplayStrs30603.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30603 = DisplayStrs30603.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30603 = DisplayStrs30603.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30603").innerHTML = DisplayStrs30603; if (CountActives30603) //alert(SetTimeOutPeriods30603); setTimeout("CountBacks30603(" + (secs+CountSteppers30603) + ")", SetTimeOutPeriods30603); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30603)=="undefined") BackColors30603 = ""; if (typeof(ForeColors30603)=="undefined") ForeColors30603= "white"; if (typeof(TargetDates30603)=="undefined") TargetDates30603 = "06/19/2024 10:00:00 PM"; if (typeof(DisplayFormats30603)=="undefined") DisplayFormats30603 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30603)=="undefined") CountActives30603 = true; if (typeof(FinishMessages30603)=="undefined") FinishMessages30603 = ""; if (typeof(CountSteppers30603)!="number") CountSteppers30603 = -1; if (typeof(LeadingZeros30603)=="undefined") LeadingZeros30603 = true; CountSteppers30603 = Math.ceil(CountSteppers30603); if (CountSteppers30603 == 0) CountActives30603 = false; var SetTimeOutPeriods30603 = (Math.abs(CountSteppers30603)-1)*1000 + 990; puti(BackColors30603, ForeColors30603); var dthens30603 = new Date(TargetDates30603); var dnows30603 = new Date("06/26/2024 1:10:12 PM"); if(CountSteppers30603>0) ddiffs30603 = new Date(dnows30603-dthens30603); else ddiffs30603 = new Date(dthens30603-dnows30603); gsecss30603 = Math.floor(ddiffs30603.valueOf()/1000); CountBacks30603(gsecss30603);