var arrNumeric 
arrNumeric = new Array
arrNumeric[0] = '0'
arrNumeric[1] = '1'
arrNumeric[2] = '2'
arrNumeric[3] = '3'
arrNumeric[4] = '4'
arrNumeric[5] = '5'
arrNumeric[6] = '6'
arrNumeric[7] = '7'
arrNumeric[8] = '8'
arrNumeric[9] = '9'
arrNumeric[10] = '.'

function allowNumeric(textName)
{
 	var bag = eval(textName)
	var numericflag = true
	var textLoop, arrLoop
	for (textLoop=0; textLoop<bag.value.length; textLoop++)
	{
		numericflag = true
		for (arrLoop=0; arrLoop<arrNumeric.length; arrLoop++)
		{
			if (bag.value.slice(textLoop, (textLoop+1)) == arrNumeric[arrLoop])
			{
				numericflag = false
			}
		}
		if(numericflag==true)
		{
			var newValue =  bag.value.replace(bag.value.slice(textLoop, (textLoop+1)), "")
			bag.value = newValue
			numericflag = true
		}
	}
}