var textString = new Array(); textString[0] = "Having nothing, nothing can he lose. -- William Shakespeare, 'Henry VI' "; textString[1] = "Tomorrow will be cancelled due to lack of interest. "; textString[2] = "You will be traveling and coming into a fortune. "; textString[3] = "Never reveal your best argument. "; textString[4] = "Good night to spend with family, but avoid arguments with your mate's new lover. "; textString[5] = "Your love life will be... interesting. "; var zTrack = 0; function runSwitch() { if(zTrack == 5) { zTrack=0; } zTrack++; document.getElementById("fortunetext1").innerHTML = textString[zTrack]; document.getElementById("fortunetext2").innerHTML = textString[zTrack]; }