if( typeof groupnum == "undefined" )
    var groupnum = "all";

// main
var group1 = new Array();
group1[0] = "&quot;...Come away by yourselves to a lonely place and rest a while...&quot; Mark 6:31 (NAS)";
group1[1] = "&quot;Come to Me all you who are weary and heavy-laden, and I will give you rest.&quot; Matthew 11:28 (NAS)"

// group2
var group2 = new Array();
group2[0] = "";
group2[1] = "";
group2[2] = "";
group2[3] = "";

// any other page not listed above
var groupall = new Array();
groupall[0] = "";
groupall[1] = "";
groupall[2] = "";

var quoteArray = new Array();
eval( "quoteArray = group" + groupnum );

//Returns a random number between 0 and 1
function getRandom( num ) {
   return Math.floor( Math.random() * num );
}

document.write( quoteArray[getRandom(quoteArray.length)] );
