	
	function getRand(onPage)
	{
		
	//images 01	
		if(onPage == '01')
		{
			numArray = new Array(01,02,03);
		}		
	//images 02
		if(onPage == '02')
		{
			numArray = new Array(01,02,03);
		}
       //images 03	
		if(onPage == '03')
		{
			numArray = new Array(01,02,03);
		}
       //images 04
		if(onPage == '04')
		{
			numArray = new Array(01,02,03,04,05);
		}
	//images 05	
		if(onPage == '05')
		{
			numArray = new Array(01,02,03);
		}
	
		
		//randomly load an image, using the var randNum
		//maxNum is the highest numbered image within the images directory
		
		
			var maxNum = numArray.length;
			var randNum = (Math.floor(Math.random() * maxNum));
		
			randNum = numArray[randNum];
					
		//place 0 in image name
			if (randNum < 10)
			{
				randNum = "0" + randNum; 
			}
		return randNum;
	}


	function getfocus(){
		window.focus();
	}
	