

function onLoadHandler()

{

	for (i in onLoadFunctions)

	{

		eval('if (window.' + onLoadFunctions[i] + ') { ' + onLoadFunctions[i] + '(); } ');

	}

}



function trmouseover(objTR)

{

	for (i in objTR.cells)

	{

//	  if (objTR.cells[i].className && (objTR.cells[i].className == 'row1' || objTR.cells[i].className == 'row2'))

	  if (objTR.cells[i].className && (objTR.cells[i].className != '') )

	  {

	    objTR.cells[i].classNameOriginal = new String(objTR.cells[i].className);

    	objTR.cells[i].className = objTR.cells[i].className + 'ov';

	  }

	}

}



function trmouseout(objTR)

{

	for (i in objTR.cells)

	{

	  objTR.cells[i].className = '' + objTR.cells[i].classNameOriginal;

	  objTR.cells[i].classNameOriginal = null;

	}

}



function number_format(fltNumber, intDecimals, chrSeparator)

{

	if (intDecimals <= 0)

	{

	  return new String(Math.round(fltNumber));

	}

	

	if (!chrSeparator)

	{

	  chrSeparator = '.';

	}



	strNumber = new String(Math.round(fltNumber * Math.pow(10, intDecimals)));



	intNumberLength = strNumber.length;



	if (intNumberLength <= intDecimals)

	{

	  strZeros = '';

		for (i = intNumberLength ; i < intDecimals; i++)

		{

			strZeros = strZeros + '0';

		}

		return '0' + chrSeparator + strZeros + strNumber;

	}



	return strNumber.substring(0, intNumberLength - intDecimals) + chrSeparator + strNumber.substring(intNumberLength - intDecimals, intNumberLength);

}///~ number_format




