var textString = new Array(); textString[0] = "Don't look back, the lemmings are gaining on you. "; textString[1] = "The Public is merely a multiplied 'me.' -- Mark Twain "; textString[2] = "You will gain money by a speculation or lottery. "; textString[3] = "Expect a letter from a friend who will ask a favor of you. "; textString[4] = "Civilization is the limitless multiplication of unnecessary necessities. -- Mark Twain "; textString[5] = "If you tell the truth you don't have to remember anything. -- Mark Twain "; var zTrack = 0; function runSwitch() { if(zTrack == 5) { zTrack=0; } zTrack++; document.getElementById("fortunetext1").innerHTML = textString[zTrack]; document.getElementById("fortunetext2").innerHTML = textString[zTrack]; }