numTest=1;

//Do not go past the longest testimonial provided. It will be cut off at the end.
testArray = new Array(numTest);




testArray[0]="<p class=\"highlight\">Posted: 04.06.2008</p><p>You can now receive the quarterly news letter via email by entering your email address on the left of the page. </p></b>";
testArray[1]="<p class=\"highlight\">Posted: 03.15.2010</p><p>JCSDC TAKE ME OUT TO THE BALL GAME DANCE - Tuesday April 27.  See Upcoming Events for details!  </p></b>";
testShowing=-1;

function nextTest()
{
  // restart at 0 if done
  if (testShowing >= numTest) testShowing=-1;
  testShowing++;

  // assign the value in the textbox to the new quote
  document.getElementById("testDiv").innerHTML = testArray[testShowing];
}

function prevTest()
{
  // restart at end if on 0
  if (testShowing <= 0) testShowing=numTest+1;
  testShowing--;
  document.getElementById("testDiv").innerHTML = testArray[testShowing];
}

function randTest()
{
  // Make sure you don't show the same quote 2x in a row
 // prevTestShowing = testShowing;
 // while(testShowing == prevTestShowing)
 //   testShowing = Math.ceil(Math.random() * numTest);
	testShowing = numTest-0;
  document.getElementById("testDiv").innerHTML = testArray[testShowing];
}

addLoadEvent(randTest);
