//function for populating an array
function PopulateArray(empty,full){
	//loop through the full array and put it into the empty array
	for (counter = 0; counter<full.length; counter++){
		//assign the value of the full array to the empty array for each place in the loop
		empty[counter] = full[counter];
	}
}

//function for clearing an array out
function ClearArray(trash){
	//loop through the array and clear it out
	for (counter = 0; counter<trash.length; counter++){
		//emptying the array for each point in the loop
		trash[counter] = null;
	}
	
	trash.length = 0;
}