pics = new Array("red.gif","blue.gif",
      "green.gif","purple.gif",
      "yellow.gif","orange.gif");
index = Math.floor(Math.random() * 
       pics.length);