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 (LeadingZeros31433 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31433(secs) { if (secs < 0) { document.getElementById("cntdwns31433").innerHTML = FinishMessages31433; return; } DisplayStrs31433 = DisplayFormats31433.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31433 = DisplayStrs31433.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31433 = DisplayStrs31433.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31433 = DisplayStrs31433.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31433").innerHTML = DisplayStrs31433; if (CountActives31433) //alert(SetTimeOutPeriods31433); setTimeout("CountBacks31433(" + (secs+CountSteppers31433) + ")", SetTimeOutPeriods31433); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31433)=="undefined") BackColors31433 = ""; if (typeof(ForeColors31433)=="undefined") ForeColors31433= "white"; if (typeof(TargetDates31433)=="undefined") TargetDates31433 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31433)=="undefined") DisplayFormats31433 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31433)=="undefined") CountActives31433 = true; if (typeof(FinishMessages31433)=="undefined") FinishMessages31433 = ""; if (typeof(CountSteppers31433)!="number") CountSteppers31433 = -1; if (typeof(LeadingZeros31433)=="undefined") LeadingZeros31433 = true; CountSteppers31433 = Math.ceil(CountSteppers31433); if (CountSteppers31433 == 0) CountActives31433 = false; var SetTimeOutPeriods31433 = (Math.abs(CountSteppers31433)-1)*1000 + 990; puti(BackColors31433, ForeColors31433); var dthens31433 = new Date(TargetDates31433); var dnows31433 = new Date("02/22/2025 10:19:04 PM"); if(CountSteppers31433>0) ddiffs31433 = new Date(dnows31433-dthens31433); else ddiffs31433 = new Date(dthens31433-dnows31433); gsecss31433 = Math.floor(ddiffs31433.valueOf()/1000); CountBacks31433(gsecss31433);