// JavaScript Document
// GLOBAL VARIABLES
// make the pages objects
// so we can snatch them later
pages=new Array()
pages[1]="hello1.html"
pages[2]="hello2.html"
pages[3]="hello3.html"
pages[4]="hello4.html"
pages[5]="hello5.html"
//
// Just define this in case things change.
// We just have to change this and add
// the page to the array above.
maxPages=5
//
// make a function that chooses a random number
//
newPage= function (){return Math.floor(Math.random()*maxPages)+1}
// 
// make a function that redirects the page
//
function switchEm()
{
window.location.href=pages[newPage()]
}
