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 (LeadingZeros29525 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29525(secs) { if (secs < 0) { document.getElementById("cntdwns29525").innerHTML = FinishMessages29525; return; } DisplayStrs29525 = DisplayFormats29525.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29525 = DisplayStrs29525.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29525 = DisplayStrs29525.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29525 = DisplayStrs29525.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29525").innerHTML = DisplayStrs29525; if (CountActives29525) //alert(SetTimeOutPeriods29525); setTimeout("CountBacks29525(" + (secs+CountSteppers29525) + ")", SetTimeOutPeriods29525); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29525)=="undefined") BackColors29525 = ""; if (typeof(ForeColors29525)=="undefined") ForeColors29525= "white"; if (typeof(TargetDates29525)=="undefined") TargetDates29525 = "03/30/2024 10:00:00 PM"; if (typeof(DisplayFormats29525)=="undefined") DisplayFormats29525 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29525)=="undefined") CountActives29525 = true; if (typeof(FinishMessages29525)=="undefined") FinishMessages29525 = ""; if (typeof(CountSteppers29525)!="number") CountSteppers29525 = -1; if (typeof(LeadingZeros29525)=="undefined") LeadingZeros29525 = true; CountSteppers29525 = Math.ceil(CountSteppers29525); if (CountSteppers29525 == 0) CountActives29525 = false; var SetTimeOutPeriods29525 = (Math.abs(CountSteppers29525)-1)*1000 + 990; puti(BackColors29525, ForeColors29525); var dthens29525 = new Date(TargetDates29525); var dnows29525 = new Date("04/27/2024 12:25:47 PM"); if(CountSteppers29525>0) ddiffs29525 = new Date(dnows29525-dthens29525); else ddiffs29525 = new Date(dthens29525-dnows29525); gsecss29525 = Math.floor(ddiffs29525.valueOf()/1000); CountBacks29525(gsecss29525);