// Name:	isNumeric()
// Desc:		Check if an input is numeric.
//			only allow 0-9 be entered, plus any values passed.
//			(can be in any order, and don't have to be comma, period, or hyphen)
//			if all numbers allow commas, periods, hyphens or whatever,
//			just hard code it here and take out the passed parameters
// Input:		objName:	String to check.
//			minval:	Minimum value that allow.
//			maxval:	Maximum value that allow.
//			comma:	Comma sign if allow.
//			period:	Period sign if allow.
//			hyphen:	Hyphen sign if allow.
// Ver:		1.1
// Release:	25 May, 2004

function isNumeric(objName, minval, maxval, comma, period, hyphen)
{
	var checkOK = "0123456789" + comma + period + hyphen;
	var checkStr = objName;
	var allValid = true;
	var decPoints = 0;
	var allNum = "";
	var temp = "";
	var start ;
	var end 

	if (checkStr.value == "" )
	{
	return (false);
	}


	if (checkStr.value == "" )
	{
		return (false);
	}

	for (i = 0; i < checkStr.value.length; i++)
	{
		ch = checkStr.value.charAt(i);
		for (j = 0; j < checkOK.length; j++)
			if (ch == checkOK.charAt(j) )
				break;
			if (j == checkOK.length)
			{
				allValid = false;
				break;
			}
			if (ch != ",")
				allNum += ch;
	}

	if (!allValid)
	{
		return (false);
	}

	// set the minimum and maximum
	var chkVal = allNum;
	var prsVal = parseInt(allNum);
	if(minval != '' && chkVal != "" && !(prsVal >= minval) )
	{
		return (false)
	}
	if(maxval!= '' && chkVal != "" && !(prsVal <= maxval) )
	{
		return (false)
	}

	return (true);
}