var choice = 0;          // used as a number variable
var imageName = "";

photoArray = new Array();
photoWidth = new Array();
photoHeight = new Array();

photoArray[0] = "01.jpg";
photoWidth[0] = "150";
photoHeight[0] = "191";

photoArray[1] = "02.jpg";
photoWidth[1] = "200";
photoHeight[1] = "136";

photoArray[2] = "03.jpg";
photoWidth[2] = "200";
photoHeight[2] = "157";

photoArray[3] = "04.jpg";
photoWidth[3] = "200";
photoHeight[3] = "133";

photoArray[4] = "05.jpg";
photoWidth[4] = "200";
photoHeight[4] = "147";

photoArray[5] = "06.jpg";
photoWidth[5] = "200";
photoHeight[5] = "131";

photoArray[6] = "07.jpg";
photoWidth[6] = "200";
photoHeight[6] = "132";

photoArray[7] = "08.jpg";
photoWidth[7] = "200";
photoHeight[7] = "147";

photoArray[8] = "09.jpg";
photoWidth[8] = "200";
photoHeight[8] = "134";

photoArray[9] = "10.jpg";
photoWidth[9] = "200";
photoHeight[9] = "134";

photoArray[10] = "11.jpg";
photoWidth[10] = "200";
photoHeight[10] = "200";


// gets random number
with(Math)
{
  choice = ceil(random() * 100);
  choice = ceil(choice % photoArray.length);
}

imageName += "<img src=/images/pics/" + photoArray[choice] + " width=" + photoWidth[choice] + "height=" + photoHeight[choice] + "border=0 align=right hspace=10 vspace=5>";

document.write(imageName);

