// JavaScript Document

function valWeight (fieldName)
{
	var ele = F_G [fieldName]
	var i = ele.value;
	
	if (ele.value == "") return;
	if ((i < minScore_GS) || (i > maxScore_GS) || (isNaN(i)))
	{
		alert ("Please enter a number from " + minScore_GS + " to " + maxScore_GS + ", or leave the field blank");
		ele.select();
	}
}

function toDecimalString (value, points, size)
{	// The function returns a string of length "size" with "points" decimal points, leading spaces and trailing zeros
	var iString, i, j;
	iString = "                         " + value;
	if (iString.indexOf (".") < 0)		// Then the decimal point wasn't found
		iString += ".00000000000000000000000000000";
	else
		iString += "00000000000000000000000000000";
	i = iString.indexOf(".");
	return iString.substr((i - size + points + 1), size);
}


// -----------------  History  ----------------------------
// 8/26/06 	- R01-01 - MBB
//					.	Included interface between php and java. 
//					.	php defined the primary (max) sizes of the primary arrays.
// 08/15/06 - R01-00 Initial Development MBB - Tested Okay.
//
