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 (LeadingZeros34038 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34038(secs) { if (secs < 0) { document.getElementById("cntdwns34038").innerHTML = FinishMessages34038; return; } DisplayStrs34038 = DisplayFormats34038.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34038 = DisplayStrs34038.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34038 = DisplayStrs34038.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34038 = DisplayStrs34038.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34038").innerHTML = DisplayStrs34038; if (CountActives34038) //alert(SetTimeOutPeriods34038); setTimeout("CountBacks34038(" + (secs+CountSteppers34038) + ")", SetTimeOutPeriods34038); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34038)=="undefined") BackColors34038 = ""; if (typeof(ForeColors34038)=="undefined") ForeColors34038= "white"; if (typeof(TargetDates34038)=="undefined") TargetDates34038 = "07/09/2026 10:00:00 PM"; if (typeof(DisplayFormats34038)=="undefined") DisplayFormats34038 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34038)=="undefined") CountActives34038 = true; if (typeof(FinishMessages34038)=="undefined") FinishMessages34038 = ""; if (typeof(CountSteppers34038)!="number") CountSteppers34038 = -1; if (typeof(LeadingZeros34038)=="undefined") LeadingZeros34038 = true; CountSteppers34038 = Math.ceil(CountSteppers34038); if (CountSteppers34038 == 0) CountActives34038 = false; var SetTimeOutPeriods34038 = (Math.abs(CountSteppers34038)-1)*1000 + 990; puti(BackColors34038, ForeColors34038); var dthens34038 = new Date(TargetDates34038); var dnows34038 = new Date("07/07/2026 8:12:27 PM"); if(CountSteppers34038>0) ddiffs34038 = new Date(dnows34038-dthens34038); else ddiffs34038 = new Date(dthens34038-dnows34038); gsecss34038 = Math.floor(ddiffs34038.valueOf()/1000); CountBacks34038(gsecss34038);