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 (LeadingZeros32106 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32106(secs) { if (secs < 0) { document.getElementById("cntdwns32106").innerHTML = FinishMessages32106; return; } DisplayStrs32106 = DisplayFormats32106.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32106 = DisplayStrs32106.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32106 = DisplayStrs32106.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32106 = DisplayStrs32106.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32106").innerHTML = DisplayStrs32106; if (CountActives32106) //alert(SetTimeOutPeriods32106); setTimeout("CountBacks32106(" + (secs+CountSteppers32106) + ")", SetTimeOutPeriods32106); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32106)=="undefined") BackColors32106 = ""; if (typeof(ForeColors32106)=="undefined") ForeColors32106= "white"; if (typeof(TargetDates32106)=="undefined") TargetDates32106 = "04/21/2025 10:00:00 PM"; if (typeof(DisplayFormats32106)=="undefined") DisplayFormats32106 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32106)=="undefined") CountActives32106 = true; if (typeof(FinishMessages32106)=="undefined") FinishMessages32106 = ""; if (typeof(CountSteppers32106)!="number") CountSteppers32106 = -1; if (typeof(LeadingZeros32106)=="undefined") LeadingZeros32106 = true; CountSteppers32106 = Math.ceil(CountSteppers32106); if (CountSteppers32106 == 0) CountActives32106 = false; var SetTimeOutPeriods32106 = (Math.abs(CountSteppers32106)-1)*1000 + 990; puti(BackColors32106, ForeColors32106); var dthens32106 = new Date(TargetDates32106); var dnows32106 = new Date("04/19/2025 1:59:02 PM"); if(CountSteppers32106>0) ddiffs32106 = new Date(dnows32106-dthens32106); else ddiffs32106 = new Date(dthens32106-dnows32106); gsecss32106 = Math.floor(ddiffs32106.valueOf()/1000); CountBacks32106(gsecss32106);