theDate= new Date();
var day = theDate.getDate();
var year = theDate.getYear();
year = (year < 2000) ? year + 1900 : year;
var textdate = (theDate.getMonth() + 1) + '/' + theDate.getDate() + '/' + year;
var numquotes = 31;
quotes = new Array(numquotes+1);
quotes[1] = "The Saviour has not promised His followers the luxuries of the world; their fare may be plain, and even scanty; their lot may be shut in by poverty; but His word is pledged that their need shall be supplied. The Desire of Ages page 367";
quotes[2] = "If we plan according to our own ideas, the Lord will leave us to our own mistakes.  But when, after following His directions, we are brought into strait places, He will deliver us. The Desire of Ages page 369";
quotes[3] = "In every emergency we are to seek help from Him who has infinite resources at His command. The Desire of Ages page 369";
quotes[4] = "The Spirit of God, received into the heart by faith, is the beginning of the life eternal. The Desire of Ages page 388";
quotes[5] = "What food is to the body, Christ must be to the soul. The Desire of Ages page 389";
quotes[6] = "Christ is of no value to us if we do not know Him as a personal Saviour. The Desire of Ages page 389";
quotes[7] = "Our little world, under the curse of sin the one dark blot in His glorious creation, will be honored above all other worlds in the universe of God. The Desire of Ages page 26";
quotes[8] = "Satan trembles and flees before the weakest soul who finds refuge in [the Lord's] mighty name. The Desire of Ages page 131";
quotes[9] = "What food is to the body, Christ must be to the soul. The Desire of Ages page 389";
quotes[10] = "Repentance comes from Christ as truly as does pardon. The Desire of Ages page 175";
quotes[11] = "All who long to bear the likeness of the character of God shall be satisfied.  If the eye is kept fixed on Christ, the work of the Spirit ceases not until the soul is conformed to His image. The Desire of Ages page 302";
quotes[12] = "The righteousness which Christ taught is conformity of heart and life to the revealed will of God. The Desire of Ages page 310";
quotes[13] = "The faces of men and women who walk and work with God express the peace of heaven.... For these souls the kingdom of God has begun. The Desire of Ages page 312";
quotes[14] = "God does not bestow help for tomorrow. He does not give His children all the directions for their life journey at once, lest they should become confused. He tells them just as much as they can remember and perform. The Desire of Ages page 313";
quotes[15] = "We have nothing to recommend us to God; but the plea that we may urge now and ever is our utterly helpless condition that makes His redeeming power a necessity. The Desire of Ages page 317";
quotes[16] = "Words are more than an indication of character; they have power to react on the character.  Men are influenced by their own words. The Desire of Ages page 323";
quotes[17] = "Unless we do yield ourselves to the control of Christ, we shall be dominated by the wicked one. We must inevitably be under the control of the one or the other of the two great powers that are contending for the supremacy of the world. The Desire of Ages page 324"; 
quotes[18] = "Our heavenly Father has a thousand ways to provide for us, of which we know nothing.  Those who accept the one principle of making the service and honor of God supreme will find perplexities vanish, and a plain path before their feet. The Desire of Ages page 330";
quotes[19] = "Closer than father, mother, brother, friend, or lover is the Lord our Saviour. The Desire of Ages page 327";
quotes[20] = "Our heavenly Father has a thousand ways to provide for us, of which we know nothing.  Those who accept the one principle of making the service and honor of God supreme will find perplexities vanish, and a plain path before their feet. The Desire of Ages page 330";
quotes[21] = "In the heart of Christ, where reigned perfect harmony with God, there was perfect peace.  He was never elated by applause, nor dejected by censure or disappointment. The Desire of Ages page 330";
quotes[22] = "Those who take Christ at His word, and surrender their souls to His keeping, their lives to His ordering, will find peace and quietude.  Nothing of the world can make them sad when Jesus makes them glad by His presence. The Desire of Ages page 331";
quotes[23] = "The more we know of God, the more intense will be our happiness. The Desire of Ages page 331";
quotes[24] = "As witnesses for Christ, we are to tell what we know, what we ourselves have seen and heard and felt. The Desire of Ages page 340";
quotes[25] = "It is not enough to believe about Christ; we must believe in Him. The Desire of Ages page 347";
quotes[26] = "There is greater encouragement for us in the least blessing we ourselves receive from God than in all the accounts we can read of the faith and experience of others. The Desire of Ages page 348";
quotes[27] = "The love of Christ, manifested in unselfish ministry, will be more effective in reforming the evildoer than will the sword or the court of justice. The Desire of Ages pages 350, 351";
quotes[28] = "The spirit that is kept gentle under provocation will speak more effectively in favor of the truth than will any argument, however forcible. The Desire of Ages page 353";
quotes[29] = "Real peace can never be secured by compromising principle. And no man can be true to principle without exciting opposition. The Desire of Ages page 356";
quotes[30] = "It is not wise to be always under the strain of work and excitement, even in ministering to men's spiritual needs; for in this way personal piety is neglected, and the powers of mind and soul and body are overtaxed. The Desire of Ages page 362";
quotes[31] = "Only the work accomplished with much prayer, and sanctified by the merit of Christ, will in the end prove to have been efficient for good. The Desire of Ages page 362";
document.write('<b>Thought for the Day</b><br>');
document.write('' + quotes[day] + '<br>');
//  End -->
