// Array Function

function makeArray() {
var args = makeArray.arguments;
    for (var i = 0; i < args.length; i++) {
    this[i] = args[i];
    }
this.length = args.length;
}

// This array holds the descriptions and names of the pages.

var pages = new makeArray("Select a Page",
                          "Crossword Puzzle",
                          "Rollover Example",
                          "Random Banner",
                          "Quotes",
                          "Random Quotes",
                          "E-Mail Address Check");

// This array hold the URLs of the pages.

var urls = new makeArray("",
                         "../samples/crossword.htm",
                         "../samples/rollover.htm",
                         "../samples/banner.htm",
                         "../samples/quotes.htm",
                         "../samples/rndquotes.htm",
                         "../samples/email.htm");

// This function determines which page is selected and goes to it.

function goPage(form) {
i = form.menu.selectedIndex;            
    if (i != 0) {
    window.location.href = urls[i];  
    }
}

