




function pickNums(nums, numArr)
{
	if(nums>numArr.length)
	{
		alert('You are trying to pick more elements from the array than it has!');
		return false;
	}
	var pickArr=new Array();
	var tempArr=numArr;
	for(var i=0; i<nums; i++)
	{
		pickArr[pickArr.length]=tempArr[Math.round((tempArr.length-1)*Math.random())];
		var temp=pickArr[pickArr.length-1];
		for(var j=0; j<tempArr.length; j++)
		{
			if(tempArr[j]==temp)
			{
				tempArr[j]=null;
				var tempArr2=new Array();
				for(var k=0; k<tempArr.length; k++)
					if(tempArr[k]!=null)
						tempArr2[tempArr2.length]=tempArr[k];
				tempArr=tempArr2;
				break;
			}
		}
	}
	return pickArr;
}	




 var myArr = new Array()
 for (i=0; i<10; i++) {
   myArr[i] ="<img lowsrc='http://www.agc-oregon.org/TEMPNAV/blank.gif' src='http://www.agc-oregon.org/TEMPNAV/blocks/block"+i+".jpg'>";
   document.write("<img lowsrc='http://www.agc-oregon.org/TEMPNAV/blank.gif' src='http://www.agc-oregon.org/TEMPNAV/blocks/block"+i+".jpg' style='display:none'>")
 }
 var leftrightslide=pickNums(10, myArr); /* Store the output */




// drawdivs










