107 lines
3.1 KiB
HTML

<html>
<head>
<title>Blue Letter Bible: Faith's Checkbook -- Charles Spurgeon</title>
<script src="../../js/basepath.js" type="text/javascript"></script>
<script src="./js/nav.js" type="text/javascript"></script>
<script src="./js/MainHeader.js" type="text/javascript"></script>
<script>
Dates = new Array();
Dates[1] = 31;
Dates[2] = 29;
Dates[3] = 31;
Dates[4] = 30;
Dates[5] = 31;
Dates[6] = 30;
Dates[7] = 31;
Dates[8] = 31;
Dates[9] = 30;
Dates[10] = 31;
Dates[11] = 30;
Dates[12] = 31;
function pad(padWhat,howMuch) {
padWhat = padWhat.toString();
padLength = padWhat.length;
for(i=padLength;i<howMuch;i++) {
padWhat = "0"+padWhat;
}
return padWhat;
}
function goToday() {
var today = new Date();
Month=today.getMonth()+1;
Day=today.getDate();
Month=pad(Month,2);
Day=pad(Day,2);
window.location.href=basePath+'/devotions/faiths-checkbook/'+Month+"/"+Month+Day+".html";
return false;
}
function goNow() {
var When = new String(document.OC_When.date.value);
if (When.length < 1) {
alert("Please provide a specific date.");
return false;
}
else {
Month = parseInt(When.split("/")[0], 10);
Day = parseInt(When.split("/")[1], 10);
if (!Month || !Day || Month=="" || Day=="") {
alert("This is not a valid date");
return false;
}
else if(1 > Month || Month > 12 || 1 > Day || Day > Dates[Month]) {
alert("This is not a valid date");
return false;
}
else {
Month=pad(Month,2);
Day=pad(Day,2);
window.location.href=basePath+'/devotions/faiths-checkbook/'+Month+"/"+Month+Day+".html";
return false;
}
}
return false;
}
</script>
<div class="head">Faith's Checkbook</div>
<div class="subhead">by Charles Spurgeon</div>
<div class="desc-just"><div class="pad2020">
<i>Faith's Checkbook</i>, written by nineteenth-century preacher,
Charles H. Spurgeon, "A promise from God may very instructively
be compared to a check payable to order. It is given to the believer
with the view of bestowing upon him some good thing...".
</div></div>
<div class="main-center">
<div style="padding:5px">
<FORM name="OC_Today" action="" method="get" onSubmit="return goToday();">
<INPUT TYPE="button" VALUE=" Today's Reading " onClick="goToday();">
<BR>
<script>
var today = new Date();
document.write(today);
</script>
</FORM>
</div>
</div>
<div class="main-center">
<DIV STYLE="padding:5px">
<form name="OC_When" action="" method="get" onSubmit="return goNow();">Date (mm/dd):&nbsp;
<input type="text" name="date" size="6" class="blue"><BR>
<input type="button" value=" Submit Specific Date " onClick="goNow();"></form>
</div>
</div>
<div class="desc-center">
<div class="pad2020">
<a href="./devotions/faiths-checkbook/date.html"><B>Date Index</B></a>
<BR><BR>
<a href="./devotions/faiths-checkbook/verse.html"><B>Scripture Index</B></a>
</div>
</div>
<div class="return">
<a href="./d.html">Return to Devotionals Index</a>
</div>
<script src="./js/MainFooter.js" type="text/javascript"></script>