Im currently using this code to track if some value is numeric or not.
Code:
if (isDigit(document.nueva.ancho.value) == false){

Problem is that in my country, we speak of "2,5" rather than "2.5" to talk about decimals. In that example, "2,5" means two dollars and a half.

If my customer entryes "2,5", the "is not numeric" error displays.

How can I change that?