<!--

	// Set up the image files to be used.
	var theImages = new Array()

	theImages[0] = 'FOOTBALL01.jpg'
	theImages[1] = 'FOOTBALL02.jpg'
	theImages[2] = 'FOOTBALL03.jpg'
	theImages[3] = 'FOOTBALL04.jpg'
	theImages[4] = 'FOOTBALL05.jpg'
	theImages[5] = 'FOOTBALL06.jpg'


	var j = 0
	var p = theImages.length;
	var preBuffer = new Array()

	for (i = 0; i < p; i++)
	{
	   preBuffer[i] = new Image()
	   preBuffer[i].src = theImages[i]
	}

	var whichImage = Math.round(Math.random()*(p-1));

	function showImage()
	{
		document.write('<img src="../images/'+theImages[whichImage]+'" width="198" height="160" border="0">');
	}
	
	function updateImage( attributeId )
	{

		document.editPage.updatedImage.value = attributeId;
		var address = '../../cgi-bin/uploadImage.php?id=' + attributeId;
		window.open( address, 'Info', 'toolbar=no,menubar=no, width=500, height=400, resizable=yes' );
	}
	function deleteAttribute( attributeId )
	{
		alert("Attribute will be deleted upon save, alternatively click cancel to lose this change.");
		obj1 = document.getElementsByName(attributeId)[0];
		obj1.style.display = 'none';
		obj1.value = "!DELETED!"

	}	    		
	url = ""

	function viewDetail( linkUrl )
	{   
		window.open
		( 
		linkUrl, 
		'moreInfo',
		'toolbar=no,menubar=no,location=no,width=417,height=350,left=100,top=100,scrollbars=no,resizable=no,restore=yes'
		);  
	}
	function goThere()
	{
		window.location = url;
	}	

	function changeIt()
	{				

		if ( document.adminSelect.recordStatus.value == 1 )
		{
			url = "admin.asp?type=1";					
		}
		else if ( document.adminSelect.recordStatus.value == 2 )
		{
			url = "admin.asp?type=2";					
		}
		else
		{
			url = "admin.asp?type=0";					
		}				
	}
</script>
 -->

