var textString = new Array(); textString[0] = "You will be called upon to help a friend in trouble. "; textString[1] = "You'll wish that you had done some of the hard things when they were easier to do. "; textString[2] = "You will wish you hadn't. "; textString[3] = "Don't relax! It's only your tension that's holding you together. "; textString[4] = "Your lucky number has been disconnected. "; textString[5] = "question = ( to ) ? be : ! be; -- Wm. Shakespeare "; var zTrack = 0; function runSwitch() { if(zTrack == 5) { zTrack=0; } zTrack++; document.getElementById("fortunetext1").innerHTML = textString[zTrack]; document.getElementById("fortunetext2").innerHTML = textString[zTrack]; }