// 
//	TYGR Productions Interactive Statistics
//	
//	This file contains JavaScript support functions for TYGR Productions' Interactive Statistics.  The code contained herein
//  is NOT in the public domain.  This file is provided for download to personal computers and is only authorized for personal 
//  use in conjuction with TYGR Productions' Interactive Statistics.  Copying or reposting this file in whole or in part on 
//  any web server or other network server, or reusing any portion of the code is not allowed without express written consent 
//  of the author.  Any commercial use is strictly prohibited.
//	
//	Copyright (c) 2005 by Jon T. Camp.  All rights reserved.
// 
function storeValues(tableData, nIndex, aValues) 
{
	var nodeElement = tableData.Node.getElementsByTagName(tableData.Elements[nIndex]).item(0);
	var nodeList = nodeElement.getElementsByTagName(tableData.IDs[nIndex]);

	for (var i = 0; i < nodeList.length; i++) 
	{
		if (aValues == null) nodeList.item(i).firstChild.nodeValue = "n/a";
		else nodeList.item(i).firstChild.nodeValue = aValues[i];
	}
}
