var textString = new Array(); textString[0] = "'What man has done, man can aspire to do.' -- Jerry Pournelle, about space flight "; textString[1] = "The person you rejected yesterday could make you happy, if you say yes. "; textString[2] = "You're a card which will have to be dealt with. "; textString[3] = "'An ounce of prevention is worth a pound of purge.' "; textString[4] = "Sex dumps core (Sex is a Simple editor for X11) -- Seen on debian bugtracking "; textString[5] = "An algorithm must be seen to be believed. -- D. E. Knuth "; var zTrack = 0; function runSwitch() { if(zTrack == 5) { zTrack=0; } zTrack++; document.getElementById("fortunetext1").innerHTML = textString[zTrack]; document.getElementById("fortunetext2").innerHTML = textString[zTrack]; }