// 
//	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 dataColToTableCol(nDataCol) 
{
	if (bDefaultFormat) return nDataCol;
	else return (nDataCol * 2) + 1;
}

function dataRowToTableRow(nDataRow) 
{
	if ((!bDefaultFormat) && (bDivideRows)) return nDataRow * 2;
	else return nDataRow;
}

function tableColToDataCol(nTableCol) 
{
	if (bDefaultFormat) return nTableCol;
	else return (nTableCol - 1) / 2;
}

function tableRowToDataRow(nTableRow) 
{
	if ((!bDefaultFormat) && (bDivideRows)) return nTableRow / 2;
	else return nTableRow;
}
