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 (LeadingZeros29244 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29244(secs) { if (secs < 0) { document.getElementById("cntdwns29244").innerHTML = FinishMessages29244; return; } DisplayStrs29244 = DisplayFormats29244.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29244 = DisplayStrs29244.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29244 = DisplayStrs29244.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29244 = DisplayStrs29244.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29244").innerHTML = DisplayStrs29244; if (CountActives29244) //alert(SetTimeOutPeriods29244); setTimeout("CountBacks29244(" + (secs+CountSteppers29244) + ")", SetTimeOutPeriods29244); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29244)=="undefined") BackColors29244 = ""; if (typeof(ForeColors29244)=="undefined") ForeColors29244= "white"; if (typeof(TargetDates29244)=="undefined") TargetDates29244 = "03/30/2024 9:00:00 PM"; if (typeof(DisplayFormats29244)=="undefined") DisplayFormats29244 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29244)=="undefined") CountActives29244 = true; if (typeof(FinishMessages29244)=="undefined") FinishMessages29244 = ""; if (typeof(CountSteppers29244)!="number") CountSteppers29244 = -1; if (typeof(LeadingZeros29244)=="undefined") LeadingZeros29244 = true; CountSteppers29244 = Math.ceil(CountSteppers29244); if (CountSteppers29244 == 0) CountActives29244 = false; var SetTimeOutPeriods29244 = (Math.abs(CountSteppers29244)-1)*1000 + 990; puti(BackColors29244, ForeColors29244); var dthens29244 = new Date(TargetDates29244); var dnows29244 = new Date("04/28/2024 7:46:02 PM"); if(CountSteppers29244>0) ddiffs29244 = new Date(dnows29244-dthens29244); else ddiffs29244 = new Date(dthens29244-dnows29244); gsecss29244 = Math.floor(ddiffs29244.valueOf()/1000); CountBacks29244(gsecss29244);