//Global Variables
var updated='10/28/11';
var gasprice=3.299;
var cigprice=.2755;
var kwhprice=.1250;
var h20price=.0110;
var daysperyear=365.25;
var workdays=245;
var WorkWeeks=50;
var milesperyear=12000;

//Tips
var today=new Date();
var whatday= today.getSeconds() % 17;

if (whatday==0)
        {tip='&quot;A penny saved is a penny earned.&quot;&nbsp; -Ben Franklin';}
if (whatday==1)
        {tip='&quot;Penny saved is a penny got.&quot;&nbsp; -Henry Fielding';}
if (whatday==2)
        {tip='&quot;He who saves shall have as much as three<br>people.&quot;&nbsp; -Old Czech Proverb';}
if (whatday==3)
        {tip='&quot;Look after the pennies and the pounds will look<br>after themselves.&quot;&nbsp; -Old English Proverb';}
if (whatday==4)
        {tip='&quot;A penny is a penny.&quot;&nbsp; -Old French Proverb';}
if (whatday==5)
        {tip='&quot;Save your white penny for your<br>black day.&quot;&nbsp; -Old Arabian Proverb';}
if (whatday==6)
        {tip='&quot;Never burn a penny candle<br>looking for a halfpenny.&quot;&nbsp; -Old Irish Proverb';}
if (whatday==7)
        {tip='&quot;A penny is the root of a fortune.&quot;&nbsp; -Old Finnish Proverb';}
if (whatday==8)
        {tip='&quot;A penny saves the ruble (and the ruble<br>guards your head).&quot;&nbsp; -Old Russian Proverb';}
if (whatday==9)
        {tip='&quot;If a person gets his attitude toward<br>money straight, it will help straighten out<br>almost every other area in his life.&quot;&nbsp;-Billy Graham';}
if (whatday==10)
        {tip='&quot;If money be not thy servant,<br>it will be thy master.&quot;&nbsp;-Francis Bacon';}
if (whatday==11)
        {tip='&quot;Nothing is cheap which is superfluous,<br>for what one does not need, is dear<br>at a penny.&quot;&nbsp;-Plutarch';}
if (whatday==12)
        {tip='&quot;Let honesty and industry be thy constant companions,<br>and spend one penny less than thy clear gains; <br>then shall thy pocket begin to thrive...&quot;&nbsp; -Ben Franklin';}
if (whatday==13)
        {tip='&quot;Are not two sparrows sold for a penny? Yet not one<br>of them will fall to the ground apart from the will of your<br>Father.&quot;&nbsp; -Jesus of Nazareth';}
if (whatday==14)
        {tip='&quot;All lovely things will have an ending, All lovely things<br>will fade and die; And youth, that&#39;s now so bravely<br>spending, Will beg a penny by and by.&quot;&nbsp; -Conrad Aiken';}
if (whatday==15)
        {tip='&quot;Add up your pennies, and buy a hen.&quot;&nbsp; -Old Polish Proverb';}
if (whatday==16)
        {tip='&quot;A penny saved is a penny gained.&quot;&nbsp; -Old Scottish Proverb';}
